[android-developers] Re: How do you display many points on a map?

2009-06-29 Thread Delta Foxtrot
2009/6/29 guinyard guinyardli...@yahoo.com


 I understand the notion of overlays and all, but what if I want to
 display thousands of points on a map?  The map becomes unresponsive
 after a few hundred OverlayItems are added.  What's the best approach
 for doing this?


If they are passive points, that don't accept user input you should be able
to draw an image.

If they are active points that do accept user input then you need to work
out what is seen on screen and what isn't and limit the number of points
shown in general

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Dev Phone 1 in New Zealand

2009-06-29 Thread Delta Foxtrot
2009/6/28 Ram Vijapurapu r...@fieldlinx.com


 Hi Guys,

 I am wondering how I can get the Android Dev Phone 1 in New Zealand?

 I tried purchasing from the market place, but it doesn't have New
 Zealand listed.

 Could you please help.


Ask a friend in the US, or any other country for that matter, if they'll
forward it to you. Otherwise complain to Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to draw tracks on gmaps in apps

2009-06-27 Thread Delta Foxtrot
I've been struggling to efficently draw tracks over the top of maps embedded
in my app.

I've been redrawing the track with the ondraw method however as the number
of points the app and eventually the phone crawls to a halt and I get a
bunch of force close/wait messages as a result.

I've been toying with the idea to some how draw the track on a bitmap or
canvas and every time GPS updates, update the canvas/bitmap and display it
as an overlay but I don't really know how I would or should go about this.

Does anyone have any tips on doing this?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: httpclient multipart form upload

2009-06-26 Thread Delta Foxtrot
2009/6/26 gard gard.honnin...@gmail.com


 I got my jars from:

 http://hc.apache.org/downloads.cgi

 The dependencies are included in the Binary with dependencies
 download.

 regards,

 gard

 On 10 Jun, 10:08, Urs Grob grob@gmail.com wrote:
  Yes, I also couldn't find the jars for httpmime. I just created a jar
 from
  the sources and included that in the project.
 
  If anybody knows of some official jar, then I'd also like to know where I
  could get it (also to stay up to date)


It's not hard to make your own code for this and it saves quite a bit of
space by not including those jar files.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Firmware in ADP1?

2009-06-26 Thread Delta Foxtrot
2009/6/27 Disconnect dc.disconn...@gmail.com


 No adp1 firmware does any auto-update. Thats why the images are
 available for dl at htc.com.

 (Its embarrassing to change a development platform unexpectedly. Or
 wipe out system/framework changes..)


I know personally that the xmas build update that was put out in feb? Asked
if I wanted to auto update because I initially declined it until I could get
wifi access.

Also I believe the JF rebuilds make use of the same auto update mechanism to
update to his own builds.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: httpclient multipart form upload

2009-06-26 Thread Delta Foxtrot
As I said, multipart uploads aren't hard to do your own function for.

private void UploadFile(String FileName)
{
try
{
String lineEnd = \r\n;
String twoHyphens = --;
String boundary =  *MyMultiPartBoundary;

File sdcard = Environment.getExternalStorageDirectory();
File mydir = new File(sdcard, MyFileDir);
File file = new File(mydir, FileName);

FileInputStream fileInputStream = new FileInputStream(file);

String UPLOADSCRIPT_URL = 
http://www.example.com/upload.php?username=examplepassword=example;;
System.out.println(Opening: +UPLOADSCRIPT_URL);
URL url = new URL(UPLOADSCRIPT_URL);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();

conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);

conn.setRequestMethod(POST);
conn.setRequestProperty(User-Agent,
MyExampleApp/+appversion);
conn.setRequestProperty(Content-Type,
multipart/form-data;boundary=+boundary);
conn.connect();
DataOutputStream dos = new
DataOutputStream(conn.getOutputStream());
dos.writeBytes(twoHyphens + boundary + lineEnd);
dos.writeBytes(Content-Disposition: form-data;
name=\uploadedfile\;filename=\+
FileName+\ + lineEnd);
dos.writeBytes(lineEnd);

int bytesAvailable;

while((bytesAvailable = fileInputStream.available())  0)
{
int bufferSize = Math.min(bytesAvailable, 4096);
byte[] buffer = new byte[bufferSize];
int bytesRead = fileInputStream.read(buffer, 0,
bufferSize);
dos.write(buffer, 0, bytesRead);
}

dos.writeBytes(twoHyphens + boundary + twoHyphens +
lineEnd);
fileInputStream.close();
dos.flush();
dos.close();
DataInputStream dis = new
DataInputStream(conn.getInputStream());
byte[] data = new byte[1024];
len = dis.read(data, 0, 1024);
dis.close();
int respcode = conn.getResponseCode();
System.out.println(done uploading! resp code = +respcode);
String respstr = FAILED;
if(len  0)
respstr = new String(data, 0, len);

if(respcode == 200  respstr.equals(OK))
System.out.println(Uploaded +FileName+ successfully!);
else
System.out.println(Upload Error: respcode=+respcode+,
respstr=+respstr);
} catch (Exception e) {
System.out.println(upload error: +e.toString());
}
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Keeping an application running in the background

