android

HelloWebView Sample: java.lang.SecurityException: Permission Denial

Hey Folks, I am trying to get the HelloWebView Sample up and running (as is, with no cuustomizations) found at http://developer.android.com/resources/tutorials/views/hello-webview.html I continue to get java.lang.SecurityException: Permission Denial despite all efforts. In my mind this has got to be some fundamental lack of understa...

Is there a way to get notified when a user adds a new calendar entry

Can i get informed in my android application when a user adds a new entry in his calendar application (i.e. via listeners, ...) or is checking the calendar every now and then via the content provider of the calendar app the only solution to find out if the user has added new entries ? ...

Run my application in background when i start device power on in android

Possible Duplicates: how to create startup application in android? How to Autostart an Android Application? Hi, I am trying in one of my application when i am going to start i mean power on my google android g1 my application automatically will start but i am unable to understand how can i do that please help...... ...

What are the iphone/android specific Web features?

I'm trying to list Web features (HTML, CSS, Javascript, APIs) that can be used for mobile web pages, things we don't usually use on Desktop browsers. So far, I have: geolocation orientation viewport (width, scale) touch-events tap-highlight-color map and youtube links open in a dedicated app tel: links support specific keyboard layout...

How to develop a video player that receives video stream on wi-fi broadcasting/multicasting?

general video players connect the media server through unicast but I need a player to receive media stream using multicast/broadcast. scenario: Media Server ---> AP --(multicast/broadcast video stream)--> player(android phone) is there any Android SDK to support this function? or is there any solution without developing software ...

Customizing Android ListView Colors?

I've scoured the interwebs and found many posts regarding how to change the colors of a list view using a list selector. However it does not seem to work for me. So my question would be what am I doing wrong? When I use the below files I get a list where all item backgrounds are initially blue. (I expected white) When I move the f...

What is the best approach to develope a multi-platform mobile application?

We need to make an application that runs on iPhone, Android and BB. What is the best approach to write the least ammount of code? I know about some frameworks but I am not sure the best approach. ...

Unzip file from zip archive of multiple files on Android using ZipFile class

I'd like to use the ZipFile class to unzip a file using it's name from an archive of multiple files. How can I get the String of the zip file name and directory to pass to the ZipFile constructor? ...

changing ImageView source

hello I have an ImageView with a source image set in the xml using the following syntax: <ImageView android:id="@+id/articleImg" style="@style/articleImgSmall_2" android:src="@drawable/default_m" /> now I need to change this image programmatically. What I need to do is delete the old image and add a new one thou...

Convert file: Uri to File in Android

What's the easiest way to convert from a file: android.net.Uri to a File in Android? Tried the following but it doesn't work: final File file = new File(Environment.getExternalStorageDirectory(), "read.me"); Uri uri = Uri.fromFile(file); File auxFile = new File(uri.toString()); assertEquals(file.getAbsolutePath(), auxFile.getAbsolu...

Sharing Android code (Is there really no way to do this?)

I have a particular collection of code along with some XML files that I need to share with every application I will make. At the moment I can't because as far as I am aware there is no way to do this. This seems like a massive oversight by the development team. If the code needs changing, I have to change it in every app that I creat...

Getting item's index from id in ExpandableListView

Hi! I need to get item's index(position) knowing its ID while using ExpandableListView. Is there any way to do this without making complete hash id->index and searching it? Thanks ...

Testing Android activity with async tasks

How do you create unit tests for an Android activity that starts async tasks in onCreate? I would like to test the result of these tasks. ...

Speed up Android emulator

I read on many other topics that the Android emulator starts really slow. Indeed, it takes +15 mins to start. However, on my machine is slow even after that. The 'phone' responds with a 3-4 seconds delay and everything has a huge lag. Is there any way to improve the performance of my laptop (Asus 1201N) is too rusty for the Android emu...

findviewbyid() returns null - in a custom CursorAdapter bindview()

package edu.ohio.android.bmm.activity; import android.content.Context; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import a...

OAuth Request token = null in android app

Hi, i am trying to authenticate something(in this case LinkedIn) using OAuth but the requested token always returns null? Here is my code below: public void authenticateAppOauthApi() { Log.d(TAG, "authenticateAppOauthApi"); OAuthServiceProvider provider = new OAuthServiceProvider( REQUEST_TOKEN_PATH, AU...

Using XPath on String in Android (JAVA)

I am looking for some examples of using xpath in Android? Or if anyone can share their experiences. I have been struggeling to make tail or head of this problem :-( I have a string that contains a standard xml file. I believe I need to convert that into an xml document. I have found this code which I think will do the trick: public...

Tile drawaing problem

I have more than 1000 of tiles size 256 each. This is actually a large image cut in tiles. I need to show in android OpenGL. The problem is I cannot load more than 7x7 = 49 tiles. Thanks saiful ...

Cannot create R.java b/c project has errors...errors result from lack of R.java...

edit: This is an Android project. My problem arose when I added a new .wav file to my 'raw' folder. I seem to have gotten into an endless loop in Eclipse. I deleted my R.java file from my project. Choosing to "Clean" or "Build Project" has no effect (i.e. doesn't generate an R.java file, or put anything into the 'gen' folder, or crea...

Soft keyboard "del" key fails in EditText on Gallery widget

Hi, I am developing an application in Eclipse build ID 20090920-1017 using android SDK 2.2 and testing on a Google Nexus One. For the purposes of the tests below I am using the IME "Android keyboard" on a non-rooted phone. I have an EditText widget which exhibits some very strange behavior. I can type text, and then press the "del" key...