I developed a j2me application. I want this application to uninstall itself at some point after deploying this in a phone. Uninstallation is done without any user's interaction for that. How can do this?
No, there is no way for a J2ME app to programatically uninstall itself! Perhaps display a message asking the user to uninstall it manually?
You can certainly add some logic to make the app effectively useless after a certain event has happened... so when the user starts it up they just get a screen saying "please uninstall me", with no other functionality.
Related
I have this media player project and I have foreground service in it which allows me to control the song through notifications even if I clear the app in the background. Everything is working fine including the controls in the notification. But...the notification just remains forever and cannot be cleared even if I try to clear it until I re-run the app or restart my phone. Please help. Tried things like setAutoCancel(true) and etc
Are you calling
stopForeground()
?
This method takes a Boolean to indicate if you want to remove the notification as well.
Read this article
I wanted to know is there a way by which we can check whether our website's PWA is installed or not by the user on the device?
I have done with the " add to home screen banner" but what if the user comes the second time and we need to check. Please help thanks in advance.
You may refer with this documentation. Be noted that if the user has installed your Progressive Web App through the old Add to Homescreen method (i.e, in anything prior to Chrome 58) then it is not possible to detect if your app is installed. Chrome added your site to the Homescreen as a bookmark, and this data was not exposed to the system.
However, if the user has installed the web app using the new Web APK functionality, it is possible to determine if your web app is installed. If you know the package name of your Web APK then you can use the context.getPackageManager().getApplicationInfo() API to determine if it is installed. Please note that this is experimental.
Is there a way to reboot the phone using c# code from an Universal App?
I could not find anything in the github UWP samples library.
UWP apps/Windows Store apps have very limited access to system method/resources - by design due to security issues.
There is no way to reboot the phone with official API.
You can try to find some hacks to do it - I've seen once some methods (don't have links now) using Pinvoke in WP8.1 - but you cannot be sure if they will work and/or pass certification.
Except that you cannot do it, you should not reboot the system from code.
Even (most) OS procedures ask user permission, all you can do is prompting the user asking for a reboot.
Also, you shouldn't need a system reboot. At most, what you need is an app restart. I looked for an "APP restart" API but I couldn't find it, but what you can do is closing it.
You should tell the user that the app will close, and doing so after the user confirmed invoking CoreApplication.Exit();.
The user then can reopen it.
I'm working on a Spotify App, but the Spotify application keeps crashing on me. I have been trying to debug my own Javascript code, to see where it goes wrong, but it seems a bit random. It almost always happens when my app loses focus (i.e. switch to another app). Is there a compatibility issue with jQuery perhaps?
Unfortunately I can't find any crash-logs or anything, for Spotify. Are there any?
I hope someone can help me along here, because this problem makes developing cool Spotify Apps as good as impossible.
Edit: To clarify, I'm using Spotify 0.8.8.450.gd9413514, on Windows 8 64-bit, but I've also experienced the same on Windows 7 and Mac OS X 10.6.
Using Windows 7, you can create a crash log by accessing the Task Manager, right clicking the Spotify process and selecting "Create dump file". If you're on Mac OS X, you can get a crash dump by opening the Activity Monitor, selecting the Spotify process and clicking 'Sample Process'.
I was having the same problems, It seems related to ads banner on the top. Run the ad video and pause it, that solved the problem for me.
I've been trying to create a proper Restart feature within my app, which doesn't work (Orientation is meshing up badly) so since this is a prototype I figure it will be easier if I just crash my app and the user taps again the icon.
Is there a way I could kill my application from code within 1-2 sec.?
Thank you!
You mean you want to quit your app when user taps on home button instead of going the app into background? If yes you can quit the app when user presses home button by adding a key into your info.plist file application does not run in background and set it's value to true. Here is the original key name UIKeySuspendOnExit I don't remember excatly but it should be like this. Find on google you will get easily.