2009-06-26 Thread Delta Foxtrot
2009/6/27 Dennis dmun...@gmail.com


 Yet another question -- we have an application that connects to a
 device and therefore needs to keep running in the background even when
 there are no Activities active.  What is the recommended way to
 indicate that our application is still active and for it not to be
 killed automatically?



You extend Service instead of Activity, services have no UI and run in the
background. They can interact with activities.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to add Google Maps library, Maps to the Android 1.5 version device?

2009-06-26 Thread Delta Foxtrot
2009/6/26 Elvis elvisdai...@gmail.com


 Hi all

 I've pushed 3 files to the required path, but Maps is still invisible.

 Anyone has idea what's going on with this?

 ps. I'm using android sdk 1.5r2


You do realise you need 2 maps API keys?

One for the key you sign and upload apps to Android Market, and another if
you want to use it against the automatically generated key that is used if
you run an app from eclipse etc?

Although I've been meaning to copy the production key over the top of the
dev key so I only need to worry about one maps API key and it will work
regardless of how I launch the app with maps embedded in it.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Firmware in ADP1?

2009-06-26 Thread Delta Foxtrot
2009/6/27 Disconnect dc.disconn...@gmail.com


 Thats not an adp build. (You should read the actual release
 announcements:
 http://andblogs.net/2009/02/new-adp1-update-official-with-google-voice-and-more/
 note the updates, they are important)


That's either a rebuild of the holiday image put out by google or a mirrored
copy of the image put out by google, I'm trying to find the original URL the
update was downloaded from my phone.

Found it...

http://www.mailinglistarchive.com/android-developers@googlegroups.com/msg05910.html

https://android.clients.google.com/updates/signed-holiday_devphone-ota-130444-debug.55489994.zip

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is a five-way navigation key a mandatory requirement?

2009-06-25 Thread Delta Foxtrot
2009/6/25 JC jameschen...@gmail.com

 Actually I meant if there is no five-navigation key or trackball, only
 reserve 5 app keys, any potential risk or problem may have? thank you
 for answering.


Are you talking about making everything touch screen by any chance?

If so you'd need to do a lot of coding to work round the current physical
requirements.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Accelerometer

2009-06-25 Thread Delta Foxtrot
2009/6/26 kalyan simhan kalyansim...@gmail.com

 there seems to be some problem with my accelerometer...
 the values of x,y,z fluctuate even when it is stationary.. kept
 in one place... why is this.. how can i overcome it..
 what is the unit of the value im getting.. im guessing 1 unit = 1g


9.8m/s^2 is an approximation, however the accelerometer is being influenced
by forces and noise, the only way to over come it would be to sample the
noise and then try to cancel it out.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Delta Foxtrot
2009/6/24 FrantiĊĦek Fuka f...@fuxoft.cz


 Hello,

 my friend has got himself Android Developer Phone 1. But he is not
 developer, he just wants to use it as a normal phone and he doesn't
 want any hassle with firmware updating (and he's not interested in
 root access etc.). If I flash the official U.S. G1 firmware into his
 phone, will he then receive normal OTA firmware upgrades, or will his
 phone still report as ADP1 and will he have to update manually?


You don't need the t-mobile firmware for auto-updates, the ADP firmware
upgrades itself when updates are put out too.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Delta Foxtrot
2009/6/24 Frantisek Fuka f...@fuxoft.cz


 Really? But he still has firmware 1.0 and no offer to upgrade.


