[android-developers] how can alert dialog add/delete items arbitrary?
hi all, I wish my alert dialog can add/remove items arbitrary, but I looked for the sdk reference but nothing method can use, is somone knows how to do? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] help with GMaps
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): requestFailed() 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): com.google.common.async.WatchdogException 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at com.google.common.async.AsyncHttpRequestFactory$AsyncHttpRequestImpl.watchdogFired(Unknown Source) 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at com.google.common.async.AsyncHttpRequestFactory$WatchdogTask.run(Unknown Source) 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at com.google.common.task.AbstractTask.runInternal(Unknown Source) 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at com.google.common.task.TimerTask.runInternal(Unknown Source) 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at com.google.common.task.TaskRunner.run(Unknown Source) 06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at com.google.common.lang.ThreadFactory$ThreadImpl.run(Unknown Source) i am using google api to display maps. wen i try to display them on gprs, this is the exception i get. any idea y this happens. please note, the only way to connect to internet is gprs. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Bringing up soft keypad
Hi I have a an Activity with an EditText control in it. Basically what I want to have is the soft keypad to come up automatically even before the user taps on the EditText control as soon as this activity is created. I tried setting the focus on the Edit control using .requestFocus() method. This however sets the focus but the soft keypad does not come up. How can I do this? Regards Goutam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Can not receive multicast packets
I have the same problem after upgrading to 1.5 on the device. But this works fine on the emulator. Regards Goutam On Jun 18, 11:28 am, Jonas Ådahl wrote: > Take a look at this bug > report:http://code.google.com/p/android/issues/detail?id=2917 > According to michael.sciscenti the reason is, since Android 1.5 the > Join packet is not sent out. > > Jonas > > On May 19, 4:57 pm, Whino wrote: > > > I'm using this code on real device. > > I know there is someone wants to port UPnP stack to Android. > > But I don't know any DLNA application on Android from official or > > other open source project. > > Could you tell me the application name or its info? > > Thank you very much. > > > On May 19, 3:54 pm, Daniel Janev wrote: > > > > Hi, > > > > You use the SDK and the emulator or you are trying this code on real > > > device? > > > > As far as I know there is DLNA application for Android, which works on > > > the phone using the WiFi connection. > > > > Whinowrote: > > > > The following is the listen function I used to receivemulticast > > > > packets. > > > > "socket.receive" can not receive packets from remote peer, but it can > > > > receive packets sent from local. > > > > > public static void listen() throws IOException { > > > > Runnable r = new Runnable() { > > > > public void run() { > > > > > while (true) { > > > > try { > > > > MulticastSocket socket = new MulticastSocket > > > > (1900); > > > > Log.v(TAG, "Settingmulticastnetwork > > > > interface: " + ni); > > > > socket.setNetworkInterface(ni); > > > > > socket.setTimeToLive(4); > > > > socket.setReuseAddress(true); > > > > socket.joinGroup(getMulticastAddress()); > > > > while(true) > > > > { > > > > byte[] buf = new byte[1024]; > > > > DatagramPacket packet_r = new > > > > DatagramPacket(buf, buf.length); > > > > socket.receive(packet_r); > > > > String s = new String(packet_r.getData()); > > > > > Log.v(TAG, "Receiving aMulticastfrom [" > > > > + packet_r.getAddress().getHostAddress() + ":" + packet_r.getPort() + > > > > "]"); > > > > Log.v(TAG, "Data: " + s); > > > > > CharSequence data = packet_r.getAddress > > > > ().getHostAddress() + ":" + packet_r.getPort(); > > > > Toast.makeText(view, data, > > > > Toast.LENGTH_SHORT).show(); > > > > } > > > > } catch (IOException e) { > > > > Log.v(TAG, "UPNP network exception", e); > > > > try { > > > > Thread.sleep(1000); > > > > } catch (InterruptedException e1) {} > > > > } > > > > } > > > > > }}; > > > > sListener = new Thread(r); > > > > sListener.start(); > > > > } > > > > -- > > > > Best Regards, > > > Daniel > > > --- > > > Daniel Janev · Department Manager/Core Platform and Smart Home > > > ProSyst Software GmbH > > > 1606 Sofia, Bulgaria · Vladajska Str. 48 > > > Tel. +359 (0)2 952 35 81/109 · Fax +359 (0)2 953 26 17 > > > Mobile Phone +359 (0)888 678 670http://www.prosyst.com·d.ja...@prosyst.com > > > --- > > > stay in touch with your product. > > > Hide > > > quoted text - > > > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Can not receive multicast packets
Take a look at this bug report: http://code.google.com/p/android/issues/detail?id=2917 According to michael.sciscenti the reason is, since Android 1.5 the Join packet is not sent out. Jonas On May 19, 4:57 pm, Whino wrote: > I'm using this code on real device. > I know there is someone wants to port UPnP stack to Android. > But I don't know any DLNA application on Android from official or > other open source project. > Could you tell me the application name or its info? > Thank you very much. > > On May 19, 3:54 pm, Daniel Janev wrote: > > > Hi, > > > You use the SDK and the emulator or you are trying this code on real > > device? > > > As far as I know there is DLNA application for Android, which works on > > the phone using the WiFi connection. > > > Whinowrote: > > > The following is the listen function I used to receivemulticast > > > packets. > > > "socket.receive" can not receive packets from remote peer, but it can > > > receive packets sent from local. > > > > public static void listen() throws IOException { > > > Runnable r = new Runnable() { > > > public void run() { > > > > while (true) { > > > try { > > > MulticastSocket socket = new MulticastSocket > > > (1900); > > > Log.v(TAG, "Settingmulticastnetwork > > > interface: " + ni); > > > socket.setNetworkInterface(ni); > > > > socket.setTimeToLive(4); > > > socket.setReuseAddress(true); > > > socket.joinGroup(getMulticastAddress()); > > > while(true) > > > { > > > byte[] buf = new byte[1024]; > > > DatagramPacket packet_r = new > > > DatagramPacket(buf, buf.length); > > > socket.receive(packet_r); > > > String s = new String(packet_r.getData()); > > > > Log.v(TAG, "Receiving aMulticastfrom [" > > > + packet_r.getAddress().getHostAddress() + ":" + packet_r.getPort() + > > > "]"); > > > Log.v(TAG, "Data: " + s); > > > > CharSequence data = packet_r.getAddress > > > ().getHostAddress() + ":" + packet_r.getPort(); > > > Toast.makeText(view, data, > > > Toast.LENGTH_SHORT).show(); > > > } > > > } catch (IOException e) { > > > Log.v(TAG, "UPNP network exception", e); > > > try { > > > Thread.sleep(1000); > > > } catch (InterruptedException e1) {} > > > } > > > } > > > > }}; > > > sListener = new Thread(r); > > > sListener.start(); > > > } > > > -- > > > Best Regards, > > Daniel > > --- > > Daniel Janev · Department Manager/Core Platform and Smart Home > > ProSyst Software GmbH > > 1606 Sofia, Bulgaria · Vladajska Str. 48 > > Tel. +359 (0)2 952 35 81/109 · Fax +359 (0)2 953 26 17 > > Mobile Phone +359 (0)888 678 670http://www.prosyst.com·d.ja...@prosyst.com > > --- > > stay in touch with your product. > > Hide > > quoted text - > > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android sdk sources
Why android sdk don't include sources for platforms? It's require a lot of time to get proper sources from git from different parts. It's will be better if sdk package will include java sources of base framework at least. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: About Context Menu
What do you think about the removing borders of the alertDialog?is it possible? On Wed, Jun 17, 2009 at 10:44 AM, 梁舒华 wrote: > > > 2009/6/17 Adem KARAKOLLU > > Hi all. >> Is it possible to change background (image/color) of the contextMenu. >> I want to change appearance of the contextMenu... >> Must i use dialog instead of contexMenu ?? >> Any idea? >> Thanks >> >> -- >> ADEM KARAKOLLU >> >> >> >> > if you can ,do it. > > > > > -- ADEM KARAKOLLU --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to Start application On-Install
Thanks erictcrook for the idea, but it wont work unless and untill you start the application manually once. Hi Dianne, so there is no way out in Android for the application to run on install, correct? But I feel that this feature should have been there, as it is available in all other mobile platform like Symbian, WinCE,RIM etc. As there is NO silent installation API available in Android hence, it is the user only which is going to install the application, then what is the harm on making the application up on install complete? Or Andoird is having the future plan on this? Thanks, Raj On Jun 18, 1:55 am, Dianne Hackborn wrote: > There is a button in market to launch the app. So you see in the status bar > that the download is down, select the notification, now you are in market > about the app saying it is installed, and you can press the button there to > launch the app for the first time. > > > > > > On Wed, Jun 17, 2009 at 12:05 PM, MrSnowflake wrote: > > > I think that's a very good reason not to send it to a newly installed > > app. Though you could give the user the option to start the app > > immediately after install, with a button for example. > > > On Jun 17, 8:55 pm, Dianne Hackborn wrote: > > > We deliberately don't send this broadcast to an app when it is first > > > installed (as of cupcake you -will- get the broadcast when being updated > > > from a previous install). It is generally up to the user to launch your > > app > > > when they want to. > > > > On Tue, Jun 16, 2009 at 12:11 PM, erictcr...@gmail.com < > > erictcr...@gmail.com > > > > > wrote: > > > > > I'm not sure, but I believe the following code may help. > > > > > put the folling in your AndroidManifest.xml as a child of your > > > > Application tag > > > > > > > > android:enabled="true"> > > > > > > > > > > > android:name="android.intent.action.PACKAGE_ADDED" / > > > > > > > > > > > > > > > > > > Then create a class that extends BroadcastReceiver, and use it's > > > > onReceive method to start your activity > > > > > public class InstallReceiver extends BroadcastReceiver { > > > > > public void onReceive(Context context, Intent intent) { > > > > > String data = intent.getDataString(); > > > > > if (data.equals("package:com.ericcrook.InstallReceiver")) { > > > > //Start your application using startActivity or whatever is > > > > appropriate for > > > > //your project > > > > } > > > > } > > > > } > > > > > I'm not very good with the Intent system, so some of this may be > > > > correct, but hopefully this is better than nothing. > > > > > On Jun 16, 6:21 am, Raj wrote: > > > > > Hi, > > > > > I want to start my application just after it gets installed on the > > > > > device. Is there any way out in Android to do so. > > > > > I was wondering if there is any receiver to get informed on package > > > > > installed. > > > > > Regards > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > > provide private support, and so won't reply to such e-mails. All such > > > questions should be posted on public forums, where I and others can see > > and > > > answer them. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Consume a key event
I have a custom camera application... I'm using a BroadcastReceiver to launch it when the Camera button is pressed. Unfortunately, once my camera app is launched the camera button KeyDown event used to launch my camera activity is also passed to it, which cause it to immediately attempt to capture a picture. Is there a way to consume the KeyEvent so that this doesn't happen? ... or any other elegant solutions other then some flag toggle? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Parent activity not started after child finish
Hi, My application has parent and child activities, sometimes when child activity stopped, parent activity didn't started by the system (this is happen randomly, but infrequently). The process still running, but main activity is not resume and results a black screen. No error message is in the log. Following the is the log starting when closing the child activity (BrowserView): 06-18 13:17:19.921: INFO/HTCIMEService(228): [setWCLText]: wclText=, candIdx=0 06-18 13:17:20.071: INFO/ActivityManager(75): Displayed activity com.in.android.nman/com.in.android.nman.BrowserView: 5773 ms 06-18 13:17:20.081: INFO/BrowserView(29997): browser view on stop com.in.android.nman.browserv...@437345e8 06-18 13:17:20.081: INFO/BrowserView(29997): browser view on destroy com.in.android.nman.browserv...@437345e8 06-18 13:17:20.341: INFO/NotificationService(75): enqueueToast pkg=com.in.android.nman callback=android.app.ITransientNotification $stub$pr...@4378dc10 duration=0 06-18 13:17:20.841: DEBUG/dalvikvm(29997): GC freed 5384 objects / 708976 bytes in 231ms 06-18 13:17:22.045: DEBUG/InetAddress(29997): fg.zedo.com: 63.211.147.11 (family 2, proto 6) 06-18 13:17:22.921: INFO/NotificationService(75): enqueueToast pkg=com.in.android.nman callback=android.app.ITransientNotification $stub$pr...@437b2360 duration=0 06-18 13:17:23.281: INFO/NotificationService(75): enqueueToast pkg=com.example.android.snake callback=android.app.itransientnotification$stub$pr...@437f54f8 duration=0 06-18 13:17:23.821: DEBUG/dalvikvm(29997): GC freed 4054 objects / 626616 bytes in 197ms 06-18 13:17:24.621: INFO/NotificationService(75): enqueueToast pkg=com.in.android.nman callback=android.app.ITransientNotification $stub$pr...@438131f8 duration=0 06-18 13:17:24.911: DEBUG/InetAddress(29997): ads.zedo.com: 8.4.33.198 (family 2, proto 6) 06-18 13:17:25.361: DEBUG/dalvikvm(29997): GC freed 1710 objects / 12 bytes in 244ms --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is it possible to theme the activity animation?
Did you read and understand my question? I know how to apply theme, animation style in my themes wont have any effects. On Jun 18, 12:59 am, peeyush varshney wrote: > No need to write " android:stateNotNeeded="true" Just use given code in > Manifest ..Name n Theme.. > > > And use code in Style file like this > > > and include your corresponding attribute no need to inherit parent theme... > Tell me what u want to do exactly.. > > > > On Thu, Jun 18, 2009 at 10:22 AM, zwrote: > > > I did that, nothing was changed > > > android:stateNotNeeded="true" > > android:theme="@style/Theme" > > . > > > On Jun 18, 12:49 am, peeyush varshney > > wrote: > > > hi, > > > you need to set this theme in your manifest file with corresponding > > > Activity.. > > > > On Thu, Jun 18, 2009 at 9:41 AM, z wrote: > > > > > Anyone? I tried the following but it didnt seem to have any effects at > > > > all? > > > > >