Hey, it's me again,
I've got another question regarding to basic Android programming:
How can I access the GPS for getting the current Position of the mobile phone the app is running on? How long can this take to retrieve the information?
In this case the GPS might be disabled, how can I enable/disable it again.
Which permissions must be granted in the andorid manifest?
Greetings and thanks for ur answers,
poeschlorn
I currently use blue tooth api on android and am able to pair with regular devices(eg. my pc with built-in blue-tooth). However it doesn't get a response when trying to connect to it. What is the meaning of connect in blue tooth? is this a built-in protocol of bluetooth?
I created an android app and one of its functions is to send SMS, when I try to send blank SMS it throws an exception.
Here is the code:
SmsManager sm=SmsManager.getDefault();
sm.sendTextMessage("9999", null, messageBody,sentPI, deliveredPI);
messageBody maybe empty string and maybe it is a string, previous method throws IllegalArgumentException when messageBody is empty string!
what can I do to send blank SMS?
Long story short: I want to add the --core-library flag at compile time to include a library that depends on some javax libraries that aren't included in the android platform. I have attempted the walkthrough here: http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android.html but nothing ever changed on the emulator.
I don't think I can repackage the libraries I'm after because I cannot amend the callers to call the new packages without violating a license agreement.
Please, someone, point me in the right direction.
In android emulator, I am in landscape mode and double click the text edit panel. the softkeyboard does not show up. However, it works in portrait mode.
I have check some of posts on line. They said because of hardkeyboard is available in landscape mode. If that so, how can i disable the hardkeyboard. Or is there any setting reason for this problem?
Hello,
i need to realize an app for Android using this background image:
Over every cell i have to draw a TextView, but i don't know how to do it with the different screens; i have the background image with 3 resolutions (240x320, 320x480, 480x800) but i don't know what kind of layout to use; i would use GridView but i don't know if i can work with different column size.
Can anyone help me?
Thanks in advance
Hey guys,
during my development in android I've missed a function that can log every broadcast intent that occur. Sometimes it had been very useful to have a function like that...
I'm also wondering how to trigger those broadcast intents manually on the emulator.
Is there an entire overview of available broadcast intents?
Would be great if someone would have some answers,
greets,
poeschlorn
I have an android app that I am trying to get a file path for a SAX parser. I have the following structure:
assets:(Where my xml file is)
src(same level as assets)
com
msi
androidrss(The calling java file is in here)
I tried several variations of this:
InputSource is = new InputSource("file://../../../../assets/Rss.xml");
But I always get a FNF Exception
Any suggestions?
Thanks
Is it possible that the Android browser renders the HTML list box, such as:
item 1
item 2
item 3
item 4
All
as a dropdown? I can't seem to get it to display a proper multiline listbox. Anyone knows what the trick is?
Hi
I know that the function Location.getBearing() returns the bearing if any when in move
public void onLocationChanged(Location lastLocation)
{
int bearing=lastLocation.getBearing()
}
,so now bearing might be , 170 degrees..but, I'd like to know if there is anything in android that will give me the direction of the orientation (ex for 170 degrees , the direction is : SSE south, south east)
Team,
I am facing some issue at the time of parsing the XML, but the same works in Java program... When I run the same code through android prgming its failing to parse...
InputStream byteArrayInputStream = new ByteArrayInputStream(
response.toString().getBytes());
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
parser.parse(byteArrayInputStream, xmlHandler);
Facing the following error
DTD handlers aren't supported
Any help is greatly appreciated.
Thanks,
Ramesh
I am developing an Android app, it will connect to the internet to load some data back.
I tested it with WIFI and it works well. But when I switched to use EDGE/GPRS, it always timed out, I have set a big timeout parameter for httpclient, but it did not help.
Anyone have experienced this before?
Here is my custom adapter:
...
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
LayoutInflater inflater = LayoutInflater.from(context);
View v = inflater.inflate(android.R.layout.simple_list_item_checked, parent, false);
return v;
}
...
Now this visually appears to be exactly what I needed. The problem is that I can't get toggle the checked state when I click on the listview item. Any solutions?
Hi All,
I have a jar that consists of a class that extends Activity and performs some activity on onCreate. I want to import this jar into my Android app and start the activity.
How can I go about this?
Thanks
George
In Android, how can I apply a style to an API action?
I am using the RingtoneManager.RINGTON_PICKER action to let the user select an alarm, and would like to apply the standard theme that the other child-activities use.
Does anyone know how I can apply a theme? The code I'm using to open the RINGTONE_PICKER is
Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);
((Activity)mContext).startActivityForResult(intent, BackendConstant.RINGTONE_CODE);
Hi,
I am writing an Android app, part of which will be a survey involving multiple pages of checkbox question and answers. I have created an activity to display the question and options (from the DB) and what I want to do now is when i press the "Next" button it should just reload the current activity with the next question set from the database.
(the activity starts with survey.getNextQuestion() - so its just a case of refreshing the activity so it updates)
Im sure this is a simple thing to do -any ideas?
Thanks
I'm looking to get a device (phone, tablet, etc.) for developing Android applications. I know I can use the emulator to get me started, but I feel like that will only get me so far along. I'm looking for something reasonably priced, and I don't want a phone contract, data plan, etc. Anyone have any suggestions?
Hi
i want to do some activity on sms after user read it,
so how can my background service in android know that particular sms is now read(when my service start work) to react for some task.
is there system generate any integer when user read sms. if it generate than how will i get?
if anyone have any idea than share it.
I want to create a backend for my android app with Tapestry5 and this http://code.google.com/p/t5-restful-webservices/ plugin.
The app will communicate with the server by calling REST methods both for registered users (that would be easy to secure I guess) as well as unregistered users.
Now of course I don't want people to just call that webservice from a browser.
How can I make sure that only my app can make calls to this backend?
This is a simple question about getting started with developing Android apps using Eclipse. I have followed all the tutorials on the developer site for installing Eclipse, the SDK and the ADT plugin. When trying to run a simple Hello World program, everything seems to compile correctly, but then the virtual machine comes up empty. In the Console Window it reads:
The program then just sits and my text never comes up. Any idea with what the problem could be?
I am using a TimePicker under API 1.5 and when the orientation is changed on my device (a stock G1 running 1.6 - though NOT on the 1.5/1.6 emulator), the hour field goes blank. It still remembers the hour, it just doesn't show it. Is there any workaround for this?
The same problem was described by someone else here:
http://groups.google.com/group/android-beginners/browse_thread/thread/b4288004021b876/de5899a2bb291ab5
Nothing helpful was forthcoming - can StackOverflow do better?
I'm running Win XP 64bit and am connecting a Motocliq to my computer. The device is recognized by windows and shows up in the device manager (Motorola ADB Interface), however when I try to install drivers (manually, from the usb_driver revision 3 provided by Android) it fails giving the error "The hardware was not installed because the wizard cannot find the necessary software."
Does anyone else have experience installing this drivers on XP64bit/Motocliq?