android

Android: change default Home Application

Hi All, for some specific requirement I am required to change Android Default Home application with my customized Home application ( a setting inside my app that will toggle default home = my application or previous home) I don't want the user to travel android settings that are very complicated. Can any one help me out like where it ...

How do i increase the view size of my list view?

here is the xml code i used but no use even if try increasing the minheight.... please help <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <!-- Here you put the rest of your curr...

Changing default port (i.e. 5037) on which adb server runs

I googled for 5 mins. I also searched for '5037' in all files in android sdk directory. I am a budding android developer and if there is no easy way of configuring adb to run on another port then I am ***king quitting android app development. ...

Wifi access point on HTC desire

How do i configure HTC desire as a wifi access point? Thanks Dheepak ...

Calendar.apk running problem?

Hello everyone, I have an apk of Calendar application. I have installed the apk on android 2.1 API level 7 emulator successfully. But the problem is I can not run the application. When I click on the app icon it shows the following message. Sorry! The appliaction Calendar(process com.android.calendar) has stopped unexpectedly. Please try...

How can I store a Timer object so that it can later be retrieved?

I'm creating a note application that notifies you at a certain time & date and I'm using a Timer object to schedule that notification. Basically, the user will input the note, time and date to be notified, and then will hit a submit button. Once that button is hit, a TimerTask is scheduled using the Timer class and this note will reflect...

create temp file in android

In my android application i am trying to create a music file using create temp and trying to read that.Now i am able to create but its giving an error saying video cannot be played. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); //Fi...

Android XML Layout

How do i define a following layout in my xml file: I hope you got it from image that i want to display TextView1 on 1st Row, and in 2nd Row, TextView2 on Left and TextView3 on Right side. How do i define this layout? i know the layout_gravity attribute but not getting success, so pls share your code ...

Android emulator does not display phone numbers

When I use the following code in Android 1.6 it displays both phone numbers and contacts but when I use Android 2.2 it does not display phone numbers, it only displays names. String columns[] = new String[] { People.NAME, People.NUMBER, People._ID }; int tocols[] = new int[] {android.R.id.text1, android.R.id.text2}; Cursor c = managedQu...

Working with Titanium Appcelerator

Hi all, I am using Titanium appcelerator for developing my android application, more over i am newbie to handle both of this together, even though i have made some digging to find some resources to start up with this, i am finding some difficulties in my first try.if anybody have resources that helps me move on further, please let me k...

Updating wallpaper service variables, from Settings Activity.

Hi All, In my live wallpaper app, I am facing this issue. I want to update my LiveWallpaper service with values that User types in the wallpaper settings activity. (e.g String) What I have done til now : Converted the wallpaper service to implment SharedPreferences.OnSharedPreferenceChangeListener interface, to listen if any changes d...

Android Layout: Can't place the elements where I want

Hi all I was wandering if there was a easy way to do the following without android layout place an image central top place a button center center place a button left bottom place a button right bottom it doesn't sound that difficult no ? well I can't figure out a way to place the elements as I want using stupid xml layout can somebo...

WebService authentication problem, in Android

Hi, I have an web service on developed .net The Url is : www.yemeksepeti.com/YemeksepetiCatalogWebService/CatalogExportMobile.asmx I want to use the service methods is : Mobile_GetCities SOAP 1.1 The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values. P...

Vibrate settings in froyo

I read that in froyo if you change vibrate settings with setVibrateSettings() it doesn´t sync with SO vibrate settings. Then I found this workaround that people use with some of the functions in this link: http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/SoundSettings.java;h=a735268b...

Library Projects support ?

Hi, I have been trying to work with a Library Project, just like it's mentioned in the documentation : http://developer.android.com/guide/developing/eclipse-adt.html I have created my Library Project as a Android 1.6 Project and now I have been trying to reference to it out of my second project (also an Android 1.6 project) and I am get...

Lazy List with Images. How to cancel thread ?

I have found this example http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview/3068012#3068012 from Fedor which is absolutely great for what I need. I have a question. if beside the Clear Cache button there would be a button with Cancel. How could I in onClick cancel the image download thread...

Check if AsyncTask is taking too long

Hello! I have an AsyncTask that get info from the web. Sometimes the connection fails and the AsyncTask processdialog is running forever. In the doInBackground I have a check in the end if my catched info are empty and if this is the case, it should appear Positive button/Negative button, but this is not happening. The dialog is just r...

Single star RatingBar

I'm trying to display a RatingBar View that is only capable of showing a one star rating, or no stars. This seems so trivial... My ratingbar is defined like so: My view implements OnRatingBarChangeListener and OnTouchListener My OnRatingBarChange handler has no code. My OnTouch handler looks like so: @Override public boolean onTouc...

How to obtain subviews from listview in android ?

Hello everyone, My program will show data based on selection from two spinners (month and year). Based on month and year, it will query DB and displays the content in listview. I created two spinners and populate with array string. Then I created two spinner views, two arrayadapters and set onItemSelected listeners and set adapter to t...

Sending jdwp tracking request failed!

I got this message in the DDMS: Sending jdwp tracking request failed! I didn't understand the reasons. Is there a problem using a stream to get the image from the Internet and use the TabBar cause the use of them in different application didn't launch this errors? ...