how powerful is Bluetooth programming on Android? is it possible to add new protocols and encryption techniques? or even change in the current protocols? does it support bluetooth 2.1+EDR?
I'm looking to create a simple form with some textfields and a button using the Android SDK. Could someone point out a good example or tutorial for getting started?
Hi
I recently started using eclipse and an AVD emulator to develop android apps for a droid. Everything is going fine, except when i type in the emulator it returns chinese characters. My location is set to en-us, so not sure what is going on.
Any thoughts?
(Newbie to Java, old time C# guy.)
I have noticed a lot of the use of @Override in Android example code. I thought that all Java methods were by default "Virutal"?
What then does @Override do?
Example:
private class HelloWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
}
Android: How to Add Static row in list view
I have a requirement where i need to add the Static row as first row in list view
Thanks in advance for help..
Is there a way to change the sync settings of a Gmail account programmatically with an Android app? For instance, I'd like to enable/disable syncing of a Gmail account from my app, without the user having to do anything.
I took a look at AccountManager, but that doesn't seem to be the right place to look.
I'm trying to build a voip application on a new android device, i use AudioRecorder to read the microphone but I'm getting no valid results, just white noise.
This happen only on this new device(other work well) and this is probably because this device has PTT ability.
Is there some workaround to avoid using AudioRecoder to receive streaming data from the microphone?
Thanks.
supersk.
How to trace the Memory Leaks in Android Development? I am working on eclipse IDE to develop the application. i cant find out how to rectify the memory or window Leaks Exceptions? Any Idea.
Mainly the Window Leaked error raises the Illegal Argument Exception? how to rectify both og this. Please Help.
Hi.
I need to obtain the velocity of an android device, based on the accelerometer values. I made a code that allows me to get the accelerometer values, and then I calculate the velocity, using the formula:
v = v0 + at. (vector calculation)
My problem is that my velocity only increases and never decreases. I think the problem is that the device never gets an negative acceleration.
Can you help me with this?
Hello I am looking for personalized screen locker for android phones, instead of typing numbers , user can flex fingers in a particular pattern and unlock the screen.
Any pointers/ideas are appreciated.
Hi stackies,
I'm programmatically putting various TextViews into a LinearLayout with a horizontal orientation.
After 2h of research I couldn't find out how to tell Android not to squeeze all the TextViews in one line but instead to "float" non-fitting TextViews into the next line.
I know there isn't something like actual "lines" in a LinearLayout, but how can I tell the TextViews to actually behave like floating DIVs from the HTML world?
Thanks alot!
Be well
S.
Hi,
I have a ListView in my android application.
If I flick up/down the ListView, which method will return my 'selected' element in my list View? How about if I use the track ball to navigate up/down my list view, which method will return the index of my selected element?
Thank you.
I want a TextView to have a rounded border. This can be done by using a drawable, specifying a shape in the drawable, and then using the drawable as the background of the TextView. android:background="@layout/border" Also shown here
However, my TextView already has a background color (which is gray) and thus I'm unable to use the above method to set a rounded border.
Is there any other method to do this which allows the background color of the TextView to remain gray and also surrounds it with a rounded border?
Does Android come with a way to do Full Text Search?
I know is it not even possible to search contacts by the notes field, being Google the search company, but I would be disappointed if there is no API for that.
I have a large editText that no matter what I try, won't center. I have tried putting it in a horizontal and vertical linear layout and then setting that gravity to center because setting the imageText's gravity to center, it still hugs the left of my activity.
<EditText
android:id="@+id/editText1"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:ems="10"
android:gravity="center"
android:lines="8"
android:maxLines="8"
android:minLines="8" >
</EditText>
And here is what it is doing:
hello I think the title says it all. I need to accomplish this result in android but it looks like there is no easy fix to my problem. Just to clarify a bit more: if I had to do it in html css I would write something like
<img src="Image URL" style="float:left; margin-right: 5px;" />
got it? ;)
thanks guyz
I have an iPhone application and I am porting it over to Android.
I have a service/controller that spawns new threads to perform some network tasks.
I use performSelectorOnMainThread in my iPhone app. How can I have my Java app do the same or similar thing?
Hi,
If someone asks me the below questions
What an Android Framework is?
What does it do?
How should I answer?
Also what is the role of API's such as Activity Manager, Location Manager etc in the Framework?
I'm trying to upload to AWS S3 by using thier AWS for Android SDK but both sample project within SDK and my project give the following error on devices while emulator runs without problem. So there's no problem with my AWS account.
"Host name may not be null."
Upload Code :
s3Client.createBucket(Constants.getBucket());
PutObjectRequest por = new PutObjectRequest(Constants.getBucket(), record.getFile().getName(), record.getFile());
s3Client.putObject(por);
Any help is appreciated.
I want to display one dialog box after incoming call, so that I can run my application in background while receiving call.
How to catch that incoming call in android application???
I download the *.ics file successfully from the mail attachment by using
intent-filter.
I need to give an alert at the time of downloading the ics file. How to do this? Please help me to solve.This I am new to android.
Starter question: My "Hello World" attempt won't run, ("No compatible targets were found"), I think this is bacause I selected the latest version for my project (2.2), and the highest AVD version is 2.0.1. Does this make sense? Can I change my project version (haven't been able to find a way to do this), or do I have to start again? If the versions are not backwards compatible, what is the best version to use for the majority of Android devices out there?
Thanks
I am first time to write a camera app. At program, I am using setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) and android:screenOrientation="landscape" in Manifest to set the landscape screen.
My problem is when use System.exit() or Intent. The screen will change to portrait automatically. But in my program, it haven't set any screen orientation again.
How can I prevent this problem?
Thanks!!
I want to quit application in Android. Just put a "quit" button, which kills my app.
I know I shouldn't do this. I know that this is not the philosophy of the OS.
If you know how it can be done, pls share.
In the app, I have many opened activities, so "finish()" will not do the job.
Thank you for your information in advance.
Danail