Hello, Im trying to insert values on Android SQLite Database. The question is, Iḿ trying to insert a word, the table has 3 columns, ID, WORD, COUNT.
When I insert a word in the database, some method will verify if this word exists on the database. If yes, it will increment the value of COUNT for this word.
Example. I have a word "Quest...
I have two activities running video view when i move from activity one to activity two , the video in activity two is freezed. I have tried the second activity alone without moving to it from activity one and the video works fine , so where is the problem ?
Thanks in Advance.
...
Hello,
I have two questions:
1) how do I change the color of the seek bar (path) from yellow (the default color) to white. What I mean to say is, while I slide the thumb , it turns the line traversed from grey to yellow. I want track/line to either remain grey or white..Basically I want just the thumb to move with no color change in t...
I have an app that has a free, and a paid version. I put all the free version code into a library, which I reference from a new free version project, and the paid version project.
I noticed that the library, and now my projects all have a properties file, and my preferences stopped working completely. It seems that depending on what na...
I have 3 autocompletetextview's in which i set its adapter to be an ArrayAdapter with a very simple textview layout.
the autocompletextview hint results are showing, but are under the onscreen keyboard(i can see part of it). how can i make the results show above the autocompletetextview rather than below?
airline = (AutoCompleteTe...
I'm trying to query a word, for this Im using the db.query method. But I want use a where clause, I've done like this on my code, but, the emulator returns an error.
public String select(String wrd) {
String list = new String();
Cursor cursor = this.db.query(TABLE_NAME, new String[] {"word"},
"word like " + wrd + "", null, null...
I am using audiorecord to get micrphone data in a background service on android. During the time when the code is running, if I make a phone call on nexus one then the receiver cannot hear what I am saying.
I tested the same code on Motorola Droid. Surprisingly, in Droid the receiver can hear what I can saying.
My initialization look...
I've written an Android application and I would like the application to be able to recognize when the Android device is plugged into a PC via the USB or even better, know when it is connected and adb logcat is running. Is this possible?
My purpose is to write traces to a separate circular buffer (which would get written to the sdcard oc...
I have a camera view over a video view in my android application.
I want to use touch for both views.
For Example:
If i touch the camera view, i want to perform specific actions for camera view. Similarly the Video view.
Kindly, tell me how to perform touch events for both the views at the same time.
| VideoView |
| _ |
|...
I'm playing around with an app I have written whose main activity is a TabActivity. I was considering allowing the user to navigate between tabs with a fling gesture, but I find that I can only detect flings on one of my four tabs.
public class WSGesture extends TabActivity implements OnGestureListener {
private GestureDetector gestur...
Hello,
I have an Android activity that displays a list of log entries (using a cursor adapter and listview). When one of the entries is touched it kicks off an intent (passed with a bundle object containing the log details as strings) to another activity. The new activity is supposed to display the details in a custom TableView xml file ...
I've written a web-app in HTML and Javascript for iPhone and Android which involves the dragging and dropping images.
You initiate the drag by holding your finger over the image for about a second. However, Android then pops up the message giving me the option to save the image, set it as wallpaper etc.
How can I prevent Android from ...
I would like to play around with some ideas and develop a soft keyboard for Android to replace the default one.
Is there any general information about soft keyboard development for Android out there? Any best practices or guidelines?
Can I do with my keyboard application pretty much anything I could do with a normal Android application...
I'm creating a custom widget by extending LinearLayout:
public class MyWidget extends LinearLayout {
private static Paint PAINT = new Paint(Paint.ANTI_ALIAS_FLAG);
static {
PAINT.setColor(Color.RED);
}
public MyWidget(Context context) {
this(context, null);
}
public MyWidget(Context context, Att...
Is there a way to automatically answer an incoming cell call from an android application? I know it can be detected etc. but can it be programmatically answered?
...
When creating my SQLite database in Android I set the database locale - db.setLocale(new Locale("cz_CZ")). This is a Czech locale.
A SELECT statement works and takes the locale into account, for example:
SELECT * from table WHERE name='sctzy' COLLATE LOCALIZED
Will find the entry 'ščťžý'.
But using LIKE will fail:
SELECT * from ta...
What's the best way to detect when a Home Screen Widget has gained or lost focus? An example of losing focus is if the user navigates to another screen or if another screen popped up in front of the Widget.
...
im using this code to post on facebook, this dose not work with the official facebook app because it tries to send as a link. is there any way around this?
Intent s = new Intent(android.content.Intent.ACTION_SEND);
s.setType("text/plain");
s.putExtra(Intent.EXTRA_SUBJECT, "Quote");
s.putExtra(Intent.EXTRA_TEXT, qoute);
startAc...
Im creating a custom layout and I want to use the text declared in the layout.xml file in my layout.
Like when I create a TextView in XML and set android:text=@string/text1 when I run the app text view automatically loads the text from android:text. So how can I access attributes declared in the layout XML file in my custom component.
...
1- How can i disable multi tasking?
My application is a socket based game, every time i start the app, it MUST load the main page first to start the socket connection?
I do not want the user to be able to run my application in background.
Is this possible to do?
2- I do not want the user to be able to use the back button, to navigate b...