Show progress of file sending - android

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

Related

In App Downloading of an Excel File Not Working

First of all, let me emphasize that we are not looking for a specific code snippets for a solution. We believe that this problem of ours started with some design flaws. So we are looking for a general direction with which we can start looking for specific methods to solve this issue.
We have an app that has an notice board where admins and users can create threads.
However, we made a thread where people can download our excel template. We posted our link to this excel file like so:
(I apologize for non-English thread as we are located in Korea)
So in this thread page, the image in the middle is the link.
When you tap(click) on this image, a more detailed download page shows up.
When you press the download button, nothing happens. It is supposed to automatically lead to downloading process but it does not.
I suspect that the problem resides in our application structure where whatever a user does in the thread stays in the webview and webview only. Is there any way to make this download take place? The only workaround we found is to press and hold the link button until some options show up and press "open in the browser". However, this is quite inconvenient for normal users and we need to fix this.
Thanks a lot!

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.

Unfortunately app has stopped measures

This might be a weird question to ask.
But i want to make my application better.
I think i can find a solution here.
I am developing android apps..
It almost complete. What i am trying to figure it out is, how android error works.
I mean, i make an error so i will know when my apps crash, it will direct to some activity.
Like i delete an imagebutton in xml so my app will crash and unfortunately app has stopped will show up.
How do i direct to an activity after i click ok on that dialog ?
Is it possible to achieve something like that ?
Instead of crashing it would be better to implement try and catch where needed.
http://docs.oracle.com/javase/tutorial/essential/exceptions/try.html
This allows the app to softly deal with an error and continue. You could then redirect, but it would be better to just let it continue so the user wouldn't have to be interrupted.

How to show an image when loading Application in 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/

Android app Stops and starts on its own

Can anyone help with my android app. I am using eclipse and it is a lengthy page app. At page 18 is tells me that it stopped unexpectedly but after you hit the force close button it starts at the same place and it works correctly.
It is a simple quiz app with back and next buttons. This is the only button that wont work on the first try but as I said after you hit force close the app starts up at the same place and the button works just fine. Then you can also go back and forth over that same page without a problem...what gives?
user1009028, we need more information to be able to know for sure what is going on.
Sometimes, for mysterious reasons, the app seems to "crash" and yet still run. There are a number of possibilities here.
If you can post your full code online somewhere, that is great, but even just the logcat will be useful. Since you know how to reproduce the error, get to the page just before the crash, clear your logcat, then go to the next page so it crashes. Then copy and paste everything in your logcat to here in Stack Overflow; that will be the most relevant information related to the crash, which may or may not give enough detail--at least we'll know what to ask for then :)
Regarding your question on "com.csg.SlideNineteen#405761f8", the default toString on objects gives the class name and its address in memory. The numbers at the end are the address of the object in memory... not very useful in most cases.

Categories

Resources