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...
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...
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...
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.
...
Is it possible to change the color or appearance of the scrollbar in a ScrollView or ListView?
...
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?
...
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!
...
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.
...
How can I detect programmatically if a phone has a camera ?
...
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 ?
...
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...
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...
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">
<item android:state_focused="true"
a...
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 the clipboard on HTC hero?
...
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()...
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...
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!
...
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?
...
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...