android

Android SDK Playing Remote 3gp Video

I've been trying to get this working for hours now with no success. No matter what I do my phone (HTC Hero 2.1 firmware) always says the video cannot be played. When I look at the logs I see: 09-26 21:34:56.201: INFO/VideoPlayerView(21477): onInfo what=MEDIA_INFO_UNKNOWN:,= extra=26 09-26 21:34:56.201: ERROR/PlayerDriver(56): Command ...

Good Mobile and Desktop Architecture

Hi there, this question is a extension of one made in http://stackoverflow.com/questions/3782849/best-solution-architecture, basically i want to know what is the best architecture to deal with a solutions where both desktop and mobile applications are involved. in this time i would like to know, what if we decided to go over java technol...

Kill activity in thread

How can I kill Android activity from asynchronous thread? In my android application, I start another activity using startActivity. Is there anyway for me to kill that activity I started after several minutes? Or is there any way beside using thread? ...

Can a .apk be used to deliver data to a ContentProvider?

I want to be able to package data in a apk, which is read by my main app. Is there a way that I can put the data in apk, and then upon install automatically hook that data into the ContentProvider in my main app? The other possibility is to have each add-on be a content-provider, and have the app look for it, but then I fragment the au...

Using python in android to interface to sql

I know you can use python and other scripting languages in android. But I haven't seen weather or not it was possible to use python as an interface to sqlite in android. Is this possible? This is the first android app where I've needed sqlite, and using the java api's is retarded. If this isn't possible, can someone point me to a good t...

How can I make an app trigger a set of actions on April 01, 2011?

Hello all Androiders. I am trying to build an app on my wife's phone that pranks her on April 01, April Fool's day of course. The app is going to change her background to look like the screen was cracked, the background is very convincing when I try it on my Droid (I was pranked similarly). Anyway, digging into how this would work, I t...

Android not sizing Custom Dialog big enough

I am using a custom Dialog that contains a text field, an image, and a button. The text can contain HTML. Sometimes the bottom of the dialog gets chopped off the bottom when the text is long enough. How can I prevent this? I want Android to determine the size of the dialog but it doesn't seem to be doing that. DO I need to size the Dialo...

How to verify / troubleshoot AVD debug key

Hi, I'm trying the HelloMapView example found here: http://developer.android.com/guide/tutorials/views/hello-mapview.html Problem I'm having is that when I run my application, none of the map tiles will load... I heard this is usually do to my google maps api key not being correct. I tried signing my app with a key that I generated from...

how to create a popup in android?

Hi, i have a list.When i click on any item in the list a popup should appear where i can send messages(something like what happens when we click a user in gmail.A popup window comes up in the bottom and we can chat with that user). ...

How to run a video hosted on YouTube or a private server in Android?

I have about 3 videos that i cannot install with my app on DROID due to their huge size. Now we have decided to host them on a private server or YouTube. How can i run these videos in Android? Thank you ...

find left and right turn in andoid mobile

Hi folks how to find out mobile turn left and right.depending on left and right turn i need to one ball Please help me Thanks in advance Aswan ...

android network block by cancelling

I use an httpconnection to post some data to the server and wait for response. The connection can be canceled by closing the inputstream, outputstream and connection. But if I cancel the connection at a right timing, then though the is, os, connnection are closed, but the worker thread just hand there, for about one minute. And then a ...

How to create a List with XML DOM Parsed Data

Hi, How to create a List with XMLParsed Data ... In XML one text tag Having 7 Attributes And I have to Display them in a List. Parsing is done By DOM. private void DownloadLINK(String URL) { TextView display = new TextView(this); InputStream in = null; try { in = OpenHttpConnection(URL); Document doc = null; DocumentBuilderF...

Android - Imageview in center in all screen resolution

Right now, i am developing Android Application using SDK 1.5 and testing application on HTC Hero, its firmware is Android 1.5. Let me come to actual point: in application, i am having an imageview for displaying image (Image resolution is 320*480), now imageview is displaying image in full-screen perfectly, but when i am trying to test ...

Android: Application crashes while testing through Android Instrumentation

I have separated java code from Android code and have two projects. Android dependent on Java project. Now i want to get the memory trace of the Java project on Android. For that I have created Androd Junit Project implementing Android Instrumentation, and a dummy android project dependent on my actual java project.(as I only want to get...

Rotate individual polygons in an Open GL vertex array?

I am working on a game for Android using OpenGL ES, and I have run into a performance problem. What I am trying to do: I have a bunch of objects on screen that all share the same mesh, but all have individual rotations and translations. You could compare it to Asteroids where you have a bunch of asteroids moving around on screen. The a...

android image upload

hello i am new in android devlopment i want to know how to upload an image in android i dont found any usefull tutorial for this can u give me some instruction,pls,help me out. ...

How to bring an activity to front in android?

i am using moveTasktoBack() function to sen my activity to send my activity to background. I want to bring my activity to front when a timer in my activity finishes. I am using the phone back key to send the activity to back. How to do that.Help please. ...

Android code to convert base64 string to bitmap

Hi stackoverflow team i have a problem in converting base64 string to bitmap in android. I am using the camera to fetch the image and i am convert the image to base64 string to post to the server. I want to show that image in the imageview so how can i show the image in the ImageView after fetching the image from the camera. please help ...

Creating an Account with dummy authenticator

I am trying to create an account in Accounts & Sync which doesn't require authentication. I have already referred to SampleSync example. The key difference between the example and what I am trying to build is Authentication. I don't want to display an Authentication/Login activity to the user. Is it possible to create an account directly...