Why if I start the MPlayer from the onCreate it doesn't start?
I tried also from onStart(), but the only working way was from onTouch or on key press.
Any idea how to start it without any additional user input needed?
...
I've got a bitmap... and if the bitmap's height is greater than maxHeight, or the width is greater than maxWidth, I'd like to proportionally resize the image so that it fits in maxWidth X maxHeight. Here's what I'm trying:
BitmapDrawable bmp = new BitmapDrawable(getResources(), PHOTO_PATH);
int width = bmp.getIntrinsicWidth();...
is there a way to apply a color to an alpha animation in android? I know how to use the <alpha> element, but i'd like to have the alpha apply a color as well as an alpha so i can hightlight a layout. is this possible?
...
So, I was finally able to build and debug the android platform (the process can be seen here). Now, the question is: where are the unit tests, how do I launch them and where do I see results?
And also, is there any guide to android platform architecture?
...
Hi,
I would like to know if anyone knows how to create a wrapper to AudioSystem?
I found a post on google code which talks about it, but there is no code.
Issue 4169
Specifically this post:
Basically, Google have knobbled the AudioManager big-time - and AudioManager is the only official way to
control the audio system. Luckil...
I tried with threads, but android throws "CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.".
So how can I wait 3 seconds and then hide the view, letting the GUI responsive?
--
A Timer uses another thread either, so it will not solve..
...
Hello Android developers,
I am developing an application which will read the text file from the SD-Card. I am able to store the details into sd-card in a text format. However, I am unable to display the data from the text file due to default buffer size limitation.
Please let me know the procedure to increase the buffer size.
Regards,...
I have to use OAuth for my Android client and I have found that the learning resources are pretty rare or inadequate for this technology.
Does anybody know a good book/tutorial/online resource to learn OAuth?
Thank you.
...
When creating a new android project, the build target has two choices:
Android 2.2, Android Open Source Project
AND
Google API's, Google Inc.
Both show Platform as 2.2 and API level 8
Which to choose (and why)?
...
Hello guys.
I'm working on an android application, and test it on an emulator, because I don't have physical android device.
So, I have a button, and I set a click listener on it. Does it mean that it will work only when the user pushes the click button on his device, or it will work also when he taps the button (the tap is touch event...
Despite similar question was asked, I have differnet situation:
My app consists mostly of a background Service. I want to start external activities and get results back.
I see several options:
Create dummy Activity and keep reference to it for using its startActivityForResult. This consumes quite a lot of memory, as we know.
Use Broa...
Hello, I am wondering how I would save data in my application. What I need to save is a Drawable, String, and possible an Intent. I need to save/cache these because it takes my app about 5 seconds to load all this data each time, and thats not very user friendly.
Thanks in advance,
...
I am looking to add a (local, not online) high scores table to my Android app and I wanted to get some insight on the best way to approach the problem.
I have a list of users (right now being saved out to a file and read back in as an array of User objects), and the high scores need to reference this data to populate the table with the ...
I am trying to suppress logging output from BT since it spams my debug session. The log looks like this:
07-14 11:27:46.800 I/dun_service( 1105): The value returned from dun_getusbmodemstate_fromsys is 2
07-14 11:27:48.775 D/BT HS/HF( 1284): cdmaDbm : -81, cdmaEcio : -70
07-14 11:27:54.090 D/BT HS/HF( 1284): cdmaDbm : -81, cdmaEcio : -...
How do I exclude an application from appearring in the Application Launcher. The code below is used to add on to the launcher but when I exclude it, the launcher still appears.
<activity android:name=".Application" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category...
here's a few things i couldn't figure out and could find anyone else
posting them in the discussion:
1.
In the new API
ContactsContract.AggregationExceptions table does not really work for
me:
when I try to insert a row into the table, it gives me this error:
07-13 14:20:09.399: ERROR/XXXXX(3074):
java.lang.UnsupportedOperati...
In my xml i have an edittext element like this
<EditText
android:id="@+id/hrvalue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="64"
android:textSize="18sp">
</EditText>
in my configuration class i want to read the value of the edittext and save it to a variable.
In the edittext box the user wi...
Is it posible that Android would allow an app to block a phone call, email and or SMS from coming through to the device?
e.g. User opens app and sets it to block all incoming info for 2 hours. App blocks all email, SMS and calls for 2 hours.
...
I am planning to drop a call and I find this as one of workaround for that.
Can someone help me and explain how to activate the airplane mode via code , this way I will drop the call based on some event. Thank you very much.
...
Hi,
By default, Wifi sleep policy is "Sleep on screen idle".
With this policy, is it possible for a Background Service at a later time to wake up Wifi using some API?
Am trying the following, but does not work:
When my Background Service wakes up, it calls "ConnectivityManager.getActiveNetworkInfo()" to get active network.
Since, the ...