Sorry, the 1.1 firmware included the auto-update feature, if you upgrade to
1.1 or 1.5 it will upgrade automatically in future.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Delta Foxtrot
2009/6/24 Frantisek Fuka f...@fuxoft.cz

 OK. Since that means I'll have to do manual upgrade after all, there
 is a question of differences between ADP1, EU and US firmware. I heard
 Latitude is not present in all of them, as well as ICQ client... Is
 there some sort of comparison chart available?


Considering the latest gmaps app is on Android Market and can be downloaded
to any phone, Latitude is a non issue in your decision.

As for the ICQ client, if you mean from the T-Mobile firmware, it uses
SMS/Messaging credit, you'd be better off looking at some third party app
like Meebo which only uses data...

http://www.meebo.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Delta Foxtrot
There is a whole bunch of things you can do with root access on the phone
you can do otherwise, like tethering over wifi and blocking ads by altering
the hosts file or using AdFree

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is a five-way navigation key a mandatory requirement?

2009-06-24 Thread Delta Foxtrot
2009/6/25 JC jameschen...@gmail.com


 Dear sir,

 Any potential risk or problem may have if I remove five-navigation
 key?
 My understanding is some games might need five-navigation key, what
 else applications may be affected? thanks.


The G1/HTC Dream and other HTC phones use a trackball that is clickable
instead.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Use own map layer in Google Maps

2009-06-23 Thread Delta Foxtrot
Look at the osmdroid code, they use tiles from OpenStreetMap.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Calibration with the environment may improve the readings ?!

2009-06-23 Thread Delta Foxtrot
2009/6/23 Gryyphyn gryyp...@gmail.com


 I haven't looked through the source for the compass but there has to
 be a set() method that you can apply a positive or negative value to,
 possibly on tha app level. The compass is accurate enough so all you
 would really have to do is assign a set() method to a menu calibration
 option to allow the user to align with a standard compass and set the
 value that modifies the OSD compass alignment, similar to the bubble
 app and its calibration with the accelerometers. Just a thought...


The callibration for the accelerometers isn't to calibrate the sensors, but
to figure out which way the phone is pointing and then use that information
along with some fancy maths to display correctly.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Orientation Sensor problems.

2009-06-22 Thread Delta Foxtrot
2009/6/22 JimmyHoffa photos.d...@googlemail.com

 When I run the app',  my heading values are always being reported as
 being between 250 - 270 and don't alter from that irrelevant of which
 way I'm pointing the device.


Check the sensor accuracy, if it's off you need to do figure 8's in the air
to get it to automatically recalibrate itself.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Permissions for Android Dev Phone 1

2009-06-21 Thread Delta Foxtrot
2009/6/20 Andrew andrewr...@gmail.com

 As far as I know the ADP and the retail G1/G2/... behave the same way
 if there is anything in the manifest which is a security risk or else
 the application will just install without any questions.


Even if an app doesn't ask for any permissions a dialog box is still show
regardlessly and the user has to hit ok.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application (.apk) Size

2009-06-21 Thread Delta Foxtrot
2009/6/20 Streets Of Boston flyingdutc...@gmail.com

 It wil be smaller than the heap size limit per apps
 Not true. :=)
 I could imagine creating an app of 50MBytes. 2MBytes worth of code and
 48MBytes worth of resources (images/assets/etc.). And if these
 resources are not loaded all at once, it should work.

 Of course, who would download such a big app to his/her phone..?


Given the right circumstance it's easy for some games to exceed that kind of
limit with graphics and additional media files, it's just stupid to think in
2008/2009 that limiting a phone to 64M of space for apps and it's resources
would be acceptable and almost no one would exceed those limitation,
although even the amount of ram that comes with the G1 is what I'd consider
to be on the low side of acceptance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: new dev device

2009-06-21 Thread Delta Foxtrot
2009/6/20 Andrei gml...@gmail.com


 When can we expect new unlocked dev device for developers? Anybody?
 May be Magic


The Roger's magic can be rooted and unlocked etc :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is running applications from shell disabled?

2009-06-21 Thread Delta Foxtrot
2009/6/20 Lewis Z. lzh...@gmail.com


 Yes, I did.


Make sure you aren't trying to run it on a partition that is flagged not to
execute.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: lock data usage to email

2009-06-21 Thread Delta Foxtrot
2009/6/20 canistel canis...@gmail.com


 Is it possible to lock down the phone so that the only data usage is
 email? I don't even mind if the email has to be manually send /
 received; due to the small amount of data I have on my plan, I just
 don't ever want to use edge / 3g for anything other then email data.
 Once I'm on wifi then other data is fine.


