I am writing an app that requires the user's current location (lastknownlocation won't be very helpful) and displays a list of all the closest "items" to them taken from the database.
I have got the finding of the closest items working well but only using a hardcoded latitude and longitude location for the time being but now it is time ...
hi all, this is my first post..
so I'm learning Android & Java (coming from Actionscript), and I'm working on a project where :
I'm trying to click an ImageView, have that ImageView swap images for a second, then return to the original image. ( this is for a tapping game )
sounds easy enough, right? I've spent the whole day try...
I have been reading much from various sources on ways to update a widget that is using ImageView Canvas and Draw method to display a clock with a seconds hand.
It must be updated every second. What is the most efficient way to do this? Use a Service, the Alarm Manager, Handlers?
It can be done, e.g., the Android app "Arc Clock Widget"....
I want to program a function that the toast exist when there is nothing
in the "edittext" box (id / password), but it dosen't work.
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.content.Intent;
import android.widget.EditText;
import android.widget.Toast; ...
I have a simple appWidget that displays an image. The image is selected in the configuration activity and the widget is updated via the remove view. This is done on a button push executing the code below:
Intent intent = new Intent(context, KidDialog.class);
intent.setData(selectedImage);
PendingIntent pendingIntent = PendingIntent.g...
I'm trying to build a conversation list for SMS messages. Therefore I'm reading "content://sms/conversations" and read the first few messages of each conversation to find the communication partners' phone numbers. With these numbers I try to retrieve the contact_id from ContactsContract.CommonDataKinds.Phone to fetch the rest of the pe...
Hello,friends:
I want to implement my own Tokenizer base on the file
"MultiAutoCompleteTextView.java",
but I encounter an error "com.android.internal.R cannot be resolved" when I try to
import "MultiAutoCompleteTextView.java" to my project.
code:
public class MultiAutoCompleteTextView extends AutoCompleteTextView {
private Token...
The integers pass successfully but string is failed. What's the problem?
Result:
http://img580.imageshack.us/img580/2079/app2v.jpg
...
Hi,
I am developing on Windows machine.
I was working quite well until yesterday, when I saw the the update prompt and updated my ADT plugin.
Today when I tried debugging my test project, I experienced either one the following cases:
1) Logcat stops forever on the message "sending wait chunk".
The console reads:
[2010-08-15 19:05:...
Hi All.
Background; I am in the process of writing an Android messaging application that needs to know the current user's phone number. This is then used to connect to other users using the application.
My application relies on looking up the user's number from Android's Settings -> About Phone -> Phone identity -> Phone number (this c...
Hopefully this is a simple one as I've been asking loads recently...
I am trying to draw the a white circle with the following code:
mPaint.setColor(0xFFFFFFFF);
canvas.drawCircle(x, y, radius, mPaint);
but it is being displayed as a solid disk, how do I get it to just display as an circular outline with a transparent centre?
I've h...
I'm trying to create custom attributes to my button but I dont know which format I must use to images in attributes declaration...
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="TCButton">
<attr name="Text" format="string"/>
<attr name="BackgroundImage" format="android:drawable" />
...
I have a question i have created sdcard image file using mksdcard 100M sdcard.img and tried alot of tutorials on net to start the emulator with the sdcard . However none is working, I have tried to start the project and add in run configration additional emulator command line options but the sdcard not appearing in the DDMS !! I have tir...
Hi,
I am adding ksoap2-j2se-full-2.1.2.jar as external jar into Android project & accessing the SOAP API to access .NET webservices from Android application.
The size of the ksoap2-j2se-full-2.1.2.jar is 96 KB & so I dont want to increase the size of the Android application by using the external jar.
Kindly provide an alternate option ...
How can I convert a String to a Uri in Java (Android)? i.e.:
String myUrl = "http://stackoverflow.com";
myUri = ???;
...
I can't find the source code for the Android Development Tools Plugin for Eclipse. It seems to have been moved a few times, and when I google the question, the answers point to the wrong places. Also http://source.android.com/discuss seems to be down.
...
Hi,
Kindly provide me the code/steps for Android application which will provide the Video Streaming & Video playing functionalities by accesssing the Videos from various video websites available on Internet.
Warm Regards,
Chiranjib
...
I have an application that execute a specific task when a file is clicked or an HTTP links is shared to it. I only want to execute the task once, unless the user himself re-execute the task.
To be sure, I monitor the flag: FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY. If its set I ignore the task, if not, I execute it.
The problem is that som...
Hi,
I want to show the softkeyboard, but it does not work.
Here is my code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
myTextView myTextView = new myTextView(this);
setContentView(myTextView);
}
public class myTextView extends EditText{
public boolean onTouchEvent(){
if(...
With Oracle suing Google over Dalvik's patent infringements, I'm wanting to get off the Java bus I've been on for 10+ years. I really enjoy coding in Java, love the tools (eclipse, profilers, etc...), cross platform, garbage collection, etc... What is the best alternative out there? I'd like to build cool gui's, mobile apps, web apps,...