Hi I am new to android.From android i can send data to another port.But i am not able to receive the data using udp in android.How to receive data by using udp in android emulator?
can anyone help me to receive the udp data in android?
Code is here
DatagramSocket clientsocket=new DatagramSocket(4900);
byte[] receivedata=new byte[1024];...
I have this query which does work fine in MySQL
SELECT ((ACOS(SIN(12.345 * PI() / 180) * SIN(lat * PI() / 180) +
COS(12.345 * PI() / 180) * COS(lat * PI() / 180) * COS((67.89 - lon) *
PI() / 180)) * 180 / PI()) * 60 * 1.1515 * 1.609344) AS distance, poi.*
FROM poi
WHERE lang='eng'
HAVING distance<='30'
distance is...
hello
apparently in my country it's not in the companies best intrest to disconnect you from thier cellular connection (so they could charge for more)
i have read about how to in http://developer.android.com/reference/android/provider/Settings.System.html
where there was an overhead of infomation
i already built some apps but it seems ...
The application is vb.net front end and sql server express backend. The networks are always cabled LANs.
Installations are small with only a few users, none of whom would have any technical knowledge.
Very little technical support is ever called for and I'd like to keep it that way.
I don't know Java or Objective C or HTML/CSS/Javascrip...
I've got a problem with the basic HelloWorld program. I didn't change the basic program. But, when I want to open any *.xml in the folder "values" (in "res") an exception appears :
An error has occurred. See error log for more details.
java.lang.NullPointerException
and here is the exception stack trace:
java.lang.NullPointerException...
Hello,
I would like to ask if i can use Asymmetric Crypto (like RSA or ECC) on android mobile phones, how, and what are the best libraries i should use.
...
I want for an event to fire every hour (at 5:00, 6:00, 7:00, etc...).
I tried with a persistent background service with a thread but it wasn't the right solution because of:
battery consumption
service termination, due to android memory management
So I'm trying with AlarmManager. It works if I set an alarm to fire in X seconds (using...
I downloaded the Android SDK and the Eclipse Plugin and installed them. When I however use the "Open Declaration" in Eclipse on basic Android functions and classes such as setOnClickListener or ListActivity it gives me an "Source not found"-Error.
The total Android source code seems to be 2.1 GB. Where do I get the source code of those ...
Is there any way to determine programmatically the time at which an Android application was installed? I don't see anything in PackageInfo, etc.
--EDIT--
To clarify, App A is installed at Time X. At some later time, Time Y, App B is installed. Is there any way App B can know when App A was installed? The link http://stackoverflow.com/qu...
When I have a ListActivity and an Adapter how does Android handle a list with 200 elements.
Does it try to load all of them directly how does it wait till the user scrolls and then renders those elements?
Do I have to worry with performance when a list is too long?
...
Hey,
I have a HTC Desire which i would like to debug and run my Android application on. But when i in Eclipse gets the Window where i can choose between devices my HTC Desire is listed with only questionmarks (????????). What am i doing wrong?
I have tried this:
Enabled USB Debugging on my device and enabled debugging in my applicatio...
Iam using Microsoft Windows 7 Home basic with 3 Gb Ram and 320 GB HDD. i want to install Android SDK. Is my configuration suitable for installation....Wat care i have to take while installation....
...
I want to use the SQLite clause LIMIT and OFFSET, so that I can fetch my records in pages.
But, though I can find the LIMIT clause in the SQLiteQueryBuilder.query() which would effectively limit the number of record in my result.
Couldn't find the OFFSET clause anywhere so that I can continue fetching from the point I left.
Also, can so...
Hi All,
I have followed this Thread . But using that, I'm not able to delete current receiving SMS. If I'm delete ALL message in in box. But currently receiving (BroadcastReceiver invoking SMS) not able to delete.
Is there any way to delete that message also.
Thank You,
Chandana
...
I add to system a lot of POIs via addProximityAlert.
When I have got the alert, I don't know for which setting has occurred.
The only Extra that is passes is the 'entering' flag as it is described in the documentation.
How can I know that?
After the answers here is the working code:
Intent intent = new Intent(this, PlacesProximityHan...
This questions somehow relates to the question when I was looking to get the extras back in startActivityForResult but now I face another challenge.
I have subscribed to receive ProximityAlerts and I have explicitly constructed the Intent to include some Extras. But when I got the service the extras are not there.
After the answers her...
Alice has to answer three questions. After she answered the questions she gets a dialog that lists the question and answers and there's a button to save the answers to a database.
At the moment I think that the design should be three classes: Master, Question, Summary.
Master calls Question with an intent that includes the question tex...
What is the easiest to time execution in Android?
I have looked around a bit and I found TimingLogger on the Android SDK,
and instructions here. It looks very convenient.
But I can't get it work. This is my code:
TimingLogger timings = new TimingLogger("TopicLogTag", "Parsing html");
My code to time here...
timings.dumpToLog();
It...
Hello.
I am writing an application which writes contacts in the SIM card of an Android phone. I am stuck at the point where the phone number is added: an exception occurs with no apparent reason.
Here is a snippet of code.
import android.app.Activity;
import android.content.ContentResolver;
import android.content.ContentUris;
import an...
I am wondering if the Location.distanceTo method will use the accuracy field of the Location object when approximates the location, or do I have to add by my own the errors to these fields. The usage is to compare the distance against a proximity value.
Float dist=currentLocation.distanceTo(loc2);
Would this be
if (dist<100meters)
...