Please direct me how to show progress bar when switching between activiies.
On my second activity there are lots of calculations and coded views and it leads to expected delays in opening. But I want to show a loading progress in percentage
More details on attached screen shot
screenshot
I have an idea but not the best one you could use the sharedPreference to recover the value
Related
I need to have an invisible button that close my application but without the animation displaying that an application was closed.
The transition must be seemless because the app will be displaying a screenshot of phone's home page and it must look likes there were no application opened when the user touch the button.
I tried removing activity animations in theme and in code but there is still an animation when the app close.
Is it possible ? How ?
This isn't possible, as that is something that is dealt with on an OS level. You could intentionally crash the app by throwing an uncaught exception or something like that, but then you will get a dialog showing that it indeed crashed.
I think you need to go back to the drawing board with coming up with a good prank. :)
Maybe be you can try this:
finish();
overridePendingTransition(0,0);
You need invoke overridePendingTransition(0,0) after finish that will disable transition animation
I have an app where the action bar and notification bar is hidden when user opens the app. I have seen some apps where some overlay help is shown with the image of a hand and up,down arrows and text below which says:
"Tap to view action bar. Tap again to go full screen"
Any help?
Do not use full screen for your app unless you really knows it's the only way. Full screen is annoying for user as you hides clock, nottifications etc.
As for help you may want to use ShowCaseView library: https://github.com/Espiandev/ShowcaseView
I have this app that originally has you take a picture, shows you a progress bar, and uploads it to a website.
What I want to add is something so that before the progress bar shows, an Intent starts an activity that loads a layout with a dropdown menu that allows you to choose a descriptor for the picture. Following this, once you hit the 'OK' button on this new layout, the program should return back to where it had left off and display the progress bar.
Does anyone have any ideas on how to achieve this?
It seems that all I really want is some way to tell the program to stall for a while to call an intent, and when the user hits 'OK', the code may resume.
You should be using OnActivityResult().. More information on the link below http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)
I'm creating my first app for Android device and I was faced with a challenge... I want to create fixed bottom bar on every screen of my application (something similar to bars from tunein radio).
However I do not know how to make bars which are fixed on every activity (bar do not load when new activity is loaded but is permanent on every app screen). I do not want to <include> my bars in every activity (I've tried this solution but my bars were loading with activity).
Is it possible that this is Activitygroup and only middle activity is changing? If so how can I do that?
PS.
What book or tutorial do you recommend ;-)?
tunein radio bottom and top bar image #1
Use fragments api. It perfectly fits your needs.
Look at ViewFlipper. It lets you manage multiple views. You'd have one activity that would watch your button bar and flip views in response to buttons.
In the method "OnCreate" of my actvity, I'm displaying a little progress dialog while loading data. It's done every time the "OnCreate" method is called so even when the screen orientation change.$
In the nominal case, there is no problem even if the user change the screen orientation.
But, if the user opens another dialog (used to select an item in a list), then change the orientation, the progress dialog is displayed behind the "list" dialog and is not impacted by the "removeDialog".
Do you have any clues on that behavior ?
Thanks
call "removeDialog" or "dismissDialog" before "startDialog" with try-catch and so on. You can call "removeDialog" or "dismissDialog" several times...