android

What are the current limitations of WebChromeClient starting with Froyo?

I recall reading about limitation of the WebChromeClient, in particular, permissions to access references in the HTML document if it is stored as an asset, but not if as an application file. Can someone provide a link to the doc? ...

Android : datePicker Dialog

hi, I am making application in which when i click on Textview the datepicker Dialog should open, and then it should allow me to set the date and whatever the date is set it should be displayed on the textview. I am able to do it properly... But what i want is that i want to Set my own Background to this, SO any idea on how we can cust...

Multiple image rotation in canvas

Hi All, I have a requirement for an app, in android, which requires 2 images to be populated one above another. This image has to be rotated, based on the Compass sensors. I am rotating the image,using matrix, and creating the new bitmap, and setting the bitmap on Imageview. I am repeating the same, for 2 images.But as a result, i am ...

How to pass parameter value to webservice in android

Hi friends I am using ksoap2 in android can anybody tell how to pass parameter value to webservice in android Thanks ...

Android content providers as SQLite virtual tables

Short of building a Linux machine and writing C code, is there a way to create a SQLite virtual table using a module which reflects one of android's content providers? It will be very handy to be able to JOIN such table as part of my database query. ...

Layout in Android?

I got an error error: Error parsing XML: unbound prefix when i did not add an attribute xmlns:android="http://schemas.android.com/apk/res/android" for my Layout. Why we want to set this attribute for a layout?Any Specific Reasons? what i put the url mentioned as a value for xmlns:android. I got the server not found Exception. Please Shar...

ListView using Layout Infleter in android

Hi, I am trying to make List View but i get following error can any one tell me the what wrong with my code. so please help me. 09-28 10:52:28.918: ERROR/AndroidRuntime(383): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 09-28 10:52:28.918: ERROR/AndroidRuntime(383):...

Android Limited Multi Select Preference, why no checkmark?

Hi, I'm trying to create a custom preference for an Android application that limits the number of items the user can select. Once the limit is reached the unselected items should be disabled and only the currently selected items are enabled.. If there are less items selected than the limit all items should be enabled. Here are the two ...

Google Maps Force closing

Hi, I have been trying to add a map to my application, I have followed instructions on the android developers HelloGoogleMaps tutorial but my map is just force closing when I run the maps option. I have obtained my api key logged permissions in manifest (Internet, Maps) and logged intent. When I look at the debugger the intent line al...

How to get Service Provider, not the Network Name

Hi, I have an Application (Operator Widget) which Displays the Name of the Network you are currently Connected to. The Problem is that some Providers either share their Network with others (eg. T-Mobile UK uses 3's Network in some areas) or don't have an own Network and use the one of another Provider (eg. "bob" uses the Network of "A...

Android-Voice recognition

Hi, I am new to android.I am working on voice recognition.I got a sample program main.xml android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Speak" android:...

Why cann't 'data' folder be displayed just like in DDMS file explorer?

Hi all! I list out files in '/' by: File directory = new File("/"); fill_listview(directory.listFiles()); And I get those in list: sqlite_stmt_journals config cache sdcard d etc system sys sbin proc init.rc init.goldfish.rc init default.prop data root dev I have two questions: 1.Why cann't I access '/data' folder just like Eclips...

Using generics in Android Java code

Hi folks, I'm a newbie in Java so I'm not sure if this is possible. Basically I need to de-serialise a file into an object of a given type. Basically the method will do this: FileInputStream fis = new FileInputStream(filename); ObjectInputStream in = new ObjectInputStream(fis); MyClass newObject = (MyClass)in.readObject(); ...

Is pressing Enter key on the keyboard not equivalent to a mouse click in Android?

Hi, The buttons in my layout are not getting pressed on Enter key. When I click on them using mouse, the code inside onClick() is getting executed. But when I press the Enter key, onClick() is not getting called. I know that for keys, I must be using onKeyListener instead. However, does onClick() not work for both mouse click and keybo...

not enough memory for layer bitmap size

Hi, I try to open dialog from worker thread. In class wich extends form Thread class I put this line: handler.sendEmptyMessage(2); In class that extends from Activity class I have this code: private final Handler handler = new Handler() { @Override public void handleMessage(Message msg) { if(msg.what == 1) openWinnerD...

Android contacts api

I used that example but it only display the name and number displayed are null I have no idea about it pls give me solution package org.example.cp; import java.util.ArrayList; import android.app.Activity; import android.content.ContentResolver; import android.database.Cursor; import android...

Android Chronometer doesn't start

I have a view and I want to add a chronometer onto it. Then, on draw I want to display the current time. Here is how I did: public class MyView extends View { private Chronometer chrono; private long elapsedTime=0; private String currentTime="00:00:00"; public MyView(Context context) { super(context); // TOD...

Spinning globe in Opengl-es

I found this code to generate a sphere in Opengl es. I am unable to understand the logic, could someone please give me some insights on this. private void generateData() { slicesBuffers = new FloatBuffer[slices]; normalsBuffers = new FloatBuffer[slices]; texCoordsBuffers = new FloatBuffer[slices]; ...

how to implement request time while calling service in android?

dear friends, i am using a web service to retrieve data inside a thread. so i start thread and call website in it. problem is i called service and INTERNET was present and then disconnected how can i stop that request and stop that thread in order to show message to user that there is not INTERNET coverage. here is code of mine please ...

How to texture an image onto a sphere without distortion

I have drawn a sphere and I am able to rotate it using java and opengl libraries for an android application. This part works perfectly. Now I am trying to texture a globe image onto the sphere. The image covers the entire sphere but then the continents are compressed and appear as a single line. What do I have to do to get the image prop...