android

SchemaFactory doesn't support W3C XML Schema in platform level 8?

With the Android SDK, the following code in a plain empty Activity fails: @Override protected void onStart() { super.onStart(); SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); } The 2.2 emulator logcat shows this exception: 06-28 05:38:06.107: WARN/dalvikvm(495): threadid=1: threa...

Regarding Android Permissions and Signature Protection level ...

Hi, I am new to Android and have a question regarding protection level "Signature" for permissions in AndroidManifest.xml. The Android reference document states about "Signature" protection level: "A permission that the system grants only if the requesting application is signed with the same certificate as the application that declar...

Build android system from source

I've recently purchased Samsung Galaxy Android phone after using Openmoko phone for 2 years. One of the reasons for choosing Android was is that it's open sourced. I don't want to depend on phone maker to provide updates for my phone. I'd like to do it myself. Right now I'm in research stage if it's worth the time or not. So here are th...

OutOfMemory Exception while using FileBody for sending images to the server in Android?

Hi, I am using FileBody for sending images to the server from Android. But when sending bigger images the application crashes with OutOfMemory exception. Is there some way of overcoming this? Or has anyone faced the same problem with FileBody. Please help me out in this regard. Regards Sunil ...

android: how to merge an array of bitmap together in one bitmap ?

hi there, i'm trying to make a map loader for tiled, on android.. so far i could parse the tmx file, grab all the tile data, and put them in a 2dimensional array, like this: Bitmap tiles[x][y] ... it works and i can render tiled maps on android now, but only by interating through that tiles[][] array, like shown below.. how can i merg...

Search Wildcard('<', '>'), count it and get the position in java

Hi, I want to search Wildcard('<', '>') in a string, count them and get their positions in java. My string is like below Peter <5554>, John <5556>, which function should I use? Thank you. ...

How can I change it to my own database and show my data in ListView.

I can show the list of images out but the the data. I took it from an example online. This is my DBAdapter.java public class DBAdapter { //values for the login table public static final String KEY_ROWID = "_id"; public static final String KEY_USER = "user"; public static final String KEY_PASSWORD = "pass"; public sta...

Android: how to use data passed from parent activity in a sub activity ?

Hi all When we want to pass data from an activity to a sub activity we use the intent.pushextra() method and pass the request code and any additional data. now in the subactivity how can I get the additional data or the request code. is there any event handler that handles this ? thanks ...

Memory leak in WebView

I have an activity using an xml layout where a WebView is embedded. I am not using the WebView in my activity code at all, all it does is sitting there in my xml layout and being visible. Now, when I finish the activity, I find that my activity is not being cleared from memory. (I check via hprof dump). The activity is entirely cleared ...

Android webview parse error

Hi all, I have created a web view which shows https url , i have created webview client which handles the onReceivedSslError. webview client final WebViewClient mWebviewclient = new WebViewClient(){ public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error){ handler.proceed(); } }; Im getting...

Receive udp data from the system udp server on android?

hi I am new to android.I need to know how to receive the udp data in android emulator.Data's are coming from the PC (UDP SERVER is running on the pc).I am using Eclipse IDE.Can anyone guide me to solve this ? ...

Receiving data which is passed using intents

I want to receive a data which is passed using intent from another page.Can you help me? ...

How do I change the textColorPrimary in a theme?

I'm changing the theme of an activity in onCreate using setTheme (I'm doing that even before calling super.onCreate(), as this is supposed to be more reliable). It does work in the sense that it changes the background and foreground colors. However, my layout has a few elements that use styles like textAppearanceLarge. Now Android's tex...

How to catch selected value from Android Menu Radio Values

I've created a radio button menu list .. final CharSequence[] items = { "3 sec", "5 sec", "7 sec" }; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Change Wallpaper Every.."); builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() { publ...

Using external JAR in multiple android application APKs

If there are two android applications App1.apk and App2.apk and both requires external jar MyLib.jar( created by using export option in Eclipse ), Is it possible to keep external jar at some path on the phone and used by two applications ( using uses-library option in manifest )? If MyLib.jar is added to "java build path" of project pro...

Unable to open external port No such device error

Hi, I am a beginner level developer in android. I got an error in device not in emulator. I have used sony ericsson xepria x10i. my application works well but it takes more time to display the first activity. E/dun_service(15640): Unable to open external port /dev/ttyHSUSB0 : No such device W/ActivityManager( 958): Launch timeout has...

Listview item under edittext

Hi, The last item of Listview is always under editText. How to fix it appearing above editText? my xml is below - <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"&gt; <ListView andro...

UIBarButtonSystemItem equivalent in Android?

Coming from an iPhone world, Is there an equivalent of system icons, for example, the add or search icons in the options menu of Contacts. This would save developers time (and in some cases, money) if they could use the system icons used by Android. If this is not possible, is a site available where developers can download icons for and...

Android ACTION_SEND Intent not populating the To field

Im trying to send an email in Android on 2.1 and I have two problems. 1) firstly, to To field does not populate 2) the type message/rfc822 creates an error: "no applications can perform this action" Intent msg = new Intent(Intent.ACTION_SEND); //Two types, rfc822 doesnt seem to work in the emulator msg.setType("text/plain...

How to exclude some parts of my UI from an Application wide theme?

I have a theme in my app that defines a custom color for the background. This is the green you see above the tabwidget. In some of my Activities I'm using a Tabhost for my Layout. Now I get something like this as a result: My tabwidget has a black background and I'm happy with that, but the icons in the tabwidget are transparent a...