Skip to Content
0
Former Member
Jun 27, 2012 at 02:21 PM

Problem with Tutorial: Android Object API Application Development ESD #3

26 Views

Hi, we’re currently following the Android Object API Application Development ESD #3 tutorial. After having repeated several times the procedure we keep having the same result at the end of the tutorial (Step: “Testing the Device Application on the Android Emulator”).

The end result is simply an empty page with nothing but a button.

In the console we can see the app gets stucked at “ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.sybase.sup.samples.objectapi/.SUP101SampleActivity }”

The logcat shows this error at the beginning of several system errors: W/System.err(281): com.sybase.mobile.ConnectionPropertyException: Application connection properties are missing.

We figured the mistake might be on the SUP101SampleActivity.java file on src, on the identification procedure:

private static final int REQUEST_DETAIL = 99;

private static String USERNAME = "supAdmin";

private static String PASSWORD = "s3pAdmin";

private static String HOST = "10.0.2.2";

private static int PORT = 5001;

private static int TIMEOUT = 600;

private CustomerListAdapter adapter;

Since the unwired server is installed on the local system the Host IP address was left as default. We tried to ping the address 10.0.2.2, resulting on a 100% data loss every time.

We’ve also tried the computer name, localhost, dns dhcp.bue.sap.corp, using the SUP admin password as password, port number of the sampledb and unwired server, without any success yet.

Has anyone encountered this mistake before or has any idea about how to solve it?

Additional info.

ADT plugin was installed successfully. I’ve tried several versions of virtual machines on AVD (the current one is 2.2 API 8 as advised on the tutorial). The SUP version is 2.1.3 and Android SDK Tools r18.

There are 0 errors and 213 warnings (all unused variables) on the problems tab.

Both unwired server and sampledb are pinging and connecting successfully.

Thank you very much for reading.

Attachments

Error3.png (289.7 kB)