[android-developers] Re: How to offer new app to existing user base?
Not as far as I know of. Your best bet is update the old app and point them to the new one. On Tuesday, April 16, 2013 9:25:15 PM UTC-7, Jungle Jim wrote: I have written a new app that I want to publish this week. I have a number of existing users who have active installs of another app. The new app is likely to be of interest to them, but I don't want to make it an upgrade to the existing app. Is there some facility in Google Play to enables me to offer the new app to my existing user base? 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: how to tell why Activity.onPause() is called
Use http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint() Gets called only when the user has decided to leave instead of another app coming in the foreground. On Monday, March 4, 2013 3:14:29 PM UTC-8, latimerius wrote: Hello, I would like to be able to tell if Activity.onPause() was called because the user is leaving the app, or simply because another Activity within the same app is coming up. I have a main Activity and a PreferenceActivity. The main Activity needs to handle onPause() differently depending on why it's called. If the user is leaving the app, it needs to stop helper threads, close various things like analytics session, deal with GL, save data to SD card etc. However, if onPause() is just to display prefs most of that should happen, and a bunch of other things should be done instead. I'm wondering if there's a framework-supported way to handle this, or at least an idiomatic solution, as in a (semi)standard way of managing an Activity with heavy set-up and tear-down? -- -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Maven vs Ant
For small apps with a few library modules, ant should suffice. For bigger projects, different repos that share code etc Maven is the way to go. On Friday, November 2, 2012 12:00:31 AM UTC-7, uudashr wrote: Hi all, I see in maven repo, some of android version not exists (ex: android 4.0.3) and official SDK already support the ant script. Which one preferred or better for android dev? Regards, Uud -- 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: PushNotifications GCM problem
Once your app is registered with GCM you should have a broadcast receiver that receives the GCM message. Even if your process is dead then it will be started when the message arrives. This should also apply in the case where the phone rebooted. On Wednesday, October 3, 2012 7:46:16 AM UTC-7, apanizo wrote: Hi all, I am experiencing problems with GCM. I understand that if you force stop one app is no longer available for receiving notifications. You can see the explanation herehttp://stackoverflow.com/questions/11614521/how-can-i-receive-notifications-from-gcm-when-application-is-stopped and herehttp://stackoverflow.com/questions/12073449/android-gcm-push-notification-device-doesnt-receive-notification-if-applicat . *But how can I receive notifications just after turning on the phone?* Because now, I am able to receive push notifications* if I start the app first *(and this is a waste of time). Any special configuration in the AndroidManifest.xml ?? Thanks in advance, Adolfo. -- 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: Acting on broadcast intent when switching apps
Your activitys onResume() will get called in that case. You should check the status of your downloads and re do your logic there. On Tuesday, October 2, 2012 8:45:51 PM UTC-7, albnok wrote: I have an button in an activity, that calls an IntentService and shows a ProgressBar. After it is done downloading large files, it then creates a notification and broadcasts an intent with a String message stating 3 files downloaded. or Unable to connect to server. The activity registers a receiver in onResume and unregisters it in onPause. In the BroadcastReceiver's onReceive it displays a DialogFragment with a message from the intent. It also hides the notification and hides the ProgressBar. If the app is not in the foreground, and you click on the notification, it triggers the activity's onNewIntent. It then displays a DialogFragment with a message from the intent. It also hides the ProgressBar. If the app is not in the foreground however, and you use the App Switcher to return to the app, the notification does not clear and the DialogFragment never shows. The ProgressBar is also still visible. Is there a way within the Android framework to handle the last situation? I'm thinking of a hack by not actually bothering with the message in the intent, and storing it in SharedPreferences, but is there another way? -- 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: Sticky Broadcasts and Concurrency
I agree with Dianne, you should also consider using LocalBroadcastManager which is also backported in the support lib. On Tuesday, October 14, 2008 12:14:14 AM UTC-7, hackbod wrote: Er... there is NO reason to use sticky broadcasts for communication within your own app. In fact, I'll go farther and say you just should not do this. Sticky broadcasts are GLOBAL to the system. And because of this, performing a sticky broadcast is multiple orders of magnitude slower than just implementing direct calls within your own app (IPC for each receiver to register, IPC to the system to send it, IPC from the system back to your app to deliver it, marshalling and unmarshalling of all the data within the Intent over both IPCs). More than that, there is NO protection on them, so any other application can watch your sticky broadcasts, or even send their own values back to you. (Btw, this is also issue with using any broadcasts within your own app. Broadcasts are really there for cross- application communication. It is just far more efficient and easier to implement these things within an app by having a callback interface.) Now I am really regretting that I made that function public. :/ And of course, if you want out of application notifications, you have no other option. You do have the option of using a normal broadcast rather than a sticky broadcast. You'll notice that there are basically no sticky broadcasts used by the system, at least that you see in the public APIs. In fact there are some places they are used internally, but even those are slowly going away as we discover security holes with them because there is no way to protect who can receive the broadcast data. -- 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: Android USB to USB communication
I do not need USB-2-Serial. After working a few hours I understood that USB offers a bunch of interfaces (with IN/OUT endpoints) for talking. Most of the interfaces are VENDOR specific or some common ones. From what I know I would have to write my own USB interface for performing my own communication and it will not be widely adopted. Thanks On Tuesday, September 25, 2012 2:24:23 AM UTC-7, Rohit Jadhav wrote: where u find USB 2 Serial? can u send me that code...so I can change it to USB to USB On Friday, September 14, 2012 5:37:37 AM UTC+5:30, dnk wrote: Android supports USB Host mode via its APIs but is there a library out there that takes care of the threading and communication? Can two devices use USB to pass arbitrary data, i.e chat messages? I've seen one for USB 2 Serial but I am talking about USB-to-USB. How come there is none yet? Please do not recommend any apps that manage USB devices etc as I am only interested in an open source lib that I can use for exchanging data through USB with 2 Android devices. I tried Googlin' around but could not find one. Thanks! p.s I am asking because I am thinking on writing my own. -- 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: Android USB to USB communication
anyone? On Thursday, September 13, 2012 5:07:37 PM UTC-7, dnk wrote: Android supports USB Host mode via its APIs but is there a library out there that takes care of the threading and communication? Can two devices use USB to pass arbitrary data, i.e chat messages? I've seen one for USB 2 Serial but I am talking about USB-to-USB. How come there is none yet? Please do not recommend any apps that manage USB devices etc as I am only interested in an open source lib that I can use for exchanging data through USB with 2 Android devices. I tried Googlin' around but could not find one. Thanks! p.s I am asking because I am thinking on writing my own. -- 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 USB to USB communication
Android supports USB Host mode via its APIs but is there a library out there that takes care of the threading and communication? Can two devices use USB to pass arbitrary data, i.e chat messages? I've seen one for USB 2 Serial but I am talking about USB-to-USB. How come there is none yet? Please do not recommend any apps that manage USB devices etc as I am only interested in an open source lib that I can use for exchanging data through USB with 2 Android devices. I tried Googlin' around but could not find one. Thanks! p.s I am asking because I am thinking on writing my own. -- 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