If you have root access to your device you can install iptables to block all
access to all apps except the app you want to access data via specific
interfaces

There is a number of ways the logic could go here, but iptables is your best
bet to be honest.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: A simple application which sends location to server.

2009-06-21 Thread Delta Foxtrot
2009/6/21 c6bro ch...@upload.co.uk

 Website URL field: e.g http://www..co.uk/logtracking.php
 Frequency field:e.g  6 (Seconds)
 Start/Stop button


Any particular reason for 6s intervals?


 The app will be able to be closed and run in the background until you
 click the stop button.


You most likely don't want to use an activity for the GPS/upload side of
things, you would make an activity that started and stopped a service.


 If the internet is down it would take a log and send them one up
 again.. 


The easiest way I've found to do this, is you just have a ListArray of a
custom object, the object just stores the values you need, and then you can
push new values onto the end of the ListArray and pop them off as they are
accepted for upload. Also do batch uploads instead of one value at a time,
it can be very time consuming uploading one value at a time and waiing for a
response from the remote end.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to develop a tiny background application with no UI

2009-06-21 Thread Delta Foxtrot
2009/6/21 GAYET Thierry thierry_ga...@yahoo.fr

 Hi, i am asking about the development of an Android application that must
 work in backgroup (so no user interface).

 Usually my application extend to the activity class that manage all the
 application process.


You don't want to use Activity, you want to make a service.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is Android complaint with VCARD 2.1 specification ?

2009-06-18 Thread Delta Foxtrot
2009/6/18 Kasmoori Bindu bindukasmo...@gmail.com

 Does anyone has info whether Android is complaint with VCARD 2.1
 specification ?
 I could not see,  fields like DOB (Date Of Birth , location etc.,) in
 Contacts Application as well Contact Provider.



The DOB would get stored in the calendar as a reoccurring event. Dunno about
location, but in the regular contact section it allows you to store
addresses.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is running applications from shell disabled?

2009-06-18 Thread Delta Foxtrot
2009/6/19 Lewis Z. lzh...@gmail.com

 I wrote a simple hello c program. I pushed the program to either
 Android Emulator or a device. When I run it, however, I got ./hello:
 not found message. I ls-ed it and it's right there. Is this purposely
 disabled?


Did you chmod 755 hello ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android market merchant accounts not available in europe

2009-06-18 Thread Delta Foxtrot
2009/6/19 zero_star gkas...@gmail.com

 Merchant accounts is limited to only a handful of countries at the
 moment. That means that no one else in the world can sell their apps
 until Google decides to push things forward.

 I made the mistake to upload the free Lite version of our app on the
 market, and now users are asking when the full (paid) version will be
 available. I was wondering, what do you developers do in the case
 where google checkout is not available  in your country? are there any
 alternatives to sell your apps? i  believe I 'm not the only one who
 has this question.


Use paypal and email the apps to the users...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get current time?

2009-06-17 Thread Delta Foxtrot
2009/6/18 Mark Murphy mmur...@commonsware.com

 Hrm. I assume the NTP API isn't somewhere that Java code can access, which
 means we're back to using an existing Java NTP/SNTP client library if we
 want an accurate time regardless of whether we are on a network that is
 NITZ capable.


Why install a NTP daemon if it isn't used to keep accurate time in the
system?

Also you don't need NTP for GPS, in fact you can pull the timestamps from
GPS if you want.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Alarms (AlarmManager) cleared on reboot :/

2009-06-17 Thread Delta Foxtrot
2009/6/18 Dianne Hackborn hack...@android.com

 Yes, you need to use a boot receiver.  The reason for this is that any
 arbitrary number of things could have changed since the last run (time, apps
 installed, etc) so it is safest to have apps re-evaluate and request their
 alarms after a fresh boot.


The same could be said for linux systems in general, yet cron is almost
invaluable in day to day use of a system because it can provide consistency
etc to trigger apps at certain times. People don't seem to really want the
alarm system as is, they want something closer to cron. The system as is, is
convulted and you need to re-run an app on boot just to see if it wants the
same alarm triggers...

How insane is that?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Able to use T-Mobile G1 without contract for application testing?

2009-06-16 Thread Delta Foxtrot
2009/6/16 Edward Falk ed.f...@gmail.com


 IMHO, you do not want a dev phone if you can avoid it.  They let you
 install your own os on the phone, but most developers don't need to
 install their own os.  Dev phones can't download applications that are
 protected by drm.


