-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
31 lines (19 loc) · 1.25 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
apnuft (Access Point Name Utility For Test)
apnuft is a standalone android application, the main work horse behind apnuft is a service which receives IPC (inter process communication) messages from a client (test project) with instructions to enable and disable connectivity.
apnuft functions as a standalone application so it is as unobtrusive as possible on the test project and application under tests,
No permissions or application components need to be added to the test project or application under test
Instructions for use:
- Import the project into your eclipse workspace or install apk file
- Include this code to switch connectivity on
mContext.bindService(new Intent(
"org.whatsthebeef.android.apntu.action.NETWORK_MANAGEMENT_INTERACTION_INTENT"),
mConnection, Context.BIND_AUTO_CREATE);
Message message = Message.obtain(null, 3, 4, 0);
mService.send(message);
- Include this code to switch connectivity off
mContext.bindService(new Intent(
"org.whatsthebeef.android.apntu.action.NETWORK_MANAGEMENT_INTERACTION_INTENT"),
mConnection, Context.BIND_AUTO_CREATE);
Message message = Message.obtain(null, 3, 5, 0);
mService.send(message);
See javadocs for more detail description