If more than one application supports to open a specified file format. I need to make my application as a default application from my code.How it possible to make it default from the code?? Can anyone help me?
...
I have saved an object of an activity in a variable. Now i exit from this activity. Then i want that i can use the object of the activity to restart the same activity.
Is it possible to launch an intent of this object of the activity
...
Hi all,
In my app i have gradient as drawable which i am using as background and i wan't it to make it look as smooth as possible. After googling and trying by myself i came up with the following. On nexus one if you call only setDither(true) your gradient is still banding so you have to set PixelFormat like this Window.setFormat(PixelF...
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientat...
Does anyone know why the WebView onLongClick method doesnt fiew when the built in zoom controls are used, webView.setBuiltInZoomControls(true).
API level 7
...
Does onPostExecute execute if the AsyncTask has been cancelled?
If it does execute, is it safe to say that I should always ask if the task has been cancelled (isCancelled) at the start of onPostExecute, before doing anything else?
...
Hi all,
I have a LinearLayout that contains many views stacked vertically. However, at the bottom, I have an EditText.
Desired Result:-
When the keyboard popps up upon clicking the EditText, ONLY the EditText scrolls up while the rest of the screen remains static as it is. Is this possible? If yes how?
...
hi i have to repeat my image sequence i am using thread and AnimationDrawable.. but it is not working continuously . i don't want to stop this animation until next activity is not started through button click event .
`
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);{
`
final ImageView sp...
Hi all,
I've an MultiAutoCompleteTextView in my app with a dynamic list. That is to say when user write letters, I call host to do a list with the words that begins with the letters written.
The Completion work fine when there is an answer but when the host give me an empty list It doesn't.
When I have no answer I would like to write "...
I am adding gesture recognition to my app. I have added the view as described in the Android Developers Gestures article but when it comes to adding:
mLibrary = GestureLibraries.fromRawResource(this, R.raw.gestures);
if(!mLibrary.load()){
finish();
}
where do I put this in my code, do I have to create a new class for it, or can I h...
I want to flip image in android through translate animation.
eg:- suppose i have one card. when translate animation starts it shows the card into the new position. now here the card should flip? from backside to front.
how can i do that.?
...
Hello,
My application have three pages (three tabs) and I want to switch beetween two gridviews by moving finger horizontaly. The touch code works fine but I can't click anymore on the grid items! I use the method onItemClickListener (onClickListener don't works on Gridview) but the grid item is not clicked.
Thanks for your help!
The co...
Under what circumstances would using AIDL to define a service interface be the correct decision (rather than just creating an extension to the service class)?
...
I am using a progress bar in android, so that till my data is loaded, user is getting a proper feedback of what is going on.
the code for the bar is below:
final ProgressDialog myProgressDialog;
myProgressDialog = ProgressDialog.show(ListingPage.this,"Please Wait", "Loading Date", true);
new Thread() {
public void run() {
try{...
All of the android examples for XmlPullParser pull from a local resource file, and all of the SAX examples pull the XML from a URL. I've been told SAX is faster, so I'm trying to use that to pull data from a local resource file (res/xml/thefile.xml)
The example code I'm working off of is here. So in that example, the code I want to chan...
I want to create a "main" service/application which will provide
different functionalities to other applications.
According to android docs I can use elements from an application/
service in other. "A central feature of Android is that one
application can make use of elements of other applications (provided
those applications permit it)...
Hi all,
I'm using the following piece of codes to create a new contact. It follow closely the ContactManager example provided by Android.
The problem is, the created contacts do not appear in the Contacts app that shipped with Android. Nevertheless, when I load all the contacts from the phonebook, I can see the newly created contacts....
In the Google Maps app, there's a unique EditText that I'd like to reproduce. If you click "menu" then go to "directions", the "start point" field should begin with "My Location" as the text. The interesting part of this field is its behavior - you cannot edit "My Location" without completely deleting it first.
I have a few places whe...
Hi,
I was wondering in what order the following methods - onDraw(), onMeasure(), onSizeChanged() - are called automatically when we create a custom component.
Not sure if this question makes sense ... I've just been kinda confused as to what the methods are supposed to do exactly.
Thanks for the help in advance.
Cheers.
...
i need to write a variable height listview. also i need it for display purpose. column numbers are constant. also i need backgrouund of some cells in different color. so, how to achive this ? should i go listview way or do some custom drawing on a scrollview ?
some snippets would help me.
...