android

Resizing bitmaps

I'm writing a Music application and I have already gotten the album arts. However, they came up in various sizes. So, how do I standardized the size of the returned bitmap ? ...

android animate property

is there any way to apply an animation to a property of a view? currently, the only animation i am aware of is applying an animation to an entire view. i'm wondering if i can apply an animation to a property (i.e. layout_width for example) ...

Is there a class in bada which is similar to "Context" in android?

I'm changing a project from android to bada, but I dont find a class which has the same effect as "Context". Any suggestion? Thanks you very much. ...

Android Media Player Threading

I have written a Music player app and it works great but when a flip action happens or when I return the the player view I have to stop the player and restart it at the postion that it was at when the action happened. That all works but it means a breif stop and start. How can I run the media player in a different thread and still updat...

Android Gesture to that's used on the start screen

What Android Api is used to get the scrolling to the left or to the right on the start screen on Android? ...

need help to interpret Google's code for Android Camera app

The function below is part of the code for Google's Camera app. I didn't understand the logic of the statements in bold. Please help. int seconds = intent.getIntExtra(MediaStore.EXTRA_DURATION_LIMIT, 0); mMaxVideoDurationInMs = 1000 * seconds; mMediaRecorder.setMaxDuration(mMaxVideoDurationInMs); //this function is to upda...

Can I install a visual basic application on android?

I have been trying to code and run the hello world application but am not able to get the emulator to boot all the way. Plan b is vb. HELP! ...

Android multitouch buttons

Hi, I need simple multitouch example . I have two button controls. How to make the both to be clickable(pressed) at the same time ? ...

How can I set a minimum width (in characters) for a TextView?

Hi, I've had a good search for this on here and can't find a solution. I have a TextView in a RelativeLayout which contains an integer number. The number will range between 1 and 99 - can anyone tell me how to size the TextView so that its width is always the width of the string "99" even if it only contains "1"? I need this because...

How do I display an Bitmap class object in android without using XML

I am trying to display an bitmap I created in and android program, but all the tutorials I find involve either Drawables or XML in order to display them. Can someone show me the steps needed to display an Bitmap in code? This is not the entirety of the code, this is just the majority, the rest is related to getting the camera working. ...

Launching Android Native Lock Screen

Hi, I'm looking for a way to launch the native android lock screen from my application. I've looked around and found code about KeyGuardLock and KeyGuardManager but I believe that only locks the keyboard from working. REF: http://smartandroidians.blogspot.com/2010/03/enabling-and-disabling-lock-screen-in.html ...

Default when using multiple Actions in Intent-Filter

Trying to grok intents and actions in android and looking through the documentation. But one thing I keep seeing is an intent filter with multiple actions defined. Like this, from the above link: <intent-filter> <action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.EDIT" /> <action ...

Preventing autolinking of emails and URLs in an Android WebView

I have a WebView which may contain data that appears to be getting "auto linked". Something that looks like an email address is becoming clickable, even though it's now within an <a> tag or has an onclick attribute. How do I disable this auto-linking? I've looked thorugh the WebView docs, as well as the WebSettings docs, but didn't se...

GPS Location without service

I am a new developer and have a simple question that I have searched all over for, but have not found a clear answer yet... Simply put, I am developing an application that needs to be able to use GPS. The trick is however that I would like to use GPS to get a phone's location even if they have no carrier service. With that said I have...

Expandable List Indicator

I have an expandable list so two question (I've seen somme similar question but never found the answer) How do I hide the arrow ( group indicator) when there's no children I tried to do it in the adapter public View getGroupView(int groupPosition, boolean isExpanded, View convertView,ViewGroup parent) { if(getChildrenCount(groupP...

Why Android don't print the stack trace?

Even explicitly writing e.printStackTrace() it doesn't print to the console, why? ...

Returning data from a SearchManager activity

I'm trying to take advantage of the SearchManager to allow a user to find certain items to add to a list. So basically what I do is I have a SearchActivity class that handles the display of the results in a list. Then in my other activities I tell them to use this SearchActivity to do a search by doing the following in the manifest: <m...

preload webview.

I have a webview and i have next previous buttons to get to the next or previous picture. What i want to do if possible is : Can i display the first picture but the webview loads (in the background the other pictures(other URLS) so that are available in the cache when a new picture is needed. Thank you ...

Is it possible for an Android app to end a call that it initiated?

Looking through forums, it seems that there is not a way to end calls, but on the Android Developers page, the permission PROCESS_OUTGOING_CALLS "Allows an application to monitor, modify, or abort outgoing calls." I can't find any documentation on how to end a call even with this permission. Is this possible, or is it just a mistake on...

Android Image Capture Saving Small Sizes on Milestone

I've written a simple app that opens the camera and supplies a path for saving any captured images. The code basically looks like this: File file = new File( Environment.getExternalStorage() + "myimages/", "my_image.jpg" ); Uri outputUri = Uri.fromFile( file ); Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTU...