开发者

Is internet necessary to run android application

I'm very first for Android. I just tried to run the Hello word application using emulator But doesn't launch emulator even after 20 minutes.

My console is idle after this:

[2011-07-12 16:02:01 - HelloAndroid] ------------------------------
[2011-07-12 16:02:01 - HelloAndroid] Android Launch!
[2011-07-12 16:02:01 - HelloAndroid] adb is running normally.
[2011-07-12 16:02:01 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2011-07-12 16:02:01 - HelloAndroid] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'My_MOB'
[2011-07-12 16:02:01 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2011-07-12 16:02:01 - HelloAndroid] Installing HelloAndroid.apk...
[2011-07-12 16:02:11 - HelloAndroid] Success!
[2011-07-12 16:02:11 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device emulator-5554
[2011-07-12 16:02:13 - HelloAndroid] ActivityManager: Starting: Intent { act=a开发者_如何学JAVAndroid.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.HelloAndroid }

my last few logcat messages

07-12 16:49:36.699: DEBUG/dalvikvm(447): GC_EXPLICIT freed 17K, 6% free 6320K/6663K, paused 5ms+3ms
07-12 16:53:51.885: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 16:58:51.942: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:03:52.000: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:08:16.900: INFO/dalvikvm(184): Jit: resizing JitTable from 512 to 1024
07-12 17:08:52.032: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:13:52.050: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:18:52.113: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:23:42.420: DEBUG/dalvikvm(184): GC_CONCURRENT freed 397K, 9% free 6696K/7303K, paused 4ms+3ms
07-12 17:23:52.161: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:25:05.390: DEBUG/dalvikvm(86): GC_CONCURRENT freed 1649K, 62% free 13465K/34695K, paused 6ms+8ms
07-12 17:28:52.210: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol

I am having poor internet connection today,is this reason ? Any other problem

Help me to recover from confusion ! Thanks


No Internet isn't necessary at all.
There must be something else. Did you see logcat? what does it say?


Do you start AVD emulator separately, before you start your application to run it on the AVD. And to start AVD you don't need I-net connectivity, it's required when your application does something with external web content.


This logcat are display that your project run normally.and one more thing is that in this hello word you not require any internet connection


Internet isn't necessary! To see in Logcat, click Window -> Show View -> Logcat (If its not there, find in Other). And copy paste the things which are in Red color..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