Android app Text-to-Speech voice download notification for users - android

I have coded my Android app with "Text-to-Speech", voice "English-UK",
lg.setLanguage(Locale.UK)
So, when I install it's apk in a new mobile for testing, it starts downloading voice "English-UK", as shown below,
But, if the Internet isn't working, while accessing app for the first time, then the app's function to read aloud text won't work.
But, after it gets installed, the app works fine and their is no need to install the same language again.
What should I do in this case, so that users don't feel confused after downloading my app. How will they understand that the app needs "Voice-UK"? Should I notify them, if yes, then how,
Retry ?
Internet isn't working ?
A dialog box showing install English-UK?

Related

Suppress unfortunately app stopped

I'm developing a kiosk type application, running on a rooted device.
One feature of the app is that you must be able to download new versions of the app via wifi. However after running sudo commands to uninstall the app & reinstall the new one, we see the message 'unfortunately app has stopped'.
I'm trying to find a work around. The client does not want this dialog to be shown.
I thought of creating a second application to host on the device in order to display whilst updating and to close again after, but even if the other app is in the background, we would still be able to see the dialog which is against the clients wishes.
Any suggestions?
I doubt that the solution you thought of will work.
You receive the message saying unfortunately app has stopped because it is getting uninstalled while it is still running either in the background or not it doesn't matter.
What I would imagine could be a solution is sending out a command to quit the application you could use force-stop for this.
Take a look at these posts they might help you out
Stopping an Android app from console
Force Close an app programmatically

I want to show a progress bar in mobile app showing the progress of the wear app's installation. Is there any way to track the installation progress?

I am new to Android Wear Development. I don't know the mechanism of the installation of Android Wear App. Ideally, in mobile side app, I am trying to set up a progress bar showing the installation progress of the wear app, because I want to give user some feedback during the installation, so that the user will know it is still running, not no response.
Is there anyway I can track the progress?
There is no direct way to so this, however you really dont have to worry about your wear app being installed to the watch. It will be done automatically when the user installs your phone app.

What is the application flow after Google Store update?

I'm trying to understand what exactly happens after my app gets updated on the users devices.
As of course the 'MainActivity' isn't launched, I am wondering about the services.
I have one START_STICKY service and one which is not, does the START_STICKY auto-start after the update, what about the other ?
Is there any way of testing this behavior without waiting for a real Play Store update ?
I looked for a documentation regarding this issue but couldn't find anything related.
I just did a quick test. Not sure how close this is to an actual update on the Play Store or if it is in any way comparable, but here goes:
I have created a simple app that starts two services on the click of a button, one START_STICKY one START_NOT_STICKY.
Both services create a notification in onStartCommand() and show a version number.
I create one release APK, change the version number in Manifest and notification, and create another release APK. I've copied the two APKs onto the phone and disconnected the phone.
I've manually installed the first APK on the phone, started the app, clicked the button, two notifications appear. Installed the second APK, without starting the app. The two notifications disappeared and did not re-appear either. Opened the app, clicked the button, both notifications appeared with the new version number.
From this it appears that neither service will be restarted automatically after an app update.
You could also publish your app on Google Play as an Alpha version and test an update of your app without annoying general users.

Android - Google Play Store closes app for update and not opening it afterwards

I've got the following situation: My app is always running on my Android device. Because I want to be able to update it automatically I've activated Google Play Store auto-updates.
When Play store recognizes the new version I closes my app (what is ok) and updates it (great!). Unfortunately afterwards the app is not opened again.
Does anybody know a solution or has an idea how I can tell my app, the store or the device to open my app again?
BTW: My app starts on system start-up. So rebooting the devide would be a possibility as well. But how to I catch the update-finished event?
Thanks!
Edit: I build the app. It has a listener for the system startup so it is started on boot.
Post Honeycomb, apps have to be started manually by the user after installation or upgrade.
If you need your app to always run continuously, you would need to turn off auto update and manually update it yourself so that you can launch it manually after updating.

Android - How would you go about installing setup data from the internet

I am working on an android application that uses data from the internet. On first use, downloading and inserting data into the database takes a some time which might make the user feel that the application is non-responsive and might drive impatient users away immediatly. I am currently displaying a progress dialog to inform the user that this operation might take some time to complete (around 1/2 a minute).
is there a way to install all the data while installing the application, ie. before first use?
No. You cannot do this. Other applications can capture Intent after an app is downloaded, but not if it is the app that was just downloaded.
This question is similar to Launch a service after the intallation of my Android application.

Categories

Resources