Questions for android


5475

Inserting Calendar items in Android ICS

For one of my application we have to insert an event into calendar.
4970

Android connecting server, how do I stop the socket after a certain amount of time?

I'm developing a personal android application used at home for my own functionality.
1191

OnTouch delay (Android)

I have an app where I need to have a delay after each touch in an ImageButton.
8782

Android: AsyncTask how to use wait/notify

Is it possible to call wait & notify inside an AsyncTask? So far, I tried to use them but all it does to block the AsyncTask forever. How can I overcome this? My usage is: I have a camera frame
4082

Create a custom View by inflating a layout?

I am trying to create a custom View that would replace a certain layout that I use at multiple places, but I am struggling to do so.
610

Import eclipse project with other package name ? - Eclipse / Android

I have project in eclipse (done app). Now I want copy this project, but with other package name.
4028

How to delete the contacts on android 2.2?

I need to delete the duplicate contacts and then inserting the new contact on Android 2.2.
5519

Using ConnectBot with Intents

Is there any way to access the ConnectBot functionality via intents? I want to start a ssh-session out of my application and authenticate via Private/Public Key, and close the session afterwards. I...
5558

Writing a large XML file with Out Of Memory Error Java

I am developing an app for android, I need to create a rather large XML file.
3524

Android: Storing Image into project directory (files)?

I want to store my Bitmap image into project directory. How can I have access to my project folder or what is the address of my project folder?
1021

Android Development: Improve EditText Scrolling?

Is there any way I can increase my EditText's scrolling?
6601

SimpleCursorAdapter within a ScrollView

I'm having abit of an issue and i'm not too sure how to go about solving it.
4041

GET MAX ID ROW OF A TABLE

My question is about how get the max id row of a table... I'm using max function but give me a error
5982

Can I press back button using selenium web driver of android emulator

Can I press back button of android emulator using selenium web driver?
7972

Android rss unable to parse XML with attribute

Document doc = getDomElement(response); // getting DOM element
5577

setListAdapter within MainActivity

Hi I'm trying to get my listview to work with json and in my MainActivity. I have an error on my onPostExecute(string result) method. It gives me the following error: "The method
7019

Make new activity take the place of the parent in the stack

I have read about activities, stacks and launch modes, but have a hard time understanding how to apply this info to my specific problem.
8387

Perform action on click of sliding drawer Handler

In my application I want to fill the sliding draw only when data is not null.
6092

Google Maps API Android - Error inflating class fragment

I know that there are many topics on StackOverFlow regarding this problem, however none of them could help me.
2220

How to optimize custom view?

So I defined an custom view based on LinearLayout:
8510

Android: calling a method from a Service to an Activity

I have a simple question to solve, but I am not sure how to do it.
875

Android Development: How do graphics work in Android?

I am an android development beginner with some experience in other object oriented languages like java, python, c#. So I have created various games before in Java, using buffers and graphics to draw
900

Format current date to show day of the week

I want to show the current date in my application like this:
7018

how to convert double to string in android

i want to convert string in my constructor into double, i can't change it in my constructor, because in one process, the variable must in double, and other class must be string, can you tell me the...
8087

How can I allow horizontal tab navigation (swipe views) with action bar navigation tabs?

How can I allow horizontal tab navigation (swipe views) if I'm using action bar navigation tabs?
8643

Android AsyncTask (returning an Integer from doInBackground)

I'm getting the following errors in the code below: The return type is incompatible with AsyncTask.onPostExecute(Integer). I'm trying to return the result from the http request done in the doInBack...
7650

Generic OR instead of AND <T extends Number | CharSequence>

Is it possible to generically parameterize a method accepting EITHER ClassA OR InterfaceB ?
2809

access files from assets/www directory

let's say I've got a file called foo.html sitting (quite comfortable) in my assets/www directory (next to my index.html).
1262

why this exception: java.lang.RuntimeException: Error inflating class

I am trying to develop a tiny android app that just opens a browser to a website. I am using mac OS 10.6 and the latest android/eclipse tools. But I keep getting this exception:
3414

Understanding measureWithLargestChild: Why breaks the layout?

I'm playing with the option measureWithLargestChild="true". I don't understand why my layout breaks total, if one of my buttons has a too big text onto it. I think it should keep the basic size of ...
4371

Loader not loading data when sqlite data changes

I have a DialogFragment that I'm working on to display two spinners, side by side, one displays a list of drivers, the other a list of vehicles.
749

Android newbie learning dialogs = CRASH

I'm trying to learn custom dialogs. I made one with a button in it and it comes up fine and I can hit breakpoints in the constructor and onCreate method, but when I click the button it crashes wi...
8513

Android & Robotium - Testing that a fragment shows up?

In my android application (Tablet) I want to verify that after selecting a button the fragment appears on the screen. Is there a way to do this?
4714

how to pass the value of a variable that is created in the class A in class B

I need to pass the value of a variable That Is created in a class A to a class B. I'm still a beginner and I can not figure out how to proceed. Could you give me a hand?
3541

Only getting DatePickerDialog's value when Done button is being pressed

By referring DateWidgets1.java in API demo, I tend to show date picker widget through the following way.
2835

Displaying a progress dialog until new activity loads

I have a progress dialog I am trying to show when a user clicks a button to launch a new activity. The spinner should be displayed on the current page until the other activity appears. ( The activi...
424

Android-null pointer exception after onResume in game loop

I am working on an android game.I was the facing the same issue as here
2117

Get information from HTML by identifying tags

All- I have never done this sort of thing before and am very confused. I have spent hours on Google looking for some example code or any hints but whenever I try to work with the available code I a...
5275

How do you layout a form that scrolls in Android SDK?

I need to have a user form that is larger than the screen. The layout consists of a fixed "title area", the form (in a scrollview possibly) and a button on the bottom. I have created three layout...
4044

Trigger.io: File Access - Getting total Counts of Images in my Gallery (iPhone/Android)

Is there any way to get the total counts of Pictures in my Gallery? We need to preview the total counts in my gallery. We can't find what API method to be used for it.
9527

NullpointerException when opening a tabhost activity

I am working on an application where i moving from list menu to tabhost activity ,that is
1379

Modify color Android selected Dropdown item

How can I modify the text color of the selected item on a Spinner in an Android Honeycomb application?
5240

What does Relative layout wrap_content do?

I have a simple layout as follows. Even though, I set all attributes as wrap_content, the resulting layout fills the entire screen height wise. The individual layouts in themselves are small. So th...
9728

How can i disable a scrollview?

I am using relativelayout and inside it a scrollview and inside it a linear layout and a textview which is ensuring scrolling of textview, but I do not want to scroll the text after the particular
9844

Way to know if my application is installed

Is there any way (intent) to know if my application is installed ?
7337

Android: Start Async Task in OnReceive Method

I currently have a Service which manages a Broadcast Receiver. This receiver can be turned off and on.
5357

Cancel textchange listener event

I have a edittext with a textchange listener. In the listener I test if the input of the user is where I want to test if the input is within the min-max boundaries.
5659

Need to store LOTS of data on Android device, thinking of going OODB

I'm currently working on a project that's based on Android. Without getting into many details, the software will run on a custom built device. The hardware will never change and will always be the ...