You can still have root on a phone and access those apps by installing one
of the hacked firmware which makes the drm so pointless and Google should
have actually made something serious instead of security through obscurity.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Browser Porting for Android

2009-06-16 Thread Delta Foxtrot
2009/6/16 Chitra chitra...@yahoo.co.in


 Hi Fred,

 Thank you very much for your reply.
 Could you please provide information on this. how to start with? Any
 information would be of great help to me.


The current browser on Android is  opensource as is the under lying
rendering engine, what exactly are you trying to achieve here?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 1.5 SDK, Release 2 -- TelephonyManager

2009-06-16 Thread Delta Foxtrot
2009/6/17 Ne0 liamjamesalf...@googlemail.com

 I have yet to test my code on an actual phone, though there is one
 thing you may be clear up for me, its been many years since i have
 used java, you are using ArrayList, though the documentation
 describes getNeighboringCellInfo() as returning a List, are these
 the same thing? If not it may be an error in your code, mine works on
 the emulator using List though it returns NULL.


I've run it on a device but no network to test against until the weekend,
but I just upgraded to SDK 1.5rc2 and it seems to work fine.

 uses-permission
  android:name=android.permission.ACCESS_COARSE_LOCATION /


According to documentation, and my testing, you only need this permission to
access the function you're after.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 1.5 SDK, Release 2 -- TelephonyManager

2009-06-16 Thread Delta Foxtrot
Oh and I used this code, rather than the once off code to get it to show an
update once a second...

public class TelephonyTest extends Activity
{
private static String TAG = TelephonyTest;
private static TelephonyManager mTelephonyManager;
private Thread t = null;

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mTelephonyManager =
(TelephonyManager)getSystemService(TelephonyTest.TELEPHONY_SERVICE);

t = new Thread(new Runnable()
{
public void run()
{
try
{
while(true)
{
doLog();
Thread.sleep(1000);
}
} catch (Exception e) {}
}
});
t.start();
}

private void doLog()
{
ArrayListNeighboringCellInfo mNeighboringCellInfo;
mNeighboringCellInfo = new ArrayListNeighboringCellInfo();
mNeighboringCellInfo =
(ArrayListNeighboringCellInfo)mTelephonyManager.getNeighboringCellInfo();
if(mNeighboringCellInfo.size() == 0)
Log.i(TAG, No Neighboring Cells detected.);
for(int i = 0; i  mNeighboringCellInfo.size(); ++i)
{
Log.i(TAG,mNeighboringCellInfo.get(i) - +
mNeighboringCellInfo.get(i).toString());
}
}
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Able to use T-Mobile G1 without contract for application testing?

2009-06-16 Thread Delta Foxtrot
2009/6/16 dindin dinesh.nadara...@gmail.com


 I don't have T-Mobile but ATT. I want to get an unlocked Android
 Phone (thinking of the new Samsung i7500 or the G2). Can I use that as
 a development device to test my applications? Will it even work on
 another GSM carrier?


Running apps on Android doesn't depend on carriers, unless you want to test
data networking, in any case I'd get something other than the HTC Dream/G1
for ATT if you want data cause ATT EDGE is so slow it's not funny... The
HTC Magic supposedly does 900Mhz which I think ATT runs 3G over... so will
the i7500 and no doubt countless other devices once they start shipping...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PORTING BROWSER ON ANDROID

2009-06-16 Thread Delta Foxtrot
2009/6/16 Vincent runfut...@gmail.com


 What about write a native-c web browser? rending on framebuffer ..?
 I just say say.. :)


Almost no one would be able to use it except those that have root?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Calibration with the environment may improve the readings ?!

2009-06-16 Thread Delta Foxtrot
2009/6/17 flegare fleg...@gmail.com


 I auto answer myself and the poor soul who fall on this post, so far
 the only way to calibrate is by making big 8-like gesture with the
 phone. Try it it worked for me.


Yes, the digital compass in the G1 is self calibrating, but you have to make
figure 8's or similar to make it do it, this isn't something you can do in
software, the Android OS has magnetic field projections for the earth and if
the current reading falls outside a specific range either something is
artificially influencing it, such as the magnetic field in metals or
electromagnetic fields caused by electronics and cars etc, or it needs
calibration.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Determine first run

2009-06-16 Thread Delta Foxtrot
2009/6/17 aby orz0...@gmail.com


 Hi,
 How to distinguish Android is first run or not after booting device?


