I am working with an edit text to support the properties of bold,italic and underline.I got succeed after selecting the text and clicking on bold my text was bold.Now what my requirement is how to remove the bold again after selecting the text and clicking on bold button.
Regards,
Bhavani.G
...
Hi all,
I am new to Android development and have trouble enabling / disabling the wifi & audio services. I get the appropriate manager instance using the getSystemService method. But I don't get any error when enabling wifi using:
wifiMgr.setWifiEnabled(true);
But the wifi is simply not turned on! Similarly I use
mAudio.s...
I have a jni module. This module has to link with another .so file.
How to wrote my Android.mk?
Can I use PRODUCT_COPY_FILES ? It seems this also cause some variable cannot be resolved at compiling time.
...
I have some problems finding the documentation of the definitions of shapes in XML for Android. I would like to define a simple circle filled with a solid color in an XML File to include it into my layout files.
Sadly the Documentation on android.com does not cover the XML attributes of the Shape classes. I think I should use an ArcSha...
can we have ticker in android
...
How can I set backgrounds for each key on the android keyboard.
KeyboardView android:keyBackground provides one background for all keys. But I want to set different backgrounds for every key.
...
I have tried with zero success to get a USB debug connection from a WinXP dev box to a brand X Android 1.6 tablet. I believe I had everything configured correctly on the Android and installed correctly on the dev box, but when the two are connected with a USB cable NOTHING HAPPENS; i.e. Windows finds no new hardware much less a new USB d...
Hello,
I have a specific problem. I need to make openintents sensor simulator work
on 2.1 emulator. Does anyone has an advice on how to pass around deprecated code and make it work on emulator 2.1. Ty in advance for any help or advice you might have.
...
My project is working fine when i hold my HTC device vertical.
But the moment i rotate my screen 90degrees , it throws a force close error.Starts all over again, runs fine untill i again change the orientation.
How do i handle it ?
...
I tried to reinstall an apk
$adb install -r new.apk
And it shows the error:
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
One solution is to uninstall and install the new.apk, that works fine.
But I'm wondering whether I could re-build an apk and re-install without the uninstallation. Eg. change some config in the Andro...
I'm trying to save an object in a file but the file doesn't appear on the device and I don't get an exception either.
public static void save(Context ctx) {
Log.i("App serialization", "Saving to settings.ser: " + ctx.getFileStreamPath("settings.ser"));
FileOutputStream fos = null;
ObjectOutputStream out = null;
try {
...
Hey guys,
How would I rotate a view in degrees? I've got the following code setting up my view...
public class GLLayer extends GLSurfaceView implements SurfaceHolder.Callback,
Camera.PreviewCallback, Renderer {
int onDrawFrameCounter=1;
int[] cameraTexture;
byte[] glCameraFrame=new byte[256*256]; //size of a tex...
I have thread in "onCreate" which is getting content from web. While the content is getting, I have progress dialog.
new Thread() {
public void run() {
Get_content() ;
handler.sendEmptyMessage(0);
}
}.start();
But if I rotate the display (to landscape mode) while this is running, my application gets Force ...
I was wondering if it's possible to get the icon (shortcut) of your app on the home screen during installation instead of inside the standard apps folder ?
And I did find out that Android has AppWidgets but I was wondering if it supports "standard" widgets as well (javascript/html/css) ?
...
My objective is to run a glowing animation on an image.I am changing the image alpha to produce this effect.
I have used basic AlphaAnimation provided in android framework but found that its slowing down other animations. So i extended a class from SurfaceView and created a thread to update it. ( Again here, i am manipulating alpha of t...
I need to have 2 different images in one view. The GraphicsView(this) is supposed to be an animation (actually an image that rotates it self in the center of the view) and R.layout.main is supposed to be the background of the view (a static image again on the top of the view)
What I need is an imageview on the top of the view and bellow...
When you have a list activity and in onListItemClick() you need to obtain the selected item and then match it against various options, what is the efficient way to do it? switch case cannot be used since I want to match Strings. Is a very long if-else if ladder the only way to do it?
Basically the question is how to do something that n...
I am developing an application that uses system activity to add a contact to phone's memory. This external activity launches a Toast after saving the contact. Is there any possibility to get rid of it? It would be perfect if I could get a reference to it to call cancel() or cancel all queued Toasts. Is there any Toast manager?
...
Hello all i am new to android.
Udp data is coming like the following format.
Id:data
120:10
130:23
120:12
122:13
134:12
Data will come frequently when the data is coming I have to show it on the screen. Once we receive the id we should display id with data if the same id comes again we should update the data for the particular id....
I can't find any documentation on geo fencing, specifically geo-fencing with polygons and dynamic objects. Is this functionality available?
Thanks in advance.
...