When my server gaves apk file to user, I need to put some values In this file, for j2me platform I use JAD file, and put my values there:
MY_KEY: SomeKeyValue
MY_KEY2: SomeKeyValue2
When j2me application starts on device, I can access this values through System.getProperty.
How can I do the same on android platform?
...
Here is how I setup my checked text view. How come no check box appeared?
I also added this but it had not effect:
listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
> <CheckedTextView
> android:id="@+id/ctv_checktext"
> android:layout_width="fill_parent"
> android:paddingLeft="2px"
> android:paddingRight="2px"
> android:padd...
A checkedTextView shows a text box and a checkbox.
Is it possible for code to determine if only the checkbox part was clicked?
If so, the code could respond differently the user clicking the checkbox or the text view.
...
I'm pretty sure it's not viable to do what I'd like to based on some initial research, but I figured it couldn't hurt to ask the community of experts here in case someone knows a way.
I'd like to create a custom field for contacts that the user is able to edit from the main Contacts app; however, the user should only be allowed to selec...
i am using following
example of date picker
http://developer.android.com/guide/tutorials/views/hello-datepicker.html
now i want to perform some functionality on clicking date picker cancel button but dont see cancel event inside datepickerdialog
can any one guide me how to achieve this.
any help would be appreciated.
...
I have a Imageview in main.xml, how to set the bitmap the to the imageView in main.xml
i can assign bitmap to the local image view in the below code.
//Activates the Camera
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(intent, 1);
// get the bitmap data from the Camera
Bundle...
I'm trying to implement a menu in the footer of an app, similar to i.e. the Engadget app. As I understand, getting a standard TabLayout to work in this way is not trivial (if at all possible?).
As I see quite a few apps using this interface paradigm, I would assume there is a clever way of doing it. Currently, I'm defining the layout b...
hi, I have specified textSize="3mm" but when I run the code on the droid the text is much smaller. I looks like the size has been specified in px. I am using minSdk=4 and anydensity = "true". So it seems like if I ask for 3mm I should get 3mm, right?
Thanks in advance.
...
Can someone explain a couple of very simple concepts to me - I'm interested in mobile devices running android and how they are identified over networks. Some scenarios:
Device is connected over WiFi - presumably the device has a standard IP address as with any host and can communicate with any other android host over TCP/IP (assuming i...
How to clear the cached image from memory programatically in android? i am iconic list view when i scroll its reloads the image.So its produce the OutofMemoryError. i want clear the cache while gets this exception. how to do that? any help?
EDIT:
i am just using this code on my program to loadimage:
http://ballardhack.wordpress.com/201...
I am currently learning about widgets in Android.
I want to create a WIFI widget that will display the SSID, the RSSI (Signal) level.
But I also want to be able to send it data from a service I am running that calculates the Quality of Sound over wifi.
Here is what I have after some reading and a quick tutorial:
public class WlanWi...
I have one Application class to keep the global state of my application. But I'm unable to register it in Manifest file? Any idea how to do this?
...
Hi, I am switching activities on tab clicks and successful at this. But, in one of my Activity class I am doing the following:
`
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
main.xml has the following:
android:layout_width="fill_parent"
android:layout_height=...
I would like to know, what limitations there are for how far one can go in terms of replacing UI components of current touch screen smart phones, in particular iPhone, Blackberry and android based phones.
What I would like to do is create a custom UI for dialing out and incoming calls.
I have some experience with Blackberry developmen...
Hello,
I'm trying to figure out if it is possible to launch an intent within an ExpandableListView. Basically one of the "Groups" is Phone Number and its child is the number. I want the user to be able to click it and have it automatically call that number. Is this possible? How?
Here is my code to populate the ExpandableListView u...
Other than the brief article at android site:-
http://developer.android.com/resources/articles/contacts.html
I haven't seen any docs on using the new ContactsContract API. Can someone please direct me to an example/explanation of using it?
...
Hello,
I'm developing a GPS tracking software on android. I need IPC to control the service from different activities. So I decide to develop a remote service with AIDL. This wasn't a big problem but now it's always running into the methods of the interface and not into those of my service class. Maybe someone could help me?
Here my AI...
Hi, I am switching activities on tab clicks and successful at this. But, in one of my Activity class I am doing the following:
public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.main);}
main.xml has the following:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/...
Is there any way to place a custom icon for each group item? Like for phone I'd like to place a phone, for housing I'd like to place a house. Here is my code, but it keeps throwing a Warning and locks up on me.
ListView myList = (ListView) findViewById(R.id.myList);
//ExpandableListAdapter adapter = new MyExpandableLis...
I'm trying to find information on how to change the coordinate system for the canvas. I have some vector data I'd like to draw to a canvas using things like circles and lines, but the data's coordinate system doesn't match the canvas coordinate system.
Is there a way to map the units I'm using to the screen's units?
I'm drawing to a...