I'm developing a web-application using HTML5 canvas and I need to debug in mobile browsers.
Normally I'm using firebug in Firefox and the built-in developer tools in Chromium for this, but I need to do some of the same on the iPhone and on Android-based phones, like the HTC Hero.
...
It would be nice if the ProgressBar could be made to go away until it is needed. Is there a problem using setVisibility.progressBar in applyMenuChoice? The problem with using setVisibility.progressBar in PrintStatusTask().execute() is that it crashes the app during runtime.
public class Controller extends Activity {
private Progress...
I am having two activities in my app TestActivity (T1) and TestActivity2(T2). TestActivity is the launch activity which in turn starts TestActivity2. T1 has portrat orientation while T2 has landscape orientation (in the android manifest file). Now when T1 starts up and initiates T2, T1 gets destroyed and recreated again. Is there anyway ...
Ok so in my application I have a DBAdapter class, that does its job well. In the main Activity, I have a variable this.dbAdapter. I would like to share this variable with other Activites, so I don't have to create a new DBAdapter in each Activity.
How would be the best way of doing this? Should I do something like intent.putExtra("DbAda...
An observation: While I was developing my app on android, I noticed following two lines in LogCat. These occurred because of too much memory requirements of my own app. I have read that Android can decide when to get rid of a process that are not needed or because of memory requirements.
Does it mean the alarm will not trigger at all (w...
Hi!
I want to display animated gifs in my aplication.
As I found out the hard way Android doesn't support animated gifs natively.
However it can display animations using AnimationDrawable:
http://developer.android.com/guide/topics/graphics/2d-graphics.html#frame-animation
The example uses animation saved as frames in application resou...
I have an implementation that just like gmail application, but have
met some problem in some case. And I tested it on the real device of
the gmail application. Seems they are caused by the same reason.
ListView.
Just go to the gmail application, scroll down to the last visible
mail, and at this time, make sure the "loading conversation"...
This app needs the device (and its display) to stay awake between onPreExecute() and onPostExecute().
...
This is simple, but not working. I am trying to create a temp file (later a permanent storage file) for preview of an MP3 file. I have tried the following variants of the suffix as following example:
public class StudyFileIo extends Activity {
private static final String TAG = "StudyFileIo";
@Override
public void onCreat...
If I pass http://www.ebay.com to this. Somewhere along the way ebay changes my url, perhaps a redirect. What's weird is Android java can't open the page.
u = new URL(txturl.getText().toString());
I get the error below as it apparently opening the new mobile site. I'm just wonder at what point my url changes and If I somehow stop this...
I have a list that gets refreshed every 2 seconds via the Handler postDelayed() method.
Every 2 seconds an AsyncTask is run that makes an HTTP GET request, turns the JSON into a list of objects, then sets the ListAdapter:
MyListAdapter adapter = new MyListAdapter(someObjects);
setListAdapter(adapter);
My problem is that every time ...
I'd love to get some ideas on best practices for testing our Android software, especially for AT&T devices. We're using a Samsung Captivate, on AT&T. As you know, AT&T disables sideloading (no Unknowns Sources option in Settings->Applications).
We need to have our QA team load our apk file onto these devices as part of our testing and...
Hi all,
My ListView has to be customized like, it should have three imageView in each ListItem along with the name and date that has to populated from the DB,added with that, once i click upon the a list item ,that corresponding Listitem information has to be displayed in another Screen...The Size of the List should be based on the Curs...
Hi,
Im having sqlite file which contains data to display in a listview.
How i can get data from SQLite file
Please help me out.
Thanks...
...
hi.
Im developping alarm application.
I'm using listview on activity to reserve alarm.
after application finish BroadcastReceiver.onReceive() method,
I want to remove check of list.
But i dont know how to access to activity.
anybody knows?
The following is my code:
public class Activity_001 extends ListActivity {
Intent ...
Okay, so I am still learning to do some coding here, and I seem to have gotten stuck
I want to have a select number of documents added to a package for the android os
but i dont know how to store said documents. Do I add them all under res/raw? or make an SQLlite database and call from there?
more importantly, I need to be able to call...
What is Package Manager ? What is the purpose of using it ?
What does the following methods describe:
(1) getPackageManager()
(2) getApplicationInfo()
(3) getPackageName()
Can any one give detailed description as I could not get complete inf. in Android developer guide.
And also one sample program that comprises all the methods.
...
Hi. I have to know .. How to get data from SQLite which contains some data. How to place it(the data) in the listview.
Thanks
...
I've been trying to find the answer to this for a while today and there's just so much contradictory information....
What I'd like to do is get a current unix timestamp in android, and then convert it to a format that allows me to getHours() and getMinutes().
I'm currently doing this:
int time = (int) (System.currentTimeMillis());
Tim...
I have a looping animation I want to present for an image button before a static image is used; on each button press. Is there a way to run this animation for around 2000 milliseconds then switch over to the image. What I have tried just results in a pause then the static image.
button.setOnClickListener(new View.OnClickListener()...