android

How to start Android Kernel programming?

Hi All, I am 6 months experience in Android, use to develop simple UI based application. Now i want to write application targeting the Android core Kernel.For example i want to develop a Framework which is not present in Android.To achieve that we have to write the code for the Kernel. I dont know where and how to start the Android Kern...

Android sqlight problem always null

every time i am using the db its null and i just dont get it i use this code for the SQL when I have quarry : public class GameSQLHelper { static final String[] COUNTRIES = new String[] { "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra" }; private static final String DB_PATH = "/countryCityG...

Android: How to get text of dynamically created radio button selected by the user?

How can i retrieve the text of a dynamically created radio button selected by the user? Here's my code: RadioGroup radiogroup = (RadioGroup) findViewById(R.id.rdbGp1); // layout params to use when adding each radio button LinearLayout.LayoutParams layoutParams = new RadioGroup.LayoutParams( RadioGro...

Android Eclipse plugin missing options menu to edit XML's

I have looked everywhere for the answer to this question, but cannot find anything on it. Is there anyone that can help me with this predicament? Thank you. P.S. - I apologize if this question does not belong here, if it does not I will remove it. ...

Change scrollbar color in Android

Is it possible to change the color or appearance of the scrollbar in a ScrollView or ListView? ...

Which technology should I use to implement a Java-written WebService, to consume with the apache HttpClient in android?

I would like to create a Java-written RESTFul Web Service, possibly using an eclipse plugin. This service should be consumed by an android application, using the apache HttpClient. But my question is, which is the best/ideal technology (server side) to implement this kind of web service? ...

Android -- Transferring Application to a Device

I have just finished my android application and now it's time to test it under real-life conditions. The only problem is I'm clueless as to how to take the application and transfer it over to a device. I have already signed the application. What's next? Thanks in advance for your help! ...

Sqlite in Android one table or many tables

I am creating a application that requires to store multiple attributes, and it will look up DB while running (this means multiple DB lookups). This App. should have low overhead hence, I need your suggestion whether to create multiple columns in single table or multiple tables with minimum columns. ...

android camera detection

How can I detect programmatically if a phone has a camera ? ...

I have a ListView using a custom ArrayList adapter - what's the best way to implement filtering ? Anyone have a example code to study ?

Subject says it all. I have seen examples implementing a custom Filter. The Android developer docs talk about implementing a Filterable interface. Does anyone have any advice and/or sample code on the best way to implement filtering in a ListView ? ...

IllegalStateException on closed Cursor

My question appears to be linked to the following question: http://stackoverflow.com/questions/2398209/how-to-handle-in-code-illegalstateexception-on-cursor The code for the offending method is as follows: public boolean isPermanent(String screen_name) { boolean output = false; try { Cursor c = mDb.query(USERS, new...

Recurring events show up in UTC time in Outlook

Here is the generated iCal. BEGIN:VCALENDAR VERSION:2.0 PRODID:Test//Outlook//EN METHOD:REQUEST BEGIN:VTIMEZONE TZID:GMT-6 standard time BEGIN:STANDARD DTSTART:16010101T020000 TZOFFSETFROM:-0500 TZOFFSETTO:-0600 RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU END:STANDARD BEGIN:DAYLIGHT DTSTART:16010101T020000 TZOFFSETFROM:-0600 TZOFFSETTO:-050...

android Custom Listview Background Focus State not working

I am trying to create custom background selector for my ExpandableListView. It works fine for all states other than focused. I am unable to identify which row is currently focused. Here is the code: im_selector.xml <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:state_focused="true" a...

How to correctly overwrite methods of SpinnerAdapter

Im using a SpinnerAdapter to display a Spinner. For that i defined a class which extends SpinnerAdapter. Unfortunately I don't know how to override some methods of SpinnerAdapter: @Override public View getDropDownView(int position, View arg1, ViewGroup arg2) { } @Override public int getItemViewType(int arg0) { } @Override public bo...

how do i access clipboard

How do I access the clipboard on HTC hero? ...

How to call a method after a delay

I want to be able to call the following method after a specified delay. In objective c there was something like: [self.performSelectorAfterDelay @selector(DoSomething) withObject:nil afterDelay:5]; Is there an equivalent of this method in java? For example I need to be able to call a method after 5 seconds. public void DoSomething()...

android dialog don't take parent size

Hello i create a dialog to zoom on an image, But my content is 240px and i would like to grow it to phone width, to "fill_parent", Could you tell me what's wrong here ? my picture stay small 240px, not 480px. Thanks final Dialog dialog = new Dialog(myview); dialog.setContentView(R.layout.zoom); dialog.setTitle(""+passInfoNom+" "); imgVi...

How can I tell a (Android) WebView to start off at a custom scale?

I'm trying to tell a WebView to scale the page down to a certain percent. I've tried using setInitialScale() as that seems to be exactly what I want, but it seemed to have no effect. Am I just missing something obvious? Thanks in advance! ...

Android ==> Mmory Management Questions ???

My question are commented in the code ImageView img = new ImageView(); this.layout.addView(img); MyObject o = new Object(img); // Do i need to set img to null? ArrayList <MyObject> myArray = new ArrayList <MyObject>(); MyObject obj = new MyObject(); myArray.add(obj); // Do i need to set obj to null? ...

java.lang.NoClassDefFoundError: javax.microedition.io.Connector

I am trying to consume a .net web service, and get the following error when I run it(debug) from my phone java.lang.NoClassDefFoundError: javax.microedition.io.Connector I get the error when I make the call to the transport object ht.call(SOAP_ACTION, soapEnvelope); while in the eclipse ide, the (context sensitive model) does not sh...