How to show an image when loading Application in Android? - android

I am building an Android app.
For that i want to show image at the time of starting ( like in iPhone when we start app it shows download image after downloading completed it will disappear. )
Edit If user click on my app icon for loading it takes some time , in this time i want to show an image..
Is it possible in Android , if yes guide me how to do this.
SlashScreen

see link:
http://p-xr.com/android-tutorial-how-to-make-a-basic-splash-screen/

I figure you want the UI to not have any lagg right? So what you want to do is do all this "loading" business in a different thread from your UI, what is it your application wants to load?
Have a look at this article: http://developer.android.com/resources/articles/painless-threading.html
Or maybe have a look at this: http://p-xr.com/android-tutorial-how-to-make-a-basic-splash-screen/
It may help you out, but you might want to elaborate on what you are trying to do so we can help out more.
What I believe you should do tho is delay this loading until you have loaded this splash screen. You should display something like a progress bar so the user doesn't see your app as if it was freezing.
You should look into AsyncTask (right down the bottom of that thread)

The above link: http://p-xr.com/android-tutorial-how-to-make-a-basic-splash-screen/ is dead
please use following link to get the details:
http://web.archive.org/web/20130115075557/http://p-xr.com/android-tutorial-how-to-make-a-basic-splash-screen/

Related

Android - Take a "Screenshot" of an App Running in the Background

I have read plenty of questions that deal with an app taking screenshot of the current users screen while the app runs in the background, but have not seen many articles that deal with the app taking a "screenshot" of itself while it runs in the background.
I would like this to be able to be done without having to root the phone in any way as I would like the app I make be available to everyone(rooting is probably not involved in this solution, but just throwing that out there).
The end goal of the app is for the app be able to take a screenshot of itself and save that screenshot as the users background wallpaper. There are several other features I would like to add, but I would just want to know, is this even possible? If this is, could anyone show me some starter code or link me to some?If this question has been asked before, please let me know, otherwise, any and all help is appreciated. Thank you!
Firstly, I am not really sure if I understand your requirement correctly. Ideally when the app is in background, its state when it went to the background and while it is in background will remain the same. So you can take a screenshot of your app, when the app is just going in background, which can be handled in your onPause() of the activity.
To take screenshot of your app, place the entire layout in a ViewGroup and then use the following code.
parentLayout = (RelativeLayout)findViewById(R.id.parentLayout);
parentLayout.setDrawingCacheEnabled(true);
parentLayout.buildDrawingCache();
And when you want to take a screenshot, get the screenshot in the Bitmap by using
bitmap = parentLayout.getDrawingCache();
The above line should be in your onPause() thats when the app goes in background. Or you could also trigger it when your app is in background, and see if it is captured. I'm not really sure how it will work in the latter scenario.

android- How to make educational semi-transparent images when app runs for the first time

I've seen this in some apps , When the user runs the application for the first time, it shows some semi transparent screen shots that points to a certain part and shows some texts under it .
What does it calls ? How can I make some for my application ?
Edit:
this is the image of what i mean :
thanks
I think you are looking for something like this
here's the github url: showcase
EDIT:
Then take a look at this
there are also some of library there but i', not sure it's work for you
lib
try this and let me know if it work for you.

Showing text gallery on application first time start up in Android

I am posting this question because I never worked on this and I am not aware which component is used to implement such functionality.
See this screen-shot. This is an sample image. It is not my work, this is taken from Google Images:
Now on application startup I am reading Android sd card and updating my database. In the meantime, I am using ProgressDialog like this
Now what I want is to show 5 image slides. Not Image slide I want a single colour backgroung and the text should have to be change every two seconds on the same backgroung with five small circles I downside.
Now I am not able to get what is it. A image slide show or other native component. I asked in chat rooms they asked me to post here.
If it can happen without image it will be better because there is a lot of complexities with different device sizes.
How can I implement this?
Try with android smartimageview or with Viewflow

Show progress of file sending

Im sending files to my server from my android device, and would be great to get some feedback on how the file process is working out. For example in percentage.
Just that im leaving home for a couple of days and i would like to get right on it when i get back home becuase my time is running out. So would be great to return home with some descent tips right away :)
I think the following link has exactly the codes that you are looking for. A sample application that shows the progress of downloading a file:
http://www.java-samples.com/showtutorial.php?tutorialid=1521
There are 2 ways to do it:
Use a Handler
Use an AsyncTask

how can i create a very simple animated image / progress bar on android device?

i am doing some processing in the background in my app and i am in need to show a small indicator what the app is retrieving data from the server. in a perfect world i would use an animated gif but since google decided not to support it i need a solution. i don't want the build-in dialog box that prevents the user from using an app. i need to be able place it anywhere on my layout and show/hide it when i need to. my app runs on 2.2+
any help is appreciated :)
Use ProgressBar.

Categories

Resources