Hello stackOverflow readers,
I am hoping that this is a simple setup issue, but here it goes:
Eclipse 3.6.0
AVD 2.2 and 1.5 (created both and tried with both)
XP Pro 2002 SP3
I followed the tutorial at site http://developer.android.com/resources/tutorials/hello-world.html but my custom TextView control never rendered.
I set a fe...
What does this line from the following code sample mean? "synchronized (_surfaceHolder) {_panel.onDraw(c);}"
I can guess what it does, but what is it called and how does it works? Is it a nameless synchronized function?
class TutorialThread extends Thread {
private SurfaceHolder _surfaceHolder;
private Panel _panel;
private...
OK, this should really be asked to someone from Google, but I just want other opinion.
Even Android supports Native code applications, the main development tool is Java. But why? I mean, isn't it too slow to interpret code on a mobile device? when introducing Froyo, Google said that new JIT compiler can achieve 2-5 times faster applicat...
My app is set in landscape only mode thanks to an attribute in my manifest file, but with froyo came universal rotation and a problem. It will force the screen to landscape but if the user is holding the phone upside down my app will appear upside down. Is there a way for me to set my app to only rotate when the user has their phone orie...
I am running into a problem simply trying to connect to the internet from the Android emulator. I am behind a proxy server and am using the -http-proxy tag when I start the emulator. When I try to connect to the internet in any fashion, it fails. When I open up the internet browser I get the following exception:
Unknown error 1 durin...
I am new to Android development. Is there a quicker/better way to design the UI than to explicitly write it in XML? Perhaps an Eclipse plug-in to visually create UI?
...
I have created an application that displays XML data information on the top section of my Linear layout. Below that I have a video that is streaming and takes a while to start playing. How would I set a dialogue to display until the video appears?
...
I followed the instruction for "Hello, Testing" tutorial but could not found any project to select for build target at this instruction "Test Target: Set "An existing Android project", click Browse, and then select "HelloAndroid" from the list of projects."
Ok, let type the location of an existing project: ~/workspace/HelloAndroid, the ...
Hi folks,
I have several audio files in the res/raw folder.
When I run the following code I was assuming that just the "sound1" file would be played, instead all of the files in the folder get played one after another, not just "sound1".
MediaPlayer mp = MediaPlayer.create(this, R.raw.sound1);
try {
mp.start();
} catch (Illega...
I would like to provide the appearance of DB for my web service without storing it into the DB as a cache or middleware.
...
I'm developing an Activity that does some of its own state management. I'm trying to differentiate the following onResume cases:
New launch
task switch (home button long-click)
resume after other activity in the same application
wake-up after sleep
orientation change
Is there something in the Activity's intent, or elsewhere, that ca...
down vote
I am new to OpenGl.Please Help me. How can I draw or put images into transparent 3d cube. I use the same CubeRender.java, Cube.java files from Api Demos.In my CubeActivity class I add mCubeView.getHolder().setFormat(PixelFormat.TRANSPARENT) to have transparent cube.
...
I've put a little app together that has three tabs to show three different web pages. It does work however I am bit worried I haven't got enough control over how this whole thing works. When I click a tab, I get a web page loaded (see code sample below), now when I click another tab another page loads in another view. When I go back to t...
Does anyone know how to get the android device system log programatically using Java? This would be something similar to what is available on lower panel on the Dalvik Debug Monitor.
Thanks in advance.
...
I have a SQLiteDatabase data member that I initialize in onCreate and call .close() on in onPause(), onStop(), and onDestroy(). It is re-initialized in onResume(). It seems to run just fine but when I looked at the debugger it see this:
08-24 20:23:50.014: ERROR/Database(6767): Leak found
08-24 20:23:50.014: ERROR/Database(6767): java.l...
This is a follow up question of http://stackoverflow.com/questions/3550593/sending-html-commands-over-httpclient-android , I have successfully POSTed to the server and recieved 200 code but when I attempt to move to another page it does not recognize that I have logged in. I am wondering if it is a session issue or if i need to follow th...
I have a ListView that can have one or more clickable items. When I apply a rotate animation the coordinates that are clicked correspond to the original position of the ListView items. For example a list with one item in portrait mode rotated 180 degrees will have the item upside down on the bottom of the screen, but the item gets the cl...
Hi,
I am downloading a text-file from example.com/test.txt and I need the contents only during the runtime of my app, they don't need to be saved to a static file.
My code so far:
InputStream input = new BufferedInputStream(getURL.openStream());
OutputStream output = new FileOutputStream(tempFile);
...
Android Market links go to 404 on non Android browsers. When will Google fix this?
It's really annoying having to check the user-agent and displaying something else for non Android browsers.
...
please help me. i need a code that will tweet using oauth + twitter api...
http://www.youtube.com/watch?v=25o0b2aEw0E
i have used this project and i m getting error
08-25 11:47:32.747: WARN/System.err(2029): org.apache.http.client.HttpResponseException: Unauthorized
08-25 11:47:32.747: WARN/System.err(2029): at org.apache.http.im...