android

Integrate Admob to Android Problem

I am trying to integrate Admob to android, i end up with no success. The Document says Need to Provide DeviceID to get Ads for Real Devices.Could you please Help me about this. But I m getting ads in the Emulator by setting AdManager.TestEmulator. ...

Android Video Streaming Problem

Hi all, I am new to android and trying to streaming video from my server. When i run the application it gives Error "sorry,this video is not valid for streaming to this Device.." than i download and push to sdcard of my device(samsung Galaxy 5)this time video is playing.... i convert this video by SOTHINK VIDEO CONVERTER.. Any Help?? Th...

How many database columns associated with a SMS in android?

I want to read all the messages and their respective details from my phone. For this I am using the Uri like this: Uri sms = Uri.parse("content://sms/"); But I don't know how many columns in database which are associated with this uri. I want to display the following information: Message Type Sender Number Message Body Timestamp ...

display video in thumbnails image

i want to display the video in thumbnail image but i try error will come for my coding please help me... what mistake i made for my code package media.media; import android.app.Activity; import android.view.Window; import android.view.WindowManager; import android.os.Bundle; import android.widget.MediaController; import android.widge...

Android AlertDialog Builder Issue with image

I am trying to make a application where a dialog will come from where user will be able to choose an option... I want the alert dialog like this,,, An image with the corresponding text Here is the sample image I am looking .. http://garr.me/wp-content/uploads/2009/12/sharevia.jpg I also want to change the "share picture via" text. Tha...

how to use geocoder in android 2.2 emulator or android 2.1 device

Hi, I need to use geocoder to get lang and lat from address for google map.am working in android sdk 2.2 .wen using geocoder is not working it throw exception. How to use geocoder in my application.or any other methods available to get long and lat? I have android 2.1 device .is there any possible to gecoder work in android 2.1 actual ...

Do common AVD configurations already exist somewhere that can be downloaded/viewed?

I'm guessing everybody who does Android programming has on their own created multiple AVDs for various devices for testing purposes. I didn't really want to add to the "reinvent the wheel" club, and was hoping someone could point me to an article that lists out various AVD configurations, or a site/link to download already created AVDs ...

Custom Multi Language support

Hi All I am aware of Creating a new values directory for the language with the suffix of the language code. For german: values-de or french: values-fr then copy our string.xml into that and translate each entry. And this works based on the Phone Localization settings I wanted to know if we can bypass the phone setting and and make the ...

Storing database on sdcard in android

Hi all, I created the database on internal memory ,instead i want to create database i sdcard how to do this....... ...

Android chronometer ticks once and stops

I need to hide a TextView after 10 seconds. I thought I could implement a Chronometer and when elapsed time is bigger than 10000 millis I hide the TextView. My problem is that the chronometer only ticks once and then stops. Any idea what I've missed ? Activity ctx = this; ... private void ShowText(String message) { txtProce...

using WebView to view map and set marker (pin) on android

Hello everyone. I'm making an app on android, using webview to load google map (using this url for my webview: http://gmaps-samples.googlecode.com/svn/trunk/articles-android-webmap/simple-android-map.html). but i can't put a marker on that webview, can't somebody tell me how? thanks very much (and sorry because my terrible English :)) ...

Is Android "open" enough to let you disable built-in features such as Phone book etc?

Hi, Is it possible in Android, to disable standard features of the phone such as Mail, browser, phone etc? What I'm asking is, is it possible to create an application that, when launched on startup provides some features to the user, but sits "on top" of android so they only have access to your application and not the underlying featur...

android httpurlconnection shows null pointer exception

Hi, in my android application i have to download xml files from the server. i used the code that shown below. sometimes it shows null pointer exception for getResponseCode() method. the httpConn is not null. public static byte[] getGprsConnData(String urlStr){ URL url = new URL(urlStr); U...

one android app XML resources for different versions of build

Hi, I need one information regarding , one android app XML resources for different versions of build. That means, i have a string XML files related to one android app. i have to use same string resource file for two different builds(in second build i need to change some strings of xml file instead of create new string.xml. this is like ...

killing activity on Android doesn't clear memory??

I have a game running on android. basically, it's structure is like lunarlander I started my activity , using the layout to start the class running. <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> ...

Saving state between activities

Hi, I have 2 activities named firstActivity.java,secondActivity.java. When I click a button in firstActivity, I am calling secondActivity .But when I return back from secondActivity ,based on the result I need to skip some steps in firstactivity which are performed in its onCreate() method. While coming back from secondActivity I used B...

Dealing with Large Bitmaps (tiling a small bitmap to create wallpaper)...

I'm having memory problems and think it might have to do with creating large bitmaps. The task at hand is to get a fairly small tile image and create a larger tiled image and set this as the phone wallpaper. The way I'm doing this is: 1) Create a view that is 2 * screen width, 1 * screen height 2) Set the view background to a ...

How to put existing database in the .apk file?

I have prebuild database of mostly string objects. I want to know how to put in my apk file so the database will be already created when the user installs the database. ...

How to store data that remains after uninstall

I want to store some data that should remain also after application uninstall and to be accessible by a new version of this application. Share preferences/files are not a solution as they are removed when program is uninstalled, also writing to internal memory is not a solution (also removed with uninstall). Writing to external public fo...

Problem when using more elements in the ListView

I have a ListView and a button in my view. Button is placed just below the listview. My listview contains 10 items. When I am running the application. I can't see the button inside the view. Because of 10 items i have to scroll the listview to see all items. If i use 4 items, I can see the button. Why it is happened? Please help me. Tha...