Hi All,
I have a service component (common task for all my apps), which can be invoked by any of the apps. I am trying to access the service object from the all activities, I noticed that the one which created the service [startService(intent)] has the right informaion. But rest does not get the informaion needed. My Code is as below:
...
How do you space ImageButtons?
With RelativeLayout, I can have them side by side but I want a gap between them.
How do I place the buttons in the center and at the bottom of the screen?
...
Hi,
While parsing I am getting some special character and I couldn't parse that character.
If I try the char 
 in java I can parse it. But in android I am not able to parse that char. In the simlator/device I am getting it as (box), In log i am getting like â¨.
Manually I have tried changing the encoding format in eclipse (Right cli...
Howdy,
I'm currently working on an Android application that connects to a instrument via Bluetooth, and needs to write string commands and receive string responses back. Currently I have the connect/read/write working for TCP/IP over wi-fi and now trying to implement bluetooth. But am running into some roadblocks. I have been searchi...
I have an application that I will run on two separate emulators.
This application uses httpclient to communicate to the server application, that I will run on the same computer as the emulators are running.
"localhost" for the android emulator wont work as local would be the emulator itself. The computer will not be connected to a lap...
I am comparing CDMA signal strengths in various android phones to see how similar the results are between various models. When using getBaseStationId() on 1.6 phones, I get a proper ID. When testing on 2.1 and 2.2 phones, I can only get values of -1.
I am receiving signal strengths however, just not the ID. accessing in this way
C...
Hi, I want to launch an android application from a remote server, i can see that in J2ME there is a class called PushRegistry, this class resolve this problem in ME but in android I cant do it.
Thanks in advance
...
I have 2 ImageViews that I translate from the top of the screen to the bottom. these views are infalted from xml and the animation is added from java code. The animation works perfectly, but the onClickListener I added in java code doesn't seem to work. I used fillAfter attribute of the animation to make the iamges stay at their arrival ...
Hi I'm trying to get all audio media on external card using the managedQuery().
However on the line return managedQuery(uri... ); I get NullPointerException
Uri uri = Audio.Media.EXTERNAL_CONTENT_URI;
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
String[] proje...
What method need I @Overload in order to change the size of the Activity when it is first loaded?
...
i wonder what is the name of the service in ClientLogin for Android cloud to device, i found this link for all the service but i didnt find C2DM in it .
...
I am loading image url on to webview it fetching the image as well but i need to display it in resizeable it means te height to be reduced,help me to get reduced height of the image.
...
I have ListView, where any item is HorizontalLayout on wchich there are 3 TextView.
I can realize interface AdapterView.OnItemClickListener:
public void onItemClick(AdapterView parent, View view, final int position, long id) {
final long iid = this.id;
new Thread(
new Runnable() {
pub...
I have this code:
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
Log.i(TAG, "The id of the selected note is " + id);
Intent editNote = new Intent(this, TaskEditActivity.class);
editNote.putExtra(TasksDBAdapter.KEY_ID, id);
startActivityForResult(...
Hi,
I have a question about working with time in java, more specificly in Android.
I am developing a device that needs to check to see if an update with a remote server has been done today. I do this by comparing the time (in milliseconds) at midnight last night/this morning with the current time in milliseconds..
so my code is as fo...
Is it possible to make changes to the sdcard being used in an Android Emulator? For instance, I'd like to change the size of the SD card being used in the emulator.
...
How to open a port in android, in J2ME is Connector.open
thanks in advance
...
I made an image button in eclipse and I tested it out (ran it) with the emulator in the android sdk package.
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/cat1" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@drawabl...
I am trying to develop an application which will require a service to
run in the background. I am relatively new to android programming,
and after reading many posts, blogs, how-to's and books on creating
and managing services, I am still pretty confused about which model I
should try to use.
First, let me present (in general) the appli...
During the most recent google io there was a presentation about implementing restful client applications. Unfortunately it was only a high level discussion with no source code of the implementation. There is one sticking point for me that I can't seem to find any information about and it's not necessary to have seen the presentation to b...