Hi all
i am new to android development.currently i am facing a problem while inserting/retrieving image to sqlite database using android.
//code for inserting image
InputStream in = OpenHttpConnection(imgurl);
byte[] bb = new byte[in.available()];
in.read(bb);//here the length of bb is 2040
//update query
myDataBase.execSQL("Update...
I've run the HelloWorld without problem, but the GridView will not work.
The Sample_0, Sample_1, etc icons are not visible in the R class within the ImageAdapter file.
They ARE visible within the main class.
Going back to the HelloWorld example, I noticed there is an 'icon' in each drawable for three resolutions.
So as a test, I created...
I'm using MapView in my app. I have API key from google fore my release key store.
I'exporting signed APK with eclipse and trying to install it on devices.
On G1 device with Android 1.6 everything works well, but on HTC Desire with android 2.2 maps doesn't appear. I see just grey grid and zoom controls.
Where problem can be?
Please h...
I want call the function startActivity in two ways:
First (It works):
public class HelloWorld extends Activity
{
public boolean onOptionsItemSelected(MenuItem item) {
if(item.getItemId() == 1){
startActivity(new Intent(Intent.ACTION_DIAL,Uri.parse("tel:660718109")));
}
...
Hello, I am new in android development, and I need advice about structure.I want to develop Tic tac toe game, and have 3 images: 1 - 3×3 grid 2 - circle 3- cross.
My idea:
I need some layout with background image(3×3 grid) and table 3 x 3 with ImageViews, after clicking on some position we load image(circle or cross) in our table.
Ques...
Hi, Using Eclipse on win XP. I've previously created an app or 2, but am now working on the 'real' version and get the above error.
I was having funnies creating a 1.5 version, so have started a new project for 2.1.
package xxx.guest;
import android.R;
import android.app.Activity;
import android.content.Context;
import android.graphic...
Hello, i am trying to get the text input/values from an EditText widget as its being typed. please anybody know how or which method i should use? can't seem to find one that will help. thanks for your consideration.
i tried this but not working:
Entry = (EditText)findViewById(R.id.typeEntryId);
viewEntry = (TextView)findVi...
Hi to all,
I am developing Android Web App using JSP with xml parsing. I developed it in Java using Tomcat Server but I couldn't develop in Android. I am new to the web app development. So can anyone kindly suggest me how to proceed further...
waiting for a response guys...Thank you
...
How we can convert apk file to jar file in android?
...
I need to place built-in zoom controls of MapView into position different from the default position.
While it's easy to do using getZoomControls() method, this method is deprecated in recent API versions.
Does anyone has idea how to do this without calling getZoomControls()?
...
Hi!
I have a big question. There are an application, which contain the following method:
socket(AF_INET, SOCK_STREAM, 0);
The socket return 29 and I don't see the port in the terminal (netstat).
I use this method in Android-ndk and I use the INTERNET permission in the Android Manifest file.
What is the problem in the method?
Thanks
...
If I change one imageview's source to another (and thus changing the image) but then have more changes occur within the method and such. How do I force it to refresh to show the changes before the method ends? (As waiting for the method to end to show the changed images is not good for my purposes at all)
...
Is there a way to access and alter the settings of the standard Android browser programmatically?
...
If I set a radio button to be selected on the first time, it works fine. But if I unselect it by calling
((RadioButton) findViewById(R.id.ID)).setChecked(false);
then, later even if I try to make it selected by calling setChecked(true) will not work unless the user select it from the screen.
Have any one come across this? or is it...
I need to add 'balloon'- like markers to my map view. The difficult thing here - these markers include a variable-length text labels so these balloons have variable sizes. Actually this is exactly what implemented in native google-maps application to show labels.
Any idea what is optimal way to do this?
...
I tried
btn.click();
And the error message is 'Cannot call property click in object ti.modules.titanium.ui.ButtonProxy@44f61. It is not a function, it is "object"'
...
Hi!
I'm trying to access this list of public twitts here,
from an android application through a HttpClient:
http://api.twitter.com/1/statuses/public_timeline.json
I keep getting an Exception when connecting:
java.net.UnknownHostException: api.twitter.com
Why is this happening?
How can I fix this?
Thank you
...
Hello,
I am trying to design an activity in Android which consist in a ListView with a button to add items to the List.
When the button is clicked, it opens a chain of Dialogs to configure the new item (each Dialog configures one attribute of the item Object). When the last Dialog is validated, the item is added to the list.
I was thin...
I'm in the middle of implementing themes for my application right now, and everything's been going really smooth until as of late. I've been using the android:background="?thin_border" tag to provide a background for linearlayouts with items that I want visually grouped together. The problem I'm running into is when I try to use this tag...
I have a simple, classic, statement that every 200 milliseconds plays a sound (a metronome).
I wrote it using Handlers, and then in another way, using Threads.
The problem is the same in both ways: when I press hardware home button, or also simply when I press a button to open a ListView, the metronome terribly slowdown for a while.
T...