android

getDeviceId() is returning a hexadecimal... why?

I've built an app for the UK only which uses the device ID to uniquely identify the device. The app is only being added to specific handsets (not via the market) so the control of who has the app is quite high. We're now getting the data back from the devices, and finding that some of the device IDs are hexadecimal and not purely digit...

how to get the mvc right on android?

hi there! i'm kinda new to programs which feature an mvc architecture and i want to get the right idea right up front... i have this (android) application, where a thread (separate from the UI thread) computes some data. when finished, the results are written to a member of an object. now: how do i get the UI thread to "realize" that t...

what does "ContactsContract.CommonDataKinds.Nickname.CONTENT_ITEM_TYPE " mean for nick name?

Hi, Can any one tell me in detail : what is mean by "ContactsContract.CommonDataKinds.Nickname.CONTENT_ITEM_TYPE ". In Android documentation it was given as "MIME type used when storing this in data table." Does MIMETYPE in thi context mean "string " value ? ...

draw an programatically imageview using gesture on bottom part of the frameLayout in android

Here is my code :- here the problem is that when i used stroke at bottom it draw the imageview at top of the framelayout. private ImageView mRecBottom; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGD = new GestureDetector(new ICGestureDetector()); mGTL = new View.O...

Increase Hit detection on ItemizedOverlay

Hello, I have an itemizedOverlay extended and I want to increase the hit detection on the OverLayItem's if this is possible? ...

Retrieve Youtube most viewed, most rated video details using - Google API Client Library for Java

Hello experts, I have been searching for getting some solution using which I can easily get precise information regarding - 1) Youtube Most Viewed Videos 2) Youtube Most Rated Videos 3) Youtube Search I know that this can be done with ease using gdata-java-client. But, my requirement is that, I need to get the aforesaid three details...

How to Block the Dial, Home, Back and End Call button on Android

I would like to know how could i block the dial, home , back and the end call button on an android device. I know this is possible because there is an application : TheftAware which does block all the buttons so they have no effect at all. And I also would like to know how to make a dialog window or any kind of window which would stay ...

android non activity

how to create a class which not extended Activity & how can i use it class? ...

What is a widget in Android?

What is a widget in android? Can I develop a widget for my app? ...

Anroid restricted API's by carrier?

New to Android before I port my application to this platform I wanted to know the lay of the land as far as restricted API's by each carrier. With J2ME (Nextel aside) there was very little you could do (except pony up some serious cash) to get the carrier to allow you to access restricted API's. With Blackberry things got much better, ...

Making 2.2 Android Application compatible for 1.5+

Howdy, I wrote an application using the Android 2.2 SDK (API level 8). It is running well in the emulator, but now I want it to be compatible to Android 1.5+ (API level 3)or Android 1.6+ (API level 4). The problem is that it crashes in the emulator when I try to run it on these versions. What is a good approach to make it compatible to...

how can we use startActivityforResult() for Email intent?

Hi Friends, I am using intent for send email with attachment,it is work fine,i want to get this email intent result,i already used startActivityforResult(),but i can't get result for email intent,how can we use startActivityforResult() for Email intent? Thanks All ...

Request a DateTime from GPS Module

I am currently developing an android app that requires GPS module. I have code like this: LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); LocationListener mlocListener = new MyLocationListener(); mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener); public c...

Android picks wrong resource folder

I seem to have some problems with my resource folder - Android chooses the wrong resource folder. When in design mode, in the layout editor, I have the option to choose between different devices, to look at my design in different screen resolutions. I have specified three different devices, one for each resolution. The mdpi and hdpi sho...

How to display recent call list when we click on home screen?

Hi all, I am new to android. I am developing an application in which I want to show recent call list (missed, incoming and outgoing) when user touch on home screen. I can get recent call list by below code: String[] strFields = { android.provider.CallLog.Calls.NUMBER, android.provider.CallLog.Calls.TYPE, androi...

Removing the Window titlebar after adding content [Android]

Hello :) The question is quite simple "How do I remove the titlebar from a WebView, after adding content ? Normally you use requestWindowFeature(Window.FEATURE_NO_TITLE); But you can only use that method before adding content :( So any ideas ? :) Thanks ...

Android - date format conversion

Hello, I am having a date/time value as 2010-07-26T11:37:52Z , now i wants date in 26-jul-2010 (dd-mon-yyyy) format, how do i do it? ...

monitor outgoing sms

hi Can anyone tell me is there a way to monitor outgoing sms... i want to create an app which will monitor outgoing sms and block texting in a particular region or when user is driving... can anyone tell me how it is possible? ...

How to check that activity displays dialog during android unit testing

I want to write testcases for my android application using JUnit. And I faced some problems. Is it possible to check that activity displays some dialog at current moment? Here is a small piece of my test application: ... Instrumentation instr = getInstrumentation(); monitor = instr.addMonitor(MainActivity.class.getName(), n...

To increase a button's size when it is pressed in Android

Hi, How can I make my button's size to increase slightly when it is pressed and decrease again when it is released? This is for highlighting the pressed button, by using size in addition to a different color. Regards, Kiki ...