android

resolve mail-address to contact's name

Hello, Assuming I have a contact saved in my addressbook, called "TomTasche" with the mail-address "[email protected]". How can I retrieve the contact's name, if I only know the mail-address? I already asked a similar questions about retrieving contact's nickname here, but if I change that code to query the mail, like that: Curs...

Cannot resolve android.media.MediaFile

I have android sdk 2.1 and it cannot resolve android.media.MediaFile package. Why is it so? How can I solve this problem? To which version does android.media.MediaFile belong? Has it been deprecated? ...

Android: The progress bar in the window's title does not display

Hello, I have a web view to override the built-in browser and I want to show a progress indicator on the title bar. This is the code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.browser); ...

Parsing ksoap2 response

Hello everybody. I use a ksoap2 lib for communicating from android client with SOAP web service. Great job was done by ksoap team, but the problem is, there is no any good example how to use it correct in different aspects. For instance I get in soap response following data: anyType{ StatusSetting=anyType{Id=1; Name=Til afskrivning;...

Where did my Android developer account go?

For 8 days Ive been trying to get an answer to this question through the recommended Google support methods. As yet, Ive received no replies. As a 12 year evangelist of Google and an Android developer with no less than 3 games in the top games in Android Market, I think I deserve an answer. I apologize for posting this here but a dece...

How to update digests in Android MANIFEST.MF ?

We need to enable our customers to update some components in Android application, like icon/logo, dictionary file etc. I saw the .APK can be opened like a JAR with 7-zip, and hope files can be edited/replaced there. But it is need to update MANIFEST.MF file in it, containing a digest for each .APK component' like: Manifest-Version: 1....

How to attach an xml layout resource file with spinner adaptor in creation

Here is my code enter code here ArrayAdapter<String> aa=new ArrayAdapter<String>(this,R.layout.spinnerLayout android.R.layout.simple_list_item_1,choicesString); aa.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item); newQuestionSpinner.setAdapter(aa); The R.layout.spinne...

which android version supports android.media.MediaFile?

Does android 1.5 or 1.6 support android.media.MediaFile ? ...

How to display the phones SQLite database via SDK?

I'm currently doing some debugging and I was wondering is it possible to display the contents of the phones SQLite database via the SDK? I know it's possible to do this via queries phone side. But I was just curious could you do it via the SDK? ...

how to add xxx.db file into my project in android

i have xxx.db (SQLite file) where i want to add him to my android app in my android app under src i open new directory where i add "test.db" then in my app what should i write in order to get the db ? String myPath = "com.countryCityGame/databases/test.db"; SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); i am...

CheckBox Style in Android?

Hi Folks, I want to do make my check box small than the actual size. How to do it? Any Idea? for Example we can set the button as small size using the attribute style="?android:attr/buttonStyleSmall" ThanX ...

How to work with UDP in Android?

I a very new to Android. I need to make a connection with an UDP server by using my Android UDP client. Now I need to know how to work with UDP in Android? Please guide me to do this. ...

Android: Placing a view in an arbitrary location

Hi. I have been trying to place a view in an arbitrary location. My aim: To overlay some rectangle of a JPG/PNG, given coordinates that relate to the JPG/PNG, with some other view, say, Gallery, or some video. I don't want to use AbsoluteLayout, as it is depricated. Therefore, I am using RelativeLayout, defining a dummy textbox as a p...

android get version of system

Hi everybody! Does anyone know how can I check system version (1.0 .. 2.2) in run-time? Thanks ...

Android ListView Footer View not being placed on the bottom of the screen

I'm sure that I'm missing something simple to get this implemented, but have run through every known combination I can come up with to get what I'm looking to do working. I'm trying to have a ListView footer sit at the bottom of the screen when the ListView items do not fill the page. For example, I have a page with a ListView of three ...

repeat tickerText on the notification

Hi, Iam running a service, this service downloading a file, and when it finish it notify the user via the notification bar. so when there is a notification the user can see the tickerText, and then it disspear. is there anyway of repeating this tickerText every X time on the notification line, until the user pulling the notification b...

PhoneGap Android

hi, I am new to phonegap and android , i wanted to know how to access/make database through javascript. and the second thing i want to ask is how to make Graphs just using html, css and javascript. Every information is thankfully accepted. ...

UI design guidelines for Android Tablets

Are there any UI design guidelines for the upcoming Android tablets? Looks like the Archos 7 will be available sometime this month. My question is not about supporting the screen size but more about providing a more appealing UI interface for a bigger screen device. Thanks ...

Error creating MediaPlayer with Uri or file in assets

I copied song.mp3 to my project's assets directory and wrote this code: private MediaPlayer mp; Uri uri = Uri.parse("file:///android_asset/song.mp3"); mp=MediaPlayer.create(this, uri); After running the create statement, the variable mp is null. What is wrong? Thanks. ...

Blank or white space at bottom of web page in Android browser

I am making a web page to be viewed in all platforms including the Android web browser. However, I have a problem. I have a Droid Incredible, and when I view the webpage on my phone's browser, there is a little over 1 screen high of blank space added to the bottom of the page. I've made the page as absolutely standard as possible (XHTML...