Set a simple preference variable, if it's not set it hasn't run...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application Resources on SDCARD on install!! MUST HAVE, GOOGLE DO SOMETHING!!

2009-06-15 Thread Delta Foxtrot
2009/6/15 Tjerk Wolterink tje...@gmail.com

 Apps on the sdcard is not the solution. What i want is only the resources
 of the app on the sdcard.

 I added a comment to the issue:
 

 This is a no-go solution. If apps are installed on the sdcard they can be 
 copied and
 this opens the door for piracy and makes the android market less attractive 
 for
 developers. Resulting in fewer apps that are developed for the android 
 platform.

 However.. it would be a good thing to save parts of the application on the 
 sdcard.
 For example the /res directory could be saved on the sdcard.

 Another possibility is the have a separate partition on the sdcard that can 
 only be
 read by the android system. It will not show up in your computer.

 I really need more room for my app: it gets bigger and bigger. However i 
 donnot want
 userse to have the option to install it on the sdcard.

 


And I replied with

google needs to come up with a real solution locking sold apps to userid's
instead of the half-assed solution they came up with that anyone with
half a brain
can get round already

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Execute exe in android

2009-06-15 Thread Delta Foxtrot
2009/6/15 Mark Murphy mmur...@commonsware.com

 .EXE files are Windows applications, and as such generally only run in
 Windows. While there are Windows emulators (e.g., WINE), I am not aware of
 any attempts to port WINE to run on Android, and I suspect that would
 be...difficult.


Difficult and pointless, even linux apps not designed for small screens tend
to work very poorly on netbooks so why would you want to do something even
worst is beyond me...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Change sdcard permission

2009-06-13 Thread Delta Foxtrot
2009/6/13 N V nithi...@gmail.com

 Can any help me that, How can i change the file
 permission that is present in the SDCARD... Normally when i insert a
 file to SDCARD, file has read and write permission, I want to change
 the permission that is read
 write and execute.. Is it possible to change the permission?


Most sdcards are formatted to be fat32 and fat32 doesn't support linux
permission system, you can get round this by prefixing the command with sh.

eg

/bin/sh /sdcard/application

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get root access of my android phone

2009-06-13 Thread Delta Foxtrot
2009/6/13 Joe Petruchi petruchi.dr...@gmail.com

 Is there any way to get the root permission in G2 ?


If you are talking about the HTC Magic, no idea, but it isn't going to be
labelled the G2 when T-Mobile starts selling it, try looking about on the
XDA forum.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Change sdcard permission

2009-06-13 Thread Delta Foxtrot
2009/6/13 Nithin Varamballi nithi...@gmail.com

  Ya i agree with your point that sdcards are formatted to be fat32
 and fat32 doesn't support linux permission system, Suppose if i give
 in my application like this /bin/sh /sdcard/myapplication, what will
 i get,weather i can change the permission of my application or just it
 will show the file permission of the file..


You don't need to set files executable to launch them, you can launch them
indirectly via the sh binary.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Duplicate processes triggered from ongoing notification

2009-06-12 Thread Delta Foxtrot
I added a notification for an ongoing process, however when this is clicked
on it triggers a duplicate process and when you exit the duplicated process
the original copy is re-run by the operating system.

The app I'm working on doesn't use the main activity window, except to
trigger one of 2 other activities and this might be part of the problem
since I noticed the same issue in other applications like AndNav2.

My question is, how do I work round the issue to bring the running activity
to the front, rather than triggering a new activity, killing the first and
then the OS re-runs the first activity when the new one is quit?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ability to quit/disable an app after trial period?

2009-06-12 Thread Delta Foxtrot
2009/6/12 Androman amirs...@gmail.com


 With System.exit() you can exit android app even if it is not
 recommended still it can be very useful. Method onRestore() is called
 allways when your activity is about to be shown and here you do
 something...

 Connect your app with your server where you will record phones IMEI
 and application version... If user already had your app then disable
 it... There is probably better way to do this but have no time to
 think more..


Have a splash screen displayed while the check is occurring in the
background, if it passes load the real activity, if it fails just trigger a
call to finish();

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get root access of my android phone

2009-06-12 Thread Delta Foxtrot
2009/6/13 Lucius Fox lucius.fo...@gmail.com

 Can you please tell me how can I get root access of my android phone?


http://forum.xda-developers.com/showthread.php?t=442480

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---