I want to create an add-on for an app, which the user can download from the Play store separately, and it will function with the aforementioned app that i've created.
I am using service, as this is the only clean way that I've come across for this. It works well with the "Base App" which I've created but I have no way of having it get removed when the user uninstalls the "Base App". I do know that i can essentially "Throw a dialog" up if the user attempts to uninstall my app, but i feel that has a more malicious feeling to it than what I intend. I don't want to interfere with the uninstalling of my app, simply I want to have the secondary addon service be uninstalled too.
You can listen to the broadcast to see if your main app is being uninstalled. See this for more info:
Android: Listen for app installed / upgraded broadcast message
When you detect that your main app is removed, your add-on app can suggest/remind users to uninstall add-on app using Android notification.
Related
I created a messaging app, I want when some user send a message to another user then that user receives notifications badges over there app icon.
It should be work even app is closed or killed.
Thanks in advance.
I tried some libraries of GitHub but not working.
This is not a feature the of Android system. Device manufacturers (like Xiaomi you mentioned) or launcher developers (like Nova Launcher) can implement it and expose an api for app developers, but there is no standard for that, nor is it expected by the users to be there.
I'm building an android app. It includes an intent service to do some background work. Does rerunning the app from android studio (on a phone) also restart the service? In other words, can I be sure to be using the most recent version of the service?
Put a printout in. It came up. The answer is thus: Yes
Does rerunning the app from android studio (on a phone) also restart the service?
So far I have observed that AS builds a new apk and installs it to the device everytime a Run command is issued. That means killing all processes of your app, replacing the apk (that includes activating receivers, content provider) and starting main activity.
In Eclipse when no changes were made only the main activity was started.
In other words, can I be sure to be using the most recent version of the service?
Yes, you can.
I am developing a custom game launcher and as I was looking on how to launch minecraft 1.7.4 it seemed to me that the *.jar cannot be launched without setting an authentication process to the mojang site. However, TeamExtreme minecraft launcher bypasses this. How?
Most likely, it just sends in false data, or empty data. This should allow minecraft to launch in offline mode, meaning that it lets you join but you are not logged in, so that you cannot play on servers.
I am not entirely sure, however, this should send you on the right track.
I have an android app that is opened by a URL on my website. What I am looking to do is, attach Eclipse in debug mode when the app starts. I can start the app in debug mode from Eclipse, but I do not know how to get Eclipse to start when the user/another app starts the app on the device.
Add a call to android.os.Debug.waitforDebugger() on the onCreate of your launch activity. This will make you app wait for a debug to attach whenever it is launched.
If you look in detail, there's a moment when Eclipse tries to couple the runtime session with the debugger so it starts listening to it until the coupling is made. I guess you'll need to trigger that whenever you open your app.
My question would be, why do you need that? Which are the different conditions when you start the app from the web that make it necessary to debug from there? If there are some, is there any possibility to fake them with any constants or db data?
I have the following question:
I've successfully implemented C2DM in my application. I'm registering to both google c2dm cloud and a custom server that "creates" notification contents. Everything is working fine.
My question is : what happens when i uninstall my app and then reinstall it on the same device? I've noticed that C2DM is sending me back the same app_key, so apparently there's no way to determine my app installation status change. And i keep on receiving old push notification (they're customized by user preferences in the app).
I won't be able to test with a google play published app until final release, so i would like to know if there's a chance that google itself could notify c2dm that the app was uninstalled on my device and force it to change my app_id at next restart.
Thanks in advance
Stefano
From what I understand in C2DM, you shouldn't depend on Google's registration ID by itself. They "promise" nothing - you might even get a new registration ID without a clear reason (might be their own vrsion upgrades, etc.).
If you want to follow installation - you should do it with your own server - create a unique identifier whenever the app asks for registration, and use it and not the Google's registration ID.
Regarding to Google Play - couldn't find a difference between published app and unpublished one - the behavior seems to be the same.
Hope this helps somehow.
Shushu