Hello, I'm a newbie to Android.
Actually, I want to query data from Media provider with Content provider & content resolver.
c = mContent.query(CONTENT_URI,projection,where,null,null);
My question is, I want to query data from media provider as below
select DISTINCT _id, count(_id), _data FROM aaa_table WHERE _data LIKE "A" OR _da...
I have a HTC Dream firmware version 1.6 build DRD20.
I am unable to install voice data in Menu ==> Settings ==> Speech Synthesis ==> Install voice data. The option just brings me back to previous screen of settings. I also tried installing Speech Synthesis Data Installer and many other applications for text to speech. But none works and...
I want to set the LayoutParams for an ImageView but cant seem to find out the proper way to do it.
I can only find documentation in the API for the various ViewGroups, but not an ImageView. Yet the ImageView seems to have this functionality.
This code doesn't work...
myImageView.setLayoutParams(new ImageView.LayoutParams(30,30));
How...
Hi all,
I have read on this site that it is necessary to customize the setOnItemSelectedListener and setOnItemClickListener of a ListView if we want to know the Index of the SelectedItem (.getSelectedItemPosition()). So that is what I do but it does not stores the position of the SekectedItem, instead i have always -1...
What I want to...
Hi.
I want my application to start when someone modifies a content provider. A setting to be specific. The settings framework calls "notify" when a value is set.
If my app was started I would use registerContentObserver() I guess, but is is not started.
Can define some intent-filter in my manifest that wakes up my application. A back ...
Hi,
i've build an AlertDialog which shows three items:
AlertDialog.Builder builder = new AlertDialog.Builder(myActivity);
...
builder.setItems(items, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int item) {
if(item==0){ //do stuff}
...
Hi,
i try to parse an rdf file using android.sax and android.utils.Xml methods. My parser ouputs nothing and don't send any exception.
RDF file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss1full.xsl"?>
<?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedb...
The TouchUtils class in the android documentation has functions like drag()
http://developer.android.com/intl/de/reference/android/test/TouchUtils.html#drag(android.test.InstrumentationTestCase,%20float,%20float,%20float,%20float,%20int)
but they do not support multi touch gestures, like a two finger swipe.
Looking at the MotionEven...
i have using Table Layout. It has two columns. first column contains a text view another one is EditText. My Layout should be look like this.
column1: columnvalue1
column2: columnvalue2
col3: columnvalue3
But my Layout auto aligned like this:
column1: columnvalue1
column2: columnvalue2
col3: columnvalue3
how to resolve the layo...
Looking at an earlier question link text based on the same concept,is there an approach to do this via the LayoutInflator?
...
I use GridView to display thumbnails from MediaStore.
If I launch and close my application 2-3 times it crashes with out of
memory error.
System.gc() is called in onCreate of main activity.
If comment call setImageURI then no errors.
Maybe I need to explicitly clear memory somehow?
Please, help.
public View getView(int position, View...
I want to do a RSS reader, which would display an image (left alignment, text running around it) a Title flowing next to it, and a description, also running around the image.
What is the best method to do this in Android?
...
I am writing an app that allows a user to access their corporate voice mail system. the voice mails are displayed in a list view and when one is selected they are given a menu. when the user selects "listen" i would like a small media player to pop up at the bottom of the screen on top of the existing ListView (similar to how the soft ke...
Is there way to dump the current screen to a bitmap in Android?
And what about dump screen of other applications? For example, running a service background, the foreground app could send an intent to start the service, and capture the current screen and save as a bitmap.
...
I am using the following code to setup a TabWidget:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TabHost mTabHost = getTabHost();
mTabHost.addTab(mTabHost.newTabSpec("tab_1").setIndicator("Tab1", getResources().getDraw...
I am writing a media player and i would like to have a progress bar showing the progress of the song. I found the ProgressBar class, but all i can get on the screen is a circular spinning icon. what im looking for is an actual bar.
How do i change the style of the ProgressBar to be a bar (not a circle) and how would i use it with Media...
I have an Android application with a main activity that is the tabhost. I'm adding multiple tabs to the tabhost with an intent to several activities.
My problem is that these activities are not created (onCreate is not called) until I click on the tab. This is a problem because I need to register broadcastreceivers: there may be broadca...
My android app draws a chart on a Canvas. It works fine in the simulator. On a real device the chart is clipped to the left 1/5 of the screen. I've tried:
canvas.clipRect(0, 0, canvas.getWidth(), canvas.getHeight(), Region.Op.REPLACE);
to clear the clipping. Am I missing something? Does layering have anything to do with this?
Tha...
I have an open source Android app which I am planning on adding Flurry tracking to. Flurry creates a unique API key for your app's tracking.
Do I need to try and hide this API key in my source code (i.e. not include it and I would add it every time I build for release) or just not worry about it?
...
From the documentation regarding the android:configChanges='orientation' attribute of the activity tag in the manifest:
Note: Using this attribute should be avoided and used only as a last-resort. Please read Handling Runtime Changes for more information about how to properly handle a restart due to a configuration change.
Why does...