Hello. I am trying to query a string (TEXT field in the database) and want to fetch records based on that query. I was following a tutorial which works fine if I query an Integer (the _ID field). What will I need to change in the code below to let it search for the string (the TEXT field) instead of the _ID field?
The activity code:
pr...
I want to connect to a MySql DB but i don't find the code.
Can anyone help me?
...
Hi all,
Im doing app in which, uses sqlite db file to get data.
table in db having shop name, address,city, latitude, longitude etc columns.
Im able to get cureent location latitude and longitude and also able to calculate the distance between current location and the location of a shop(in db) using longitude and latitude values.
Her...
Hi, all.
I have met an i18n problem in my application. When I change the phone language, some of the strings used by the application is changed, but some not.
Following is what I did:
Set the language to Chinese.
Launch the application. Current Activity uses Chinese strings.
Press HOME key, change the phone language to English.
Resu...
Hi, i have a widget and i personalized my buttons with a personal layout using a resource layout.
At a certain moment i want to change this type of button (that now is green), with another style (that is red), so a tried in my onReceive method this code:
remoteViews.setInt(R.id.ButtonAddOne,"setBackgroundResource",R.drawable.buttonlayo...
Hello
In my android application i am using rtsp live links to play my videos.I am placing a buffering screen before the videoplayer screen.Now the issue is like after buffering screen it takes some time to actually start the player.
Is there any way in android that i could know if the player is ready to play and then disappear the buff...
hi ..
i have some problem with "how android manage its activity called from another activity"
i m using the following code... whenever i execute the program on the device... it execute the "second "activity first before executing the "first" activity.
program display the "second" acitivy first. after pressing back button it display the...
I was thinking of building an app on android with Scala instead of the regular Java (or the equivalent I guess). Is it worth it? Any problems and unnecessary headaches?
...
Hello there,
I'm working with a CheckBox that needs to hace some links appearing as text, not urls. I'm using something like this:
TransformFilter transformer = new TransformFilter() {
@Override
public String transformUrl(Matcher match, String url) {
Log.d(" ", match.toString() + " |||...
I've been struggling for a few days on this, finally just decided to ask. It's so simple I've got to be missing something very basic.
I have an XML layout page with an image defined. I have two anim XML pages, one to change alpha from 0 to 1, and the other from 1 to 0 in order to create a "blinking" effect. So the alphaAnimation is de...
Hi,
Can anybody tell me how to convert a string to an xml file in android?
Thanks
...
I am new to Android and I'm after some help.
Here is my Maingamepannel class which is extending from surfaceview. I want to add a Progressbar which can show progress on two custom buttons on click.
Here I have allready added three images nnow i want to add a Progressbar.
package net.obviam.walking;
import net.obviam.walking.model.Co...
Hi,
I have parsed xml data but I don't know how to insert it into a SQL Lite database and I don't know where I have to place the xml database file in Eclipse IDE folders.
Kindly provide some example program with deployment descriptor.
Thanks in advance
...
Hi!
I have a layout in which I resize an image by doing a transformation with prescale. After the scale the image has the right size, but the layout container around it cuts its size of. I want the layout container arround it to show to complete image.
I just tried invalidate on the image, the container as well as requestLayout(). Any ...
Hello, how do i efficiently copy a row data from one table to another table, where both of them are the same structure. i could go the much harder way of retrieving initial values from the row in the first table and then inserting to the second table. But i feel there is a more efficient way this can be done. Thank you
...
Hi
I'm writing an Android app to auto-answer incoming calls.
I am using a receiver, and trying to send ACTION_MEDIA_BUTTON event when the phone rings.
It all works great on the emulator -
When the phone rings it actually answers the call automatically.
But when I'm trying it on the device it-self it just does not work (HTC Legend).
T...
I have created a custom class for my Android project called "Sounds" I want to be able to call it from my activity. The contents of my class are as follows:
package com.mypackage;
import java.util.HashMap;
import android.content.Context;
import android.media.SoundPool;
public class Sounds {
private static boolean sound = true;
priv...
Hello, I am using the RandomAccessFile object to read sections of a video file at the same time it is being recorded. The problem is that the part of the file that I am reading is not "finalized" or the headers are not quite right. If I process the extracted section through ffmpeg then I can see the video (I cannot verify the audio be...
I'm trying to run this piece of code inside my onCreate method as an initial test into writing private data for my app to use. This code is straight out of the Android SDK development guide located here (http://developer.android.com/guide/topics/data/data-storage.html#filesInternal)
String FILENAME = "hello_file";
String string = "hello...
I create a TabHost1 with 3 tabs: tab1, tab2, tab3. When choose tab2, I want the TabHost2 change into another sub TabHost with 2 tabs: tab4, tab5.
TabHost1.java:
Resources res = getResources();
TabHost tabHost1 = getTabHost();
TabHost.TabSpec spec;
Intent intent;
// Create an Intent to launch an Activity for the tab...