Hi I have some weird problem with mediaplayer in android version less then 2.2.
I made a game where I do some button clicks and if is answer OK then go to this method and
play some sound, it play great on android 2.2
but on minor android version it show error after 7-8 Right answers ???
I have some code sample that works fine...
In light of the Firesheep exploit, does anyone know what protocol the Facebook for Android app is using?
...
Hello.
I'm developing an Android application.
How can I center the title for a custom dialog that I'm using?
Thanks.
...
It appears as though everyone using my application on an LG Ally is having to redownload the application every time they turn off their phone.
I've received the folling market comments relating to the issue:
"Is great when it works. But if i shut my phone off i have to reinstall it. Lg ally."
"Great quick ref. I do have to redownload ...
I was given an assignment to develop a very simple weather app in Android using the data given from
http://forecast.weather.gov/zipcity.php
This would be my first actual android app, my only other experience is watching/reading many tutorials on getting started.
To give some background information of the app, it simply needs to have ...
Is there any way I can launch an activity from a portion of a string.
eg
I have this in my strings.xml file:
<string name="clickable_string">This is a <u>clickable string</u></string>
I would like the text between the u tags to be underlined and launch an activity when clicked when inserted in to a TextView
...
HI All,
I have i list view in each row I have three textviews. and I m assigning values to the textviews through array.
Now I want to get the selected items in a list view row.(Because I have three items in row.)
Below code is giving me the object. with three values in it, but I'm not able to make it individual items.
Response of obje...
In hierarchy viewer there are several IDs as shown above, for example "id/timepicker_input".
But I can't find a respective timepicker_input - ID when typing
myNumberPicker.findViewById(android.R.id. ...? );
So how to access these Views by their ID?
...
I am writing an android app for storing and managing voice memos with some basic metadata and tagging. When recording sound I use:
recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioE...
Just something I have been thinking about. It is possible to create an android layout with just a TextView widget and no Layout code (e.g: inearLayout, ScrollLayout), but if I try to add anything else to the XML file all sorts of errors start popping up. Is it possible to create a Layout with just widgets?
Also, if it is, how?
...
I made a library that I use across my app. I want it to access some settings that are stored in the shared preferences.
This is a shortened version of my library:
package com.android.foobar;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
public class Lib {
int now;
public Lib() {
...
Lets say I have an xml file called test1.xml in String xmlFile = "test1.xml" format. How can I get the R.id.test1 value of it?
...
I have a quite common problem, i guess.
I have an activity and inside it there should be three screens. The problem is, they can/should be scrolled in both ways (horizontally and vertically). Since ebedding a HorizontalScrollView with a normal ScrollView is usually discouraged and typically causes more problems than it solves, are ther...
I have a website embedded in my Android application. It has a 478px wide div with some content in it. My phone is in landscape mode. Why is there a horizontal scrollbar? I can hide it, but i can still scroll to the right (which is empty space). I can see the entire 478px wide div without scrolling.
There should not be any way to scroll...
How can i use tabs to switch between activities? For example i have some tabs, one of them includes google map and i want each tab to have its own activity with its own .xml file. How can i do it?
...
After I successfully configured alarms to go of after I start or restart my phone (thanks for that answer Macarese), I must have made something wrong, because stored alarms are not fired after 2 or even 3 hours after the phone has been turned on.
I tested alarms that supposed to be sending notifications every 5 minutes... Nothing happe...
I have
ArrayList<String> ids = ArrayList<String>();
What would be the cleanest way to make it Parceleable? Apparently String itself is not parcelable, so Parcel.writeList(ids) is not working.
I was thinking to either parcelize ArrayList<Uri> or put array contents into a Bundle.
...
I have class Maingamepannel extending surfaceview for my games first level everything works fine. Now i Want to redraw my surfaceview for my next level so that I can reinitialize my
bitmap objects at their initial position and start the game again with bit diffrent conditions
which i have handeled in switch case.
To achieve this after ...
How to setup the attribute to achieve the rounded corner for each item in the ListView?
Please kindly give an example if you can, thanks!
for example:
http://www.flickr.com/photos/jaxxdotorg/3640222441/in/set-72157619952823330/
EDIT:
That's my code here for the answer.
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="h...
I want my Ongoing Notification to be placed on top of all the notifications in the Notification Drawer. I've seen it in Advanced Task Killer. How do I achieve the same?
...