android

Android SMS Content (content://sms/sent)

Hi, I'm having a problem reading the SMS messages from the device. When acquiring a content provider for the URI 'content://sms/inbox', everything is fine, I can read the "person" column to find the foreign key into the people table and ultimately reach the contact and their name. However, I also want to traverse the sent messages too. ...

Can't set breakpoints in Eclipse

Following the Android notepad tutorials using Eclipse 3.4.2 on OSX 10.5.6. I'm instructed to set a breakpoint in one of the following ways: Double click on the gray bar to the left of the editor pane. this just brings up the "Add Bookmark" window Select "Toggle breakpoint" in the context menu the only options in the context menu ...

Can I use resources licenced under the Apache Public License in my commercial app?

Hello, Under the terms of the Apache Public License, can I use some (graphic) resources in my commercial app? More specifically, in my (proprietary) Android app, I want to use some graphics from Android. Since Android is licensed under the Apache Public License, I downloaded the source and took the resources I wanted. But I was wondering...

Android java.lang.VerifyError?

In my Android app, I always get VerifyErrors! And I cannot figure out why. Whenever I include a external JAR, I always get VerifyErrors when I try to launch my app (except for once, when I included Apache Log4j.) I usually get around this by taking the source of the library and adding it to my project, but I am trying to put the GData cl...

How to Consume WCF Service with Android

Hi, I am creating a server in .NET and a client application for Android. I would like to implement an authentication method which sends username and password to server and a server sends back a session string. I'm not familiar with WCF so I would really appreciate your help. In java I've written the following method: private void Log...

Running Java bytecode on the Android - Sun JVM on top of DalvikVM

Since both the java implementation (OpenJDK) and Android's virtual machine DalvikVM are opensource it must be possible to implement Sun's JavaVM on top Google's DalvikVM. This would make it possible to run JVM based apps and languages (Clojure, Jython) out-of-the-box on the android. Is there an ongoing effort to produce such an implemen...

Android: Regaining focus using SurfaceView

I'm currently getting to grips with Android, playing around with the Lunar Lander sample. I've found that if you navigate away from the app (eg, hit the call button) it will destroy the underlying surface (calling surfaceDestroyed). Navigating back (which will trigger onWindowVisibilityChanged) the app will crash, as it will try to dra...

How do I make an http request using cookies on Android?

I'd like to make an http request to a remote server while properly handling cookies (eg. storing cookies sent by the server, and sending those cookies when I make subsequent requests). It'd be nice to preserve any and all cookies, but really the only one I care about is the session cookie. With java.net, it appears that the preferred w...

Where to stop/destroy threads in Android Service class?

I have created a threaded service the following way: public class TCPClientService extends Service{ ... @Override public void onCreate() { ... Measurements = new LinkedList<String>(); enableDataSending(); } @Override public IBinder onBind(Intent intent) { //TODO: Replace with service binding implementation re...

Android IllegalThreadStateException in LunarLander

Hey, Just come to polishing my application and making it resume after the user has left. When the application restores I get an IllegalThreadStateException, which is quite annoying. This problem is present in the example google gives of Lunar Lander. Has anyone found a way to restore working when using surfaceView? Cheers ...

How to set HttpResponse timeout for Android in Java

I have created the following function for checking the connection status: private void checkConnectionStatus() { HttpClient httpClient = new DefaultHttpClient(); try { String url = "http://xxx.xxx.xxx.xxx:8000/GaitLink/" + strSessionString + "/ConnectionStatus"; Log.d("phobos", "performing get " +...

Calender Syncronization in Android Application

Hello, I am a student in Northwestern Polytechnic University in computer science program. I am working on project a in which i have to sync my program with google calender using android application. for that i am using eclipse and i got some code online but i dont know wht .jar file i need to add for support below importss.. import com....

android access or read email programatically

HI Guys, Is there a way to read/access emails or inbox in Android programatically. Thanks in advance. Begining Android developer. ...

Java: HTTP Post to create new "Product" in a Ruby on Rails application

Using the Apache HttpClient on android, how do I send data to a RESTfull Ruby on Rails app using HttpPost. This is my Controller: # POST /products def create @product = Product.new(params[:product]) respond_to do |format| if @product.save flash[:notice] = 'Product was successfully created.' format.html...

Is it possible to move components around the screen using the standard android apis?

I would like to produce an android user interface which allows the user to move added components/widgets around the screen by selecting them and then dragging them around. Is this possible using the standard android apis? ...

Android - show an indeterminate progressbar without the dialog

I want to show my progressbar in the center of the screen when a processing happens on a button click. But I just want the progressbar without the dialog box.. Is there any way I can do this? ...

Android - how do I investigate an ANR?

Hi Is there a way of finding out where my app threw an ANR (Application Not Responding). I took a look at the traces.txt file in /data and I see a trace for my application. This is what I see in the trace. DALVIK THREADS: "main" prio=5 tid=3 TIMED_WAIT | group="main" sCount=1 dsCount=0 s=0 obj=0x400143a8 | sysTid=691 nice=0 sched=0...

Android: how to store variable values to registry?

Hi, I am creating an application which requires login and enables user to configure some settings. However I would like to enable user to store preferred settings, username and password. Does anyone know how to store and retrieve values from registry? Another possibility is using SQL Lite database but if possible I would prefer to sto...

Android: How to declare global variables?

Hi, I am creating an application which requires login. I created the main and the login activity. In the main activity onCreate method I added the following condition: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ... loadSettings(); if(strSes...

Android Combine Bitmaps -> Video

Hello, I have a array of Bitmaps. How could I combine them into a video to store on the SD Card? Thanks, Isaac ...