Re: [android-developers] Re: A/libc: Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1), thread 25881 (WebViewCoreThre)

2016-11-04 Thread Raymond Rodgers
Taking a quick look at some of my more recent code, I actually use a 
combination of DefaultHttpClient and HttpGet. See:


https://developer.android.com/reference/org/apache/http/impl/client/DefaultHttpClient.html

https://developer.android.com/reference/org/apache/http/client/methods/HttpGet.html


This is an example to use a GET request to receive data, but that 
doesn't mean this is a perfect example:


byte[] data = null;
DefaultHttpClient client = new DefaultHttpClient();
HttpGet gReq = new HttpGet("http://www.whatever.url";);
gReq.setHeader("User-Agent", "My App");
try {
HttpResponse a = client.execute(gReq);
if (a.getStatusLine().getStatusCode() == 200) {
HttpEntity entity = a.getEntity();
long contentLength = entity.getContentLength();
BufferedInputStream bis = new BufferedInputStream(
entity.getContent());
ByteArrayOutputStream out = new ByteArrayOutputStream(
(int) contentLength);
long bytesReceived = 0;
int currentReceived = 0;
byte[] buf = new byte[1];

do {
currentReceived = bis.read(buf, 0, 1);
bytesReceived += currentReceived;
out.write(buf, 0, currentReceived);
} while (bytesReceived < contentLength);
data = out.toByteArray();
out.close();
out = null;
entity = null;
bis.close();
bis = null;
}
} catch (ClientProtocolException e) {
Debug.showStackTrace(e);
} catch (IOException e) {
Debug.showStackTrace(e);
}

At the end of this, you have a byte array in data that can be converted 
to a String and manipulated that way, or you can plug it into other 
objects and use it there. For example, if you convert it to a string, 
you can output the received data to android.util.Log so you can see it 
in your development environment or write it to a log file rather than 
building a WebView. If you use that code in a function, there's no 
reason you couldn't pass in a URL and call the same code as many times 
as you want or need, whereas I think WebView caches the results of 
requests, but I've never used it personally.


Hope that helps.

On 11/04/2016 04:14 AM, a2networks.t...@gmail.com wrote:
Could you give me a direction on how to use HTTP connection? I'm 
pretty new to Andoid programming


Op dinsdag 1 november 2016 16:27:20 UTC+1 schreef Raymond Rodgers:

I'm not familiar with the software you're using (on the server
side), but if the WebView is going to be invisible, why are you
using it? Does the triggering web page/API use some Javascript or
something to accomplish the task? If not, I would use a different
method. Forgive me, it's been a while since I've done any active
coding on Android, but I'm pretty sure there are HTTPConnection
classes or something to that effect that take a Url object (or
string) that can make the requests much more efficiently if all
you need to do is send and receive some data.


On 11/01/2016 08:36 AM, a2netwo...@gmail.com  wrote:

*KICK*

I need help

Op woensdag 26 oktober 2016 08:58:33 UTC+2 schreef
a2netwo...@gmail.com:

Hello,

I wrote an (really basic) application to control access for a
building. This application exists of multiple buttons (10 in
total).
Per door there are 2 buttons. One button acts as an pulse
buton. When clicking the pulse button a timer function will
be enabled and after 5 seconds the function will be disabled.
The other button enables or disables the function manualy
(without a timer).

When the function is enabled a URL request is send out to
load within a WebView. The URL that is requested is an URL
trigger for a webrelay which will trgger the door to unlock.
When the function is disabled a URL request is send out to
load within a WebView. The URL that is requested is an URL
trigger for a webrelay which will trgger the door to lock.
For testing the URL request i used URL's like:
http://www.cisco.com
http://www, nu.nl <http://nu.nl>

The URL's requested will appear in a Webview (which will be
invisible in the final version).
Each door has it's own door WebView.

So for short:
One door has:
2 buttons;
1 timer function;
1 WebView.

There are 5 doors in total.

Now the problem coms that after running this error will occure:
A/libc: Fatal signal 11 (SIGSEGV) at 0x001c (code=1),
  

Re: [android-developers] Re: A/libc: Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1), thread 25881 (WebViewCoreThre)

2016-11-01 Thread Raymond Rodgers
I'm not familiar with the software you're using (on the server side), 
but if the WebView is going to be invisible, why are you using it? Does 
the triggering web page/API use some Javascript or something to 
accomplish the task? If not, I would use a different method. Forgive me, 
it's been a while since I've done any active coding on Android, but I'm 
pretty sure there are HTTPConnection classes or something to that effect 
that take a Url object (or string) that can make the requests much more 
efficiently if all you need to do is send and receive some data.



On 11/01/2016 08:36 AM, a2networks.t...@gmail.com wrote:

*KICK*

I need help

Op woensdag 26 oktober 2016 08:58:33 UTC+2 schreef a2netwo...@gmail.com:

Hello,

I wrote an (really basic) application to control access for a
building. This application exists of multiple buttons (10 in total).
Per door there are 2 buttons. One button acts as an pulse buton.
When clicking the pulse button a timer function will be enabled
and after 5 seconds the function will be disabled.
The other button enables or disables the function manualy (without
a timer).

When the function is enabled a URL request is send out to load
within a WebView. The URL that is requested is an URL trigger for
a webrelay which will trgger the door to unlock.
When the function is disabled a URL request is send out to load
within a WebView. The URL that is requested is an URL trigger for
a webrelay which will trgger the door to lock.
For testing the URL request i used URL's like:
http://www.cisco.com
http://www, nu.nl 

The URL's requested will appear in a Webview (which will be
invisible in the final version).
Each door has it's own door WebView.

So for short:
One door has:
2 buttons;
1 timer function;
1 WebView.

There are 5 doors in total.

Now the problem coms that after running this error will occure:
A/libc: Fatal signal 11 (SIGSEGV) at 0x001c (code=1), thread
25881 (WebViewCoreThre)

After searching on the internet, i learned this could be a memory
issue.
But i don't have a clue to how address this, or what the problem
could be. I tried to eleminate the images that i used, but that
didn't work.

The application is develloped for Android 4.1 (Jellybean).

How can i resolve this problem ??

Regards.

Dennie

--
You received this message because you are subscribed to the Google 
Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to android-developers+unsubscr...@googlegroups.com 
.
To post to this group, send email to 
android-developers@googlegroups.com 
.

Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4a4616a3-fa73-4cd5-af80-d8c99baf6e97%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Android 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/cd7ccc32-61bb-3fc6-453b-30a2e72feb02%40raymondrodgers.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: HTTPS access to PlayStore is very very very bad idea!

2016-05-18 Thread Raymond Rodgers
t this group at
https://groups.google.com/group/android-developers.
To view this discussion on the web visit

https://groups.google.com/d/msgid/android-developers/573B7B24.3040003%40badlucksoft.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google 
Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to android-developers+unsubscr...@googlegroups.com 
<mailto:android-developers+unsubscr...@googlegroups.com>.
To post to this group, send email to 
android-developers@googlegroups.com 
<mailto:android-developers@googlegroups.com>.

Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAHxu9Eo2tQdQDc-VFVZVN%3DSmM9faW9%2BPSSMRnfmH_UV-JKQL8g%40mail.gmail.com 
<https://groups.google.com/d/msgid/android-developers/CAHxu9Eo2tQdQDc-VFVZVN%3DSmM9faW9%2BPSSMRnfmH_UV-JKQL8g%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
You received this message because you are subscribed to the Google Groups "Android 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/fc6ad07a-9989-f731-0c88-665206669494%40badlucksoft.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Alarm Intent not triggered

2014-04-23 Thread Raymond Rodgers
Is the alarm working while the screen is on, but it's failing when the 
screen is off? If so, you may need to implement a wakelock or partial 
wakelock for it to work properly.


On 04/19/2014 09:11 AM, Sunil.K wrote:
Tried all possibilities, but no SUCCESS.  Experts, please point my 
mistake I'm kind of stuck here :(


On Friday, 18 April 2014 18:16:30 UTC+5:30, Sunil.K wrote:

Hello,

I am developing an app related to alarm service and facing an
issue of Intent not being called.
I have registered for event in manifest file:

  


And have implemented EventTriggerManager class extended from
BroadcastReceiver:

public class EventTriggerManager extends BroadcastReceiver
{
  @Override
  public void onReceive(Context context, Intent intent)
  {
 System.out.println("Alarm raised");
 Toast.makeText(context, "Don't panik You have an alarm.",
Toast.LENGTH_LONG).show();
}
}

Adding an alarm from the Activity class:
Intent intent = new Intent(this,
EventTriggerManager.class);
 PendingIntent pendingIntent =
PendingIntent.getBroadcast(this.getApplicationContext(), 12345678,
intent, 0);
 AlarmManager alarmManager = (AlarmManager)
getSystemService(Context.ALARM_SERVICE);
 alarmManager.set(AlarmManager.RTC_WAKEUP, totalTime, pendingIntent);

But alarm is not getting triggered when totalTime is reached in
the system.

Note: totalTime is absolute time used.

Pls point my mistake why the expected output is not seen.

Regards,
   Sunil

--
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
---
You received this message because you are subscribed to the Google 
Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to android-developers+unsubscr...@googlegroups.com 
<mailto:android-developers+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
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
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] SSH Port 22

2013-09-03 Thread Raymond Rodgers

On 09/03/2013 02:47 PM, Alex Avance wrote:
I am working on a custom device running Android that needs to support 
ssh access. It would be best to run the ssh server on port 22. We have 
a working SSH implementation, but we can't run it on port 22 right 
now. Is there a way to do so using system level APIs, or will I need 
to get root/create my own something in the framework?


I'm not 100% sure this applies to Android, but onsome [or all] Linux 
distributions, applications trying to bind on ports below 1024 (or so) 
usually require elevated privileges, such as being run by root or one of 
the "system" users. It's possible that this is a requirement on Android 
as well, since it's based on Linux. As a test, try binding to a port 
above 1024 and see if it works.


--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
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
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Recover Certificate from APK

2013-07-22 Thread Raymond Rodgers

On 07/22/2013 12:08 AM, Ted Hopp wrote:

On Thursday, June 14, 2012 12:43:51 PM UTC-4, Dianne Hackborn wrote:

The platform has an app signed with a cert.  If you want to
install an update to that app under a different cert, how could
the platform trust that this is actually coming from the author
who owns the original cert without the new app also being signed
in some way with the original cert?  Note that we don't use
certificate authorities, so there is no root cert or such to go
back to, to try to verify some relationship between two certs.
 Because we use self-signing, you are ultimately the CA, and have
responsibility for the certs you generate.


I know this is an old thread, but this caught my attention. Would it 
not be possible to come up with a tool with which a developer could 
somehow use the old cert as the authority for the new one? After all, 
the developer is the only one with access to the private key, so a new 
cert could be "signed" by the old one just as an .apk file is signed.


I've been wondering about this issue a bit for a while now though it was 
never really at a high importance level. Although it's been a while 
since I created my keystore, I believe that the instructions we were 
given originally said to make the key valid for 10 years. What are 
developers supposed to do when that 10 year mark is up? For instance, 
what if my app has been receiving regular updates for that entire 10 
year period, and at the 10 years and 1 day mark, I need to update it 
again. The key has expired, so I can't technically update the 
application in the Play Store. Is there a way to regenerate the key or 
extend the expiration date? If not, is there a plan? Android has a ways 
to go before the ten year anniversary, but I hope there's a plan in 
place for dealing with this [possible] issue.


--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
--
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
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Simultaneous Dual capture camera API

2013-03-15 Thread Raymond Rodgers
I'm not an expert on the camera API, I've only poked at it a little, but 
I didn't see anything in it that would prevent you from accessing 
multiple cameras simultaneously. Maybe there's some locking mechanism or 
something that would ordinarily prevent it, but if there is, it didn't 
seem to be documented.


Of course, I could be wrong.
Raymond
On 03/15/2013 07:08 AM, jdmitch wrote:
Does the normal Android camera API support simultaneous dual capture 
(as can be seen in the Galaxy s4 and LG Optimus Pro G) or are these 
limited to the OEMs' proprietary camera apps. I haven't been able to 
find very specific documentation on this from either Samsung or LG, 
and it didn't seem to be in the main Android camera APIs - every time 
I have tried something like this in the past, the camera function only 
allows you to switch, not use them simultaneously...
If I can't actually create an app using a special dual camera API, is 
there some way to call an intent specifically for this, or will it 
just open the camera in a default mode?

thanks!
--
--
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
---
You received this message because you are subscribed to the Google 
Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to android-developers+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
--
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
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: best way to copy an existing application

2013-02-13 Thread Raymond Rodgers

On 02/13/2013 09:05 AM, Digipom wrote:

Hi Lew,

Do you kindly have any evidence or documentation to back up your 
claims? I'm just curious. Why can't one just check the library checkbox?


I'd say it's better to create a library project for the simple reason 
that at some point he may want to update the original app. A library 
project would facilitate easy updates to both applications by having a 
single source for the shared code, and allow him to update and customize 
the two versions as he pleases. The only question in my mind, besides 
the obvious free/demo and paid versions, is why would there be two 
different versions of the same app, where the only difference are the 
background views...?


Raymond

--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
--
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
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] google maps not showing

2012-12-09 Thread Raymond Rodgers

On 12/06/2012 04:43 PM, John Merlino wrote:

I updated an android app but the original developers are not available
so I had to create a new app on the android market. But it was
generally the same app. It contains a google map. However, the google
map does not render. I am getting messages like this on the log:

Couldn't get connection factory client
server returned 3 at android_maps_conflict_avoidance.com

So I think the issue is this line right here:

http://schemas.android.com/apk/res/android";
 android:id="@+id/mapview"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:apiKey="some_long_string"
  android:state_enabled="true"
  android:clickable="true"
  />

Do I already have an apikey in the developer console somewhere or is
this something I am going to have to create?

Oh and if you had to create a new package for the app and/or a new 
signing key, you'd have to create a new api key anyway.


--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
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


Re: [android-developers] google maps not showing

2012-12-09 Thread Raymond Rodgers

On 12/06/2012 04:43 PM, John Merlino wrote:

I updated an android app but the original developers are not available
so I had to create a new app on the android market. But it was
generally the same app. It contains a google map. However, the google
map does not render. I am getting messages like this on the log:

Couldn't get connection factory client
server returned 3 at android_maps_conflict_avoidance.com

So I think the issue is this line right here:

http://schemas.android.com/apk/res/android";
 android:id="@+id/mapview"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:apiKey="some_long_string"
  android:state_enabled="true"
  android:clickable="true"
  />

Do I already have an apikey in the developer console somewhere or is
this something I am going to have to create?

You will need to create a new api key because the version 1 api keys are 
not compatible with the version 2 api.


--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
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


Re: [android-developers] Re: Ordering with SQLITE by nearest latitude & longitude coordinates

2012-10-01 Thread Raymond Rodgers
I can't tell you how to add that to an Android app, at least not without 
doing a fair amount of experimenting that I really don't have the energy 
to do at the moment, but I will give you some optimization advice instead.


I suggest that you reduce the maximum number of results returned in your 
query by limiting the rows to those within a particular box as defined 
by a certain number of degrees positive and negative relative to the 
queried longitude and latitude. The reason is that calculating the 
distance between any two points in a query is going to be CPU intensive 
and can take quite a bit of time. This is especially true if you have 
hundreds, thousands, or millions of rows: each matching row will need to 
have the distance calculation performed on it, at least once, possibly 
twice considering you may want the distance to be included in the search 
result, not just using it to sort. (I haven't really tried with SQLite, 
but you may or may not be able to sort based on a calculated or function 
result column... so "select item_id, longitude, latitude, 
calcdistance(longitude, latitude, -0.1199, 51.5053357) as distance from 
whatevertable order by distance" may or may not work.)


What I did in one app that used the Google Maps API is get the latitude 
span and the longitude span, divide both numbers in half, and use those 
to make the device location (returned by GPS) the center of a search 
box. That way any row having a latitude and longitude that are within 
that box are eligible to have the distance calculated and be returned in 
the data I presented to my users. The query was something like this :


select item_id, longitude, latitude from mytable where (latitude >= 
minLatitude and latitude <=maxLatitude) and (longitude >= minLongitude 
and longitude <= maxLongitude)


With that much said, I'll leave it up to you to figure out the details, 
whether you want to have a fixed range of degrees to search on, how to 
accomplish that, and how to convert that to a user friendly interface, 
or whether you want to pay me any heed at all.


Raymond
On 10/01/2012 09:34 AM, saex wrote:

How can i add that function to my sqlite database in Android?

and how can i use it ?

thanks

El lunes, 1 de octubre de 2012 14:11:06 UTC+2, RichardC escribió:


http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite

<http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite>



On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote:

I must obtain a SQLite SQL Sentence for ordering by nearest
latitude and longitude coordinates, given a initial location.

THis is a example sentence for my table in the sqlite database:

|SELECT id,  name,  lat,  lng FROM items
|

I must achieve this with SQLite, and with that table. I can't
use another techniques because this is for a existen SQlite
database that i can't change.

Exists a way to achieve this with Android and SQlite? I
checked a lot of stackoverflow posts and i didn't find the way
to achieve that

Thanks

--
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 



--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
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] Enabling/Disabling Preferences

2012-07-14 Thread Raymond Rodgers

Hi folks,
I'm working with PreferenceActivity/PrefrenceFragment for the first 
time, and I'm trying to do something that may be a bit tricky. I have 
two related items in my preference XML, one of which is disabled by 
default. The other item is meant to (and does successfully courtesy of 
OnPreferenceTreeClick()) trigger in-app billing which (on successful 
purchase) enables (unlocks) the first menu item and disables (locks) the 
second so that the item can't be purchased again.


In-app billing issues aside, I need to know how to enable and 
disable preference items in such a way that it persists between 
application launches. Attempting to achieve this, I added the following 
code to my PreferenceFragment.onCreate():


addPreferencesFromResource(R.xml.preferences);
Preference unlocker = this.findPreference("unlock_item");
unlocker.setOnPreferenceClickListener(this);
SharedPreferences prefs = 
this.getActivity().getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE);

if( prefs.getBoolean("feature_locked", true) == false)
{
unlocker.setEnabled(false);
Preference featurePref = 
this.findPreference("feature_enabled");

featurePref.setEnabled(true);
}

I'm using the PreferenceFragment as the onPreferenceClickListener:

public boolean onPreferenceClick(Preference preference) {
boolean handled = false;
if( preference.getKey().equals("feature_locked"))
{
handled = true;
Preference featurePref = 
this.findPreference("feature_enabled");

featurePref.setEnabled(true);
preference.setEnabled(false);
SharedPreferences pref = preference.getSharedPreferences();
Editor e = pref.edit();
e.putBoolean("feature_locked", false);
e.putBoolean("feature_enabled", true);
e.commit();
//trigger in-app billing
}
return handled;
}

For development purposes, I'm attempting to do the correct 
enabling/disabling at the time the preference item is clicked, and I'm 
using one of the test codes for in-app billing to approve it. The 
problem is that when I get back from the in-app billing, the unlocker is 
still enabled and the feature preference is still disabled. Even though 
I set the preferences as well, everything is as defined in the 
preference XML, with the feature disabled and the unlocker enabled.


I've been hard at work over the last few days getting the in-app 
billing working, so please forgive me if I'm missing something simple or 
just doing something wrong. Is there some way to get this to work the 
way I envision, or should I start over from scratch?


Thank you,
Raymond

P.S. In case it matters, I'm doing my testing on a stock Nexus One 
(2.3.6), rooted but stock Huawei Ascend (2.2), and stock Galaxy Nexus 
(4.0.4), and getting the same results across the board.


--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
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


Re: [android-developers] Updating text in a DialogFragment

2012-07-11 Thread Raymond Rodgers

On 07/07/2012 11:03 AM, Raymond Rodgers wrote:

On 07/06/2012 11:31 AM, Justin Anderson wrote:

Please post the relevant code...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware

public class MyActivity extends FragmentActivity {
SectionsPagerAdapter mSectionsPagerAdapter;
ViewPager mViewPager;
static final String PREFS_FILE = "InstallLog.prefs";
static final boolean  DEBUG_MODE = true;
public static final int SCAN_UPDATE = 0xdeadbeef;
public static final int SCAN_DONE = 0xdeaddead;
static MyActivity MA = null;
TextView statusTextItem = null;
Handler scanDialogUpdateHandler = new Handler() {

@Override
public void handleMessage(Message msg) {
switch(msg.what)
{
case MyActivity.SCAN_UPDATE:
{
if(statusTextItem == null)
statusTextItem = 
(TextView)MyActivity.MA.findViewById(R.id.statusTextItem);

Log.e("myapp", "detected " + (String)msg.obj);
if(statusTextItem != null)
{
Log.e("myapp","Changing the status text to '" + 
(String)msg.obj +"'");

statusTextItem.setText((String)msg.obj);
statusTextItem.invalidate();
}
}break;
case MyActivity.SCAN_DONE:
{
//kill the dialog
MA.scanFrag.dismiss();
}break;
default:
super.handleMessage(msg);
}
}

};
FragmentTransaction fragTran;
FragmentManager fragMan;
ScanDialogFragment scanFrag;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MyActivity.MA = this;
setContentView(R.layout.build_layout);
this.statusTextItem = 
(TextView)findViewById(R.id.statusTextItem);


   // Create the adapter that will return a fragment for each of 
the three primary sections

// of the app.
mSectionsPagerAdapter = new 
SectionsPagerAdapter(getSupportFragmentManager());



// Set up the ViewPager with the sections adapter.
mViewPager = (ViewPager) findViewById(R.id.pager);
mViewPager.setAdapter(mSectionsPagerAdapter);
int entries = this.countEntries();
if( entries == 0 )
{
fragMan = getSupportFragmentManager();
fragTran = fragMan.beginTransaction();
scanFrag = new ScanDialogFragment();
scanFrag.setCancelable(false);
scanFrag.show(fragTran, "progress");
Intent serviceIntent = new Intent(this, 
RecordActivityService.class);

serviceIntent.setAction(RecordActivityService.PERFORM_SCAN);
startService(serviceIntent);
//fragTran.commit(); // commented out due to crash on startup 
when present

}
}

}

public class RecordActivityService extends Service implements
UncaughtExceptionHandler {
private Thread thread;
private Runnable doStartScan = new Runnable() {
public void run() {
performScan();
}
};
private void performScan()
{
Log.i("myapp", "Perform scan");
List myInfo = new List();
// getContentResolver().insert(Uri.parse(MyContentProvider.AC_URI), 
values);

Uri uri = Uri.parse(MyContentProvider.AC_URI);
ContentValues values = new ContentValues();
Message msg = null;
MyInfo info = null;
for(int index = 0 ; index < myInfo.size(); index++)
{
info = myInfo.get(index);
//populate ContentProvider; MyActivity.countEntries() 
counts these entries

values.put("data_1",info.getName() );
values.put("data_2",info.getData(2) );
values.put("data_3",info.getData(3) );
getContentResolver().insert(uri, values);
values.clear();
msg = new Message();
msg.what = MyActivity.SCAN_UPDATE;
msg.obj = info.getName();
MyActivity.scanDialogUpdateHandler.sendMessage(msg);
msg = null;
}
MyActivity.scanDialogUpdateHandler.sendEmptyMessage(MyActivity.SCAN_DONE); 


this.stopSelf();
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// TODO Auto-generated method stub
int retval = super.onStartCommand(intent, flags, startId);
thread = new Thread(null,doStartScan,"perform_scan");
thread.start();
}
}

The following is the ScanDialogFragment.

public class ScanDialogFragment extends DialogFragment
{
public ScanDialogFragment()
{

}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup 
container,

 

Re: [android-developers] Updating text in a DialogFragment

2012-07-07 Thread Raymond Rodgers

On 07/06/2012 11:31 AM, Justin Anderson wrote:

Please post the relevant code...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware

public class MyActivity extends FragmentActivity {
SectionsPagerAdapter mSectionsPagerAdapter;
ViewPager mViewPager;
static final String PREFS_FILE = "InstallLog.prefs";
static final boolean  DEBUG_MODE = true;
public static final int SCAN_UPDATE = 0xdeadbeef;
public static final int SCAN_DONE = 0xdeaddead;
static MyActivity MA = null;
TextView statusTextItem = null;
Handler scanDialogUpdateHandler = new Handler() {

@Override
public void handleMessage(Message msg) {
switch(msg.what)
{
case MyActivity.SCAN_UPDATE:
{
if(statusTextItem == null)
statusTextItem = 
(TextView)MyActivity.MA.findViewById(R.id.statusTextItem);

Log.e("myapp", "detected " + (String)msg.obj);
if(statusTextItem != null)
{
Log.e("myapp","Changing the status text to '" + 
(String)msg.obj +"'");

statusTextItem.setText((String)msg.obj);
statusTextItem.invalidate();
}
}break;
case MyActivity.SCAN_DONE:
{
//kill the dialog
MA.scanFrag.dismiss();
}break;
default:
super.handleMessage(msg);
}
}

};
FragmentTransaction fragTran;
FragmentManager fragMan;
ScanDialogFragment scanFrag;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MyActivity.MA = this;
setContentView(R.layout.build_layout);
this.statusTextItem = (TextView)findViewById(R.id.statusTextItem);

   // Create the adapter that will return a fragment for each of 
the three primary sections

// of the app.
mSectionsPagerAdapter = new 
SectionsPagerAdapter(getSupportFragmentManager());



// Set up the ViewPager with the sections adapter.
mViewPager = (ViewPager) findViewById(R.id.pager);
mViewPager.setAdapter(mSectionsPagerAdapter);
int entries = this.countEntries();
if( entries == 0 )
{
fragMan = getSupportFragmentManager();
fragTran = fragMan.beginTransaction();
scanFrag = new ScanDialogFragment();
scanFrag.setCancelable(false);
scanFrag.show(fragTran, "progress");
Intent serviceIntent = new Intent(this, 
RecordActivityService.class);

serviceIntent.setAction(RecordActivityService.PERFORM_SCAN);
startService(serviceIntent);
//fragTran.commit(); // commented out due to crash on startup 
when present

}
}

}

public class RecordActivityService extends Service implements
UncaughtExceptionHandler {
private Thread thread;
private Runnable doStartScan = new Runnable() {
public void run() {
performScan();
}
};
private void performScan()
{
Log.i("myapp", "Perform scan");
List myInfo = new List();
// getContentResolver().insert(Uri.parse(MyContentProvider.AC_URI), values);
Uri uri = Uri.parse(MyContentProvider.AC_URI);
ContentValues values = new ContentValues();
Message msg = null;
MyInfo info = null;
for(int index = 0 ; index < myInfo.size(); index++)
{
info = myInfo.get(index);
//populate ContentProvider; MyActivity.countEntries() 
counts these entries

values.put("data_1",info.getName() );
values.put("data_2",info.getData(2) );
values.put("data_3",info.getData(3) );
getContentResolver().insert(uri, values);
values.clear();
msg = new Message();
msg.what = MyActivity.SCAN_UPDATE;
msg.obj = info.getName();
MyActivity.scanDialogUpdateHandler.sendMessage(msg);
msg = null;
}
MyActivity.scanDialogUpdateHandler.sendEmptyMessage(MyActivity.SCAN_DONE);
this.stopSelf();
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// TODO Auto-generated method stub
int retval = super.onStartCommand(intent, flags, startId);
thread = new Thread(null,doStartScan,"perform_scan");
thread.start();
}
}

The following is the ScanDialogFragment.

public class ScanDialogFragment extends DialogFragment
{
public ScanDialogFragment()
{

}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup 
container,

Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.scanningdialogview, 
container);

return view;
}

}

This is the XML for the scanni

[android-developers] Updating text in a DialogFragment

2012-07-05 Thread Raymond Rodgers

Hi folks,
I've been searching for a solution to this problem for the last 
couple hours but haven't turned up a solution. I'm very new to using 
Fragments, but building an app based around the ViewPager in the support 
library. For the most part, I haven't had any problems, but I am running 
into a situation where I'm using a DialogFragment in the hopes of 
building a progress indicator while my app does some things in the 
background. I have an indeterminate progress indicator running in my 
DialogFragment, and I want to update one of two TextViews I have in the 
dialog as it progresses. I'm sending updates from my background service 
& thread via a Handler that is then to update the designated TextView. 
The problem is, that TextView isn't updating. I thought it might be an 
issue with the static field I assign the result of the findViewById() to 
(thinking that it may not exist before the dialog is displayed), so I do 
a check and secondary findViewById() prior to changing the text via 
TextView.setText(). Unfortunately, it appears that the TextView field is 
always null, and so the view isn't getting updated.


What am I failing to do? Do I need to do something with 
FragmentTransaction or FragmentManager in order to update this TextView?


Thank you for your assistance!
Raymond

--
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


Re: [android-developers] Re: Any experience developing on the Huawei Ascend

2011-03-16 Thread Raymond Rodgers

On 3/16/2011 2:54 PM, A Curious Developer wrote:

I was unable to get it (the MetroPCS version) to connect to adb through
the USB cable. I ended up rooting it and using the wireless adb app from
Android Market.

Thanks, that is bad news but helpful - it lead me to
other discussions about how adb won't work with the
device.  I guess my wait continues. ;)

Rooting it was simple enough, though I have to admit I was dreading it. 
z4root made it nice and simple, and is supposedly reversible. I got the 
Ascend to compliment my G1 and Nexus One (which I use as my day-to-day 
cell phone) for development, so I wasn't too concerned about whether 
MetroPCS would be ticked at me for rooting it.


In any case, good luck and good hunting! :)
Raymond

--
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


Re: [android-developers] Any experience developing on the Huawei Ascend

2011-03-16 Thread Raymond Rodgers

On 3/16/2011 11:19 AM, A Curious Developer wrote:

I just wondered if anyone is using this device for development
and has any words of wisdom or caution. This is the first
affordable device I have seen, so I am hopeful it will be a
reasonable development device. Thanks for any information.

I was unable to get it (the MetroPCS version) to connect to adb through 
the USB cable. I ended up rooting it and using the wireless adb app from 
Android Market.


Raymond

--
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


Re: [android-developers] Re: The Subject this: 11902

2011-03-07 Thread Raymond Rodgers
I did a search in GMail's web interface for "Estamos tentando executar" 
and then clicked the select all link, followed by the all matching 
messages link, and delete.


Raymond
On 03/07/2011 12:55 AM, Forest Wang wrote:

How can we filter them out? They are really annoying.

2011/3/7 Harsh J mailto:qwertyman...@gmail.com>>

Some of this also came from Hackbod's address. Looking at the
'Original' mail with headers gives some more information on what
exactly happened. It is not exactly from them :)

On Mon, Mar 7, 2011 at 11:16 AM, Forest Wang mailto:wangme...@gmail.com>> wrote:
> Is it like a kind of virus?
>
> 2011/3/7 gjs mailto:garyjamessi...@gmail.com>>
>>
>> Has somebody fallen asleep on their keyboard ?
>>
>> On Mar 7, 10:01 am, mmur...@commonsware.com
<mailto:mmur...@commonsware.com> wrote:
>> > oa.
>> > Estamos tentando executar um update no evento AfterPrint do
detalhe em
>> > um relatório no RB10 porém quando é executado ocorre o erro
'Cursor not
>> > returned from query'. Fizemos algumas pesquisas no Grupo e
Google sem
>> > sucesso. Alguém poderia ajudar a solucionar esta pane?
>> > O código que estamos utilizando:
>> > procedure DetailAfterPrint;
>> > var
>> > Retorno : TStringList;
>> > begin
>> >Retorno := TStringList.Create;
>> >
>> >ExecSQL(Report, 'update tb_vistoria_selo_reemissao set
>> > situacao='Enviado para Gráfica' where codigo=' + consulta['Código
>> > (tb_vistoria_selo_reemissao.codigo)'], Retorno, false);
>> > end;
>> > Obrigado.
>>
>> --
>> 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
<mailto:android-developers@googlegroups.com>
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
<mailto:android-developers%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> 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
<mailto:android-developers@googlegroups.com>
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
<mailto:android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



--
Harsh J
www.harshj.com <http://www.harshj.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
<mailto:android-developers@googlegroups.com>
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
<mailto:android-developers%2bunsubscr...@googlegroups.com>
For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en


--
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 



--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
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

Re: [android-developers] MarkerManager for Android

2011-02-19 Thread Raymond Rodgers

On 02/19/2011 04:27 PM, Alex wrote:

Hi all,

I have +120 markers to display on google maps.
I wish to display only a few depending of the zoom. In Javascript,
MarkerManager can manage this.
But I can't use it for my android application.

Is there another way to do this ?
Thanks

What I do in may app is simply query the database for those that would 
be displayed at the current zoom level. You can figure that out by 
getting the map center, latitude span, and longitude span, doing a 
little bit of math, and then querying your database for latitudes 
between a minimum and maximum, and the same for longitude.


Hope that helps,
Raymond

--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
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


Re: [android-developers] Re: EditText and auto-complete/correct

2010-12-15 Thread Raymond Rodgers
I found the solution courtesy of a quick peek at the WordPress for 
Android app's resource files! The answer is to remove the 
android:inputType attribute and substitute it with 
android:autoText="true". Simple yet effective!


Thanks for your efforts nonetheless!
Raymond
On 12/13/2010 10:10 PM, Brill Pappin wrote:

Sounds good.. I'll trade you :) --
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 



--
Raymond Rodgers
http://www.badlucksoft.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


Re: [android-developers] Re: EditText and auto-complete/correct

2010-12-13 Thread Raymond Rodgers
Not yet, but I'll send you an .apk directly (off-list) when it's in a 
more complete state.


Thanks,
Raymond
On 12/13/2010 02:49 PM, Brill Pappin wrote:

Is your app available?

I can test it against my keyboard code, which closely matches the 
stock keyboard and trace what the keyboard is doing.
It might give me a clue as to why it's turning off the auto-complete 
(and maybe help me make my keyboard better).


- Brill


--
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 


--
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] EditText and auto-complete/correct

2010-12-12 Thread Raymond Rodgers
Off and on for months now, I've been trying to figure out how to get the 
on-screen keyboard to list the auto-complete/correct choices above the 
keyboard for various EditText views that I've used, and I haven't had 
any luck. Right now I'm creating it as:


android:layout_height="match_parent" android:imeOptions="actionNone" 
android:inputType="text|textAutoComplete|textAutoCorrect|textShortMessage" 
android:maxLength="150">


But I'm not getting the auto-complete or autocorrect options. Is there 
something I'm missing? Do I need to connect it to a dictionary, and if 
so how?


Thank you!
Raymond

--
Raymond Rodgers
http://www.badlucksoft.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


Re: [android-developers] 2.3 Emulator instability

2010-12-07 Thread Raymond Rodgers
Thanks for replying David. I just set the flag to 256 and 512 with the 
same results.

On 12/07/2010 12:35 PM, David Turner wrote:
I'm currently looking into it, but it seems the emulator needs more 
emulated RAM to run 2.3 properly. Try starting it with the "-memory 
256" option and tell me if it behaves better for you.


--
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


Re: [android-developers] 2.3 Google API's missing?

2010-12-07 Thread Raymond Rodgers

On 12/07/2010 09:11 AM, StevePotell wrote:

It appears with 2.3 google maps can't be accessed.  Anyone else having
this problem?

I get the issue "com.google.android can not be resolved"

Looks like I will have to roll back to use google maps in my app.

You need to reinstall the Google API add-ons under "Google Inc add-ons" 
in the "Available Packages" section of the "Android SDK and AVD Manager".

Raymond

--
Raymond Rodgers
http://www.badlucksoft.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] 2.3 Emulator instability

2010-12-07 Thread Raymond Rodgers
I've noticed that the 2.3 emulator seems to be a lot slower overall, and 
has a tendency to spontaneously reboot. Has anyone else noticed this? I 
have updated two machines to use the latest SDK and ADT, one is on 
Fedora 13, the other on 14. I've been using both machines in 
development, and they both ran the 2.2 emulator just fine, though I 
haven't tried the 2.2 emulator with the latest SDK.


At first I thought it was my app which might have been triggering the 
sluggish performance and reboots, but as I just finished installing the 
updates on the F13 machine, and simply ran the 2.3 emulator without 
installing my app at all in it when it rebooted while I was trying to 
open the Maps application. A key feature of the reboot attempt, by the 
way, seems to be that it never completes: I have to close the emulator 
altogether, then restart it because it never gets out of the boot 
animation. It also isn't sending messages to LogCat.


This will make working with 2.3 a little bit tougher until it gets 
pushed to my Nexus One... :-)

Raymond

--
Raymond Rodgers
http://www.badlucksoft.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


Re: [android-developers] Correct Redirected HTTP GET retrieval

2010-07-01 Thread Raymond Rodgers

On 07/01/2010 11:38 AM, MobDev wrote:

Hi, I'd like to know how to do a HTTP GET request to a server from
which I know I will get redirected at least a couple of times... I'd
like to get the response (body) of the "last" webpage. It should come
up with a code in my specific example...

Or, as an alternative, I do know you can start the browser from within
your Android app, is it possible to actually retrieve the body from
that ?

Any help, tips, source whatever would be helpfull, cause till now I
have found (and tried) like 4 methods and to me it seems there is a
jungle of HttpGet, HttpClient, HttpResponse etc libraries ?

   
Oh, and I use HttpURLConnection for most of my Java/Android web work, it 
seems the simplest overall.

Raymond

--
Raymond Rodgers
http://www.badlucksoft.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


Re: [android-developers] Correct Redirected HTTP GET retrieval

2010-07-01 Thread Raymond Rodgers

On 07/01/2010 11:38 AM, MobDev wrote:

Hi, I'd like to know how to do a HTTP GET request to a server from
which I know I will get redirected at least a couple of times... I'd
like to get the response (body) of the "last" webpage. It should come
up with a code in my specific example...

Or, as an alternative, I do know you can start the browser from within
your Android app, is it possible to actually retrieve the body from
that ?

Any help, tips, source whatever would be helpfull, cause till now I
have found (and tried) like 4 methods and to me it seems there is a
jungle of HttpGet, HttpClient, HttpResponse etc libraries ?

   
I haven't tried this, but I believe what you'll need to do is check the 
HTTP status, and look for a new URL/URI in the response headers. Web 
servers usually issue redirect responses with a 300 level response code, 
most commonly 301 (permanent redirect) or 302 (temporary redirect). In 
either case, they're supposed to provide a new absolute URL, though many 
only provide a relative URI (the path and file name on the server) in a 
"Location" header. So you'll probably need to issue a new get request to 
the new URL. When you're either tired of bouncing around (HTTP clients 
are only suggested to handle up to 5 redirects), or when you hit a non 
300 level response code, then you're at your final destination, but 
there's nothing saying you can't keep the responses from every bounce 
along the way...


Raymond

--
Raymond Rodgers
http://www.badlucksoft.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] ContentValues, strings, and escaping...

2010-06-28 Thread Raymond Rodgers
Early Sunday morning (or late Saturday night depending on where you were 
sitting) I released my first app in beta form on the Android Market (Gas 
Up). Since that time, I've had data trickling in from users, and I 
noticed a difference between what my server says a particular gas 
station's name is, and what seems to be getting stored on my users' 
phones. In particular, someone submitted the gas station name "Loaf & 
Jug" complete with the ampersand. My database server didn't blink at the 
ampersand; it stored it properly, and the ampersand is getting sent to 
the clients properly as well. However, in the database on the emulator 
and actual devices (my G1 and Nexus One at least), only "Loaf " seems to 
be getting stored.


Under other circumstances, I would expect that this might have been 
caused by failing to escape the data before inserting it into the 
database, but I'm not sure that's the problem here because I know for a 
fact that it was inserted using ContentValues and SQLiteDatabase's 
insert() call. While not absolutely guaranteed to be error proof or 
immune to unescaped string errors, this method has allowed some other 
characters that need to be escaped into the database without any 
problems. (Single quotes for example.)


Should I be doing some additional string manipulation/escaping before 
inserting string values into the SQLite database? A quick search I did 
on SQLite and the ampersand suggested using question mark/prepared 
statement form of queries... Would it be better to switch over to that?


Thanks,
Raymond

--
Raymond Rodgers
http://www.badlucksoft.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


Re: [android-developers] ItemizedOverlay & database items: When do I update the OverlayItem list?

2010-06-24 Thread Raymond Rodgers

On 06/24/2010 04:52 PM, Mark Murphy wrote:

On Thu, Jun 24, 2010 at 4:40 PM, Raymond Rodgers
  wrote:
   

How do you define "update the items"?
   

I should have been more specific, I meant ItemizedOverlays#items (the
ArrayList  member).
 

I should have been more specific, I am uncertain what you mean by
"update". Adding items? Removing items? Changing the snippets on
items? Addressing the tectonic shift of items??? Dealing with the
movement of items through space after aliens blast the Earth into
relatively tiny pieces, in some cosmic game of Asteroids??!??

I am guessing you were just referring to creating the ItemizedOverlay
at the outset.
   
If I add whatever items to the list in the constructor, when do I go 
through the process of adding and removing new ones based either on the 
currently displayed area, or from background actions such as receiving 
new items from the server? Although it's possible the title or a snippet 
on an item might change, it's far more likely that I'll need to add 
overlay items to what's being displayed.
   

It just seems to me that ItemizedOverlay should be using or have the option
to use a ContentProvider to determine which OverlayItems should be in memory
and on-screen at the time that Draw() is called.
 

:: shrug ::

I do not think the ItemizedOverlay was designed for thousands of
items. For smaller figures, the overhead of the ContentProvider
(particularly a possible cross-process one) may well swamp whatever
gains you think you're getting. GeoPoints are cheap objects, assuming
your snippets don't read like _War and Peace_ (or even one of my
books, which are plenty wordy). And having all the GeoPoints on hand
means the overlay can be pretty snappy on pans and zooms.

   
I'm one of those programmers that always tries be mindful of the amount 
of memory being used, and although I don't think my app is going to be a 
memory hog or need to have millions of points on screen at any given 
time, I also don't want to populate the overlay with items in Florida 
when the map is centered over Hawaii. It was my intention to just load 
the data necessary for what's currently visible to save memory and 
improve performance overall, but based on what you've told me, maybe I 
should take another approach.


In any event, thanks Mark.
Raymond

--
Raymond Rodgers
http://www.badlucksoft.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


Re: [android-developers] ItemizedOverlay & database items: When do I update the OverlayItem list?

2010-06-24 Thread Raymond Rodgers

On 06/24/2010 04:28 PM, Mark Murphy wrote:

On Thu, Jun 24, 2010 at 4:12 PM, Raymond Rodgers
  wrote:
   

 From everything that I've seen and have been reading, I'm apparently
supposed to add all my OverlayItems in the constructor, then call
Populate().
 

Not necessarily. You call populate() once you are ready to being
responding to methods like size() and createItem(). If your stuff is
in a database, you can do your query in your constructor, call
populate(), and create OverlayItems in the calls to createItem().

   

Ok, thank you, that clears it up considerably.

The problem I have conceptually, is that if I'm pulling these
items from a database (fed by a web site), then when exactly do I update the
items?
 

How do you define "update the items"?

   
I should have been more specific, I meant ItemizedOverlays#items (the 
ArrayList member).

Also, it seems to me that it's a waste of resources to feed it all the items
in advance instead of the ones pertaining to the current location...
 

Then don't feed it all of the items.

Also, if you think you have a model that will work more efficiently
than does ItemizedOverlay, write an Overlay that uses your custom
approach.

   
It just seems to me that ItemizedOverlay should be using or have the 
option to use a ContentProvider to determine which OverlayItems should 
be in memory and on-screen at the time that Draw() is called. The most 
probable filtering would be based on whether the item is within the 
latitude/longitude bounds of the screen since that information is 
readily determinable within the Overlay class. While I'm a relatively 
experienced programmer, I'm new to Android so I'm just trying to figure 
out how to do this The Right Way (tm). :-) If there is such an animal, 
of course.


Raymond

--
Raymond Rodgers
http://www.badlucksoft.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] ItemizedOverlay & database items: When do I update the OverlayItem list?

2010-06-24 Thread Raymond Rodgers
From everything that I've seen and have been reading, I'm apparently 
supposed to add all my OverlayItems in the constructor, then call 
Populate(). The problem I have conceptually, is that if I'm pulling 
these items from a database (fed by a web site), then when exactly do I 
update the items?


Also, it seems to me that it's a waste of resources to feed it all the 
items in advance instead of the ones pertaining to the current 
location... This seems to be the perfect case to use a ContentProvider, 
but I don't see anything indicating that one can be used with either 
ItemizedOverlay or anything else related to the Google Maps API...


Can anyone help me understand this?

Thanks,
Raymond

--
Raymond Rodgers
http://www.badlucksoft.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


Re: [android-developers] SQlite Security

2010-06-23 Thread Raymond Rodgers

On 06/23/2010 10:48 AM, Bhavya Siddappa wrote:

Hi,

I want to know why SQLite doesn't support encryption! &
How to secure the SQlite db on a Android app?

./bhavya
As far as I know, unless you deliberately create a SQLite database on 
the SD card, the databases are created in a protected area of the 
phone/device's storage. Other applications don't have access to them at 
all unless your app has a shared key if I remember correctly, and I 
think they (the "attacking apps") have to be signed with the same key 
that your app is as well.


Raymond

--
Raymond Rodgers
http://www.badlucksoft.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: Auto-completion/correction hints

2010-06-23 Thread Raymond Rodgers

On 06/20/2010 11:09 AM, Raymond Rodgers wrote:
I have an AutoCompleteTextView working with a ContentProvider that 
correctly pulls known information from a database when the user is 
typing and presents it. However, I would also like to support the 
automatic hints/word choice list you get when using apps like the 
Messaging app. I haven't figured out how to get that thin bar of word 
choices to appear. Can some one clue me in on how to use that in 
combination with my existing ContentProvider?


Thank you,
Raymond

No thoughts on this? I haven't checked but could it be that the hints 
only appear on normal edit text views?

Thanks,
Raymond

--
Raymond Rodgers
http://www.badlucksoft.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] Auto-completion/correction hints

2010-06-20 Thread Raymond Rodgers
I have an AutoCompleteTextView working with a ContentProvider that 
correctly pulls known information from a database when the user is 
typing and presents it. However, I would also like to support the 
automatic hints/word choice list you get when using apps like the 
Messaging app. I haven't figured out how to get that thin bar of word 
choices to appear. Can some one clue me in on how to use that in 
combination with my existing ContentProvider?


Thank you,
Raymond

--
Raymond Rodgers
http://www.badlucksoft.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


Re: [android-developers] World cities database

2010-06-19 Thread Raymond Rodgers

On 06/16/2010 02:14 AM, Hey its Ashish wrote:

Hi,

I am working on application which required to display the data in
following from:

List of Region->List of Countries(As per selection)-->List of
Cities(As per selection)

I had tried hard to find some web services which facilitate the same
but no success, please help me to find it.



Regards,
Ashish

   
I don't know of any free web services that provide this sort of 
information, but if you can or do manage your own web server and 
database, there are products like this one out on the market that will 
probably fulfill the need:


http://www.geodatasource.com/cities-titanium.html

Raymond

--
Raymond Rodgers
http://www.badlucksoft.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

Re: [android-developers] Admob ads linking to scam sites, possible additional app-security problems

2010-06-18 Thread Raymond Rodgers

On 06/18/2010 08:53 AM, Simon Broenner wrote:

Hello everyone!

I'd like to divert your attention from actual development issues for a 
moment, in order to make you aware of a troubling development that 
affects everyone who uses Admob advertisements in their programs, and 
everyone who uses these programs.


I'm an active member on a German Android forum, and a number of 
threads have cropped up highlighting a number of mobile phone 
ringtone/horoscope type scams, which are apparently using Admob in 
combination with malicious apps to charge users for services they 
never ordered or agreed to.


For German speaking readers (or people who actually understand what 
comes out of Google Translate), here are the original threads:


http://www.android-hilfe.de/smalltalk-offtopic/26555-achtung-abzocke-blinkogold-de.html
http://www.android-hilfe.de/android-apps/31470-vorsicht-bei-app-werbung.html


The problem:

Apparently the ads in question are regluar Admob-ads. Click on them, 
and usually you'll get pushed into the browser onto a page where this 
dubious "Blinkogold" company tries to sell you horoscopes, ringtones 
and stuff like that. While this is already a little dubious, it's no 
worse than the ads on MTV here in Germany, and seems to be accepted as 
the norm. Whether or not it should be, is a completely different topic.


The problem here, however, is that a few users are reporting that 
they're getting SMS along the lines of "Welcome to your Blinkogold 
horoscope subscription! Your horoscope for the week is xxx, you've 
been billed for 2,99€ for this SMS. To cancel please visit *link*."


Now, aside from the fact that a) the 3€ are charged to the phone bill 
pretty much no matter what the user does from this point on, and b) 
cancelling is a major hassle because the links don't work properly 
(obviously a ploy to make cancelling more difficult - the "real" 
cancellation link can be found on the Blinkogold homepage somewhere, 
hidden nicely so that it's really hard to find), we have an even more 
troubling devlopment:


This behaviour has appeared consistently in certain apps, and only 
these certain apps. For instance:


World Cup 2010-FotMob

The users are adamant about having only clicked on the Admob banner - 
and DEFINITELY not having sent any type of confirmation SMS to confirm 
their purchase/subscription (which is, obviously, a requirement - 
because a] how else would they know what number to bill [pure IP 
connection up until now, right?] and b] an actual SMS or phone call 
initiated by the user seems to be a requirement by law for selling 
this kind of stuff via phone bill here in Germany).


If these users aren't exaggerating, we have a big problem: If they 
didn't send the SMS, the app must have. This is unlikely, since AFAIK, 
the apps don't have the relevant permissions to send SMS.


Another user (or rather, developer - he clicked on the Admob banner in 
his own program, here: 
http://www.android-hilfe.de/android-apps/31470-vorsicht-bei-app-werbung-6.html#post366043), 
in a far more likely scenario, said that he was pushed into the 
browser when he clicked on the banner, and a two clicks on the 
homepage later, he was in his SMS-app, with a preformulated SMS ready 
to send to Blinkogold, ready to incur costs of 3€ a week for an 
indefinite amount of time.


With the inaccuracy of capacitive touchscreens, and their tendency to 
"click" on items without the user actually intending to do anything, 
this type of behaviour in web sites (and the Admob banners that link 
to them) is quite troubling. It's easy to imagine a user clicking on 
the banner and then ending up with a subscription without any further 
user interaction than having a finger resting on the edge of the 
touchscreen (this is probably the reason why the iPad is 50% bezel, 
but that's another topic :P).


Now, the obvious question here is: What can we do about it? First of 
all, we need to narrow down how this is happening. I'm assuming a 
combination of user error and greed on the part of Admob - the actual 
transactions taking place appear (at least on the surface) to be legal 
here in Germany, and a minimal amount of user interaction is PROBABLY 
(it's unlikely that there was truly no user error involved at all) 
required in order for this to work.


However, from my point of view, the amount of user action required for 
subscription to these services is not sufficient, which would lead me 
to classify the service in question as a scam. And scams that prey on 
unsuspecting users and then charge them through their phone bill 
(something we, as end users, have surprisingly little control over) 
are something we definitely DON'T want on Android. Therefore, assuming 
the reports are at least 50% correct and not so embellished that 
they're outright lies, we should be finding a way to remove Blinkogold 
(and other dubious advertisers) from Admob and any other sources 
Android uses for in-app advertisement (are there any other

Re: [android-developers] how to filter the objects (addresses) to display only the onscreen objects on map

2010-06-17 Thread Raymond Rodgers
Since I just happen to have written code for this recently, I don't mind 
sharing what I have:


boolean onVisibleMap(GeoPoint point) {
boolean visible = false;
try {
Log.v(TAG, "onvisiblemap, geopoint: lat: "
+ point.getLatitudeE6() + " , lng: "
+ point.getLongitudeE6());
GeoPoint mapCenter = this.mapView.getMapCenter(); // 
mapView is a private member of the class, set by the MapView's onCreate()
int mapCenterlatitude = mapCenter.getLatitudeE6(), 
mapCenterLongitude = mapCenter.getLongitudeE6();
int halfLatSpan = latitudeSpan / 2, halfLongSpan = 
longitudeSpan / 2;
int top = halfLatSpan + mapCenterlatitude, bottom = 
mapCenterlatitude

- halfLatSpan, right = mapCenterLongitude
+ halfLongSpan, left = mapCenterLongitude
- halfLongSpan;
Log.v(TAG, "top: " + top + " bottom: " + bottom + "\nright: "
+ right + " left: " + left);
if (point.getLatitudeE6() <= top && point.getLatitudeE6() 
>= bottom

&& point.getLongitudeE6() <= right
&& point.getLongitudeE6() >= left)
visible = true;
Log.v(TAG, "location is visible? "
+ (visible ? "yes" : "no"));
} catch (NullPointerException e) {
e.printStackTrace();
}
return visible;
}


On 06/17/2010 09:27 PM, Hasn AlTaiar wrote:

HI Frank,

Thank you very very much, really appreciate your kind reply..

Now, I need to values (minimum and maximum) to get the range of the 
visible part of the map, right?


so what is this returned number? is the starting left end of the plan? 
or is it the width? and if it is the width, how can I use it to find 
the range of (GeoLocations) that 's visible on the map??


In other words, I need to have a range of ScreenCoordinates, or 
GeoLocations (lat and long) that represent the visible part of the 
map, so that I can compare all the POI to show only the onscreen 
object and omit the off-screen ones.


Thank you very much for your time and great support.

Cheers
Hasn

On Thu, Jun 17, 2010 at 2:11 AM, Frank Weiss > wrote:


The return type of the *Span() methods is int as follows:

Latitude: 47° 30' 21", in decimal degrees 47.505833, times one million
47505833.
This allows for using integers instead of floats for storing and
comparing lat/longs.

--
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




--

(Hasn) Hasnain AlTaiar
Web Developer
TayTech Smart Solutions
http://TayTechs.com
h...@taytechs.com
Mob.  +61 422 04 2629
--
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 


--
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

Re: [android-developers] Google Maps API: Catching zoom and panning events

2010-06-08 Thread Raymond Rodgers
On Tue, Jun 8, 2010 at 7:14 PM, Steve Howard  wrote:

> A simple solution is to add an Overlay, override the draw() method, and not
> actually do any drawing, but simply use the method as a hook to know anytime
> the map has potentially moved or zoomed.  The problem is, this will get
> called more often than necessary, so you'll need some custom logic to decide
> when the viewport has changed "enough" for you to make a new query.  This
> shouldn't be too difficult however -- you can track the current center and
> zoom in your Overlay subclass -- and you'd probably need some kind of logic
> like this anyway.
>
> Let me know how that works for you, or if it works at all.
>
> Steve
>
>
> Thanks Steve, I eventually came to give that very method a try, although I
haven't yet decided on how to avoid the excessive updating. I may try to
find out when the user's fingers are no longer on the touch screen or when
the trackball (if present) is no longer moved. Can I recommend that a
simpler method of doing this sort of detection be added in the future?
Perhaps an interface/listener combination like many other similar cases?

Thanks,
Raymond

-- 
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] Google Maps API: Catching zoom and panning events

2010-06-07 Thread Raymond Rodgers
I'm writing an app that will be doing queries based on what's currently 
viewable in a MapActivity. Currently, I've extended the MapActivity 
class and I'm implementing OnZoomListener and setting my activity class 
as the listener on the ZoomButtonsController. This works fine when the 
zoom buttons are used to zoom in and out, but when using the zoom 
gestures, onZoom() isn't getting called, although onVisibilityChanged() 
is. The problem is that onVisibilityChanged() is getting called any time 
the zoom controls are on screen, and not all map events that trigger the 
controls to be visible are zoom events.


So what I'm wondering at this point is simply is there a better way to 
find out when the map has been zoomed [in or out]? I would think there 
would be some addListener method I could use to receive a zoom event so 
that I could do my query based on the MapView 
getLatitudeSpan()/getLongitudeSpan() and getMapCenter() functions, but 
I'm not seeing any such animal...


Likewise, I would like to know when the map has been panned so I can get 
updated information.


Does anyone have a better idea or solution?

Thank you,
Raymond

--
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


Re: [android-developers] Encrypting in PHP and Decrypting in Android

2009-11-25 Thread Raymond Rodgers
Here's the Android side of things. I did this under 1.1 I believe, but 
it still compiled and worked under 1.5. I suspect it'll probably work 
under 2.0, but I'll leave it up to you to locate and/or implement a 
Base-64 encoding/decoding scheme. Again, this is basic functionality to 
allow interoperability between PHP and Android's encryption systems. I'm 
not going to say this is bug free or even optimal but it at least was 
functional. The Android code below was part of a utilities class I 
wrote, and once again, the keys were going to be swapped out on a 
regular basis.

 final static String AES_V1_KEY = "D0QgiY8JYvx8qzKx0iaN8kwEJgwpEqAJ";
 static String nullPadString(String original) {
 String output = original;
 int remain = output.length() % 16;
 if (remain != 0) {
 remain = 16 - remain;
 for (int i = 0; i < remain; i++)
 output += (char) 0;
 }
 return output;
 }
 static String encryptString(final String RAWDATA, boolean ENCODE)
 throws UnknownAppVersionException { // This was a custom 
exception class.
 String encrypted = null;
 byte[] encryptedBytes = null;
 byte[] key;
 switch (app.rootObject.getVersionCode()) {
 case 1:
 key = AES_V1_KEY.getBytes();
 break;
 default:
 throw new UnknownAppVersionException();
 }
 SecretKeySpec skeySpec = new SecretKeySpec(key, "AES");

 // Instantiate the cipher

 Cipher cipher = null;
 try {
 String input = Integer.toString(RAWDATA.length()) + '|' + 
RAWDATA;
 cipher = Cipher.getInstance("AES/ECB/NoPadding");
 cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
 encryptedBytes = 
cipher.doFinal(Utilities.nullPadString(input).getBytes());
 } catch (NoSuchAlgorithmException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (NoSuchPaddingException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (InvalidKeyException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (IllegalBlockSizeException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (BadPaddingException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 }
 // encrypted = new String(encryptedBytes);
 if( ENCODE) encrypted = new 
String(Base64.encodeBase64(encryptedBytes));
 else encrypted = new String(encryptedBytes);
 return encrypted;
 }
 static String decryptString(final String ENCRYPTEDDATA,final 
boolean DECODE)
 throws UnknownAppVersionException {
 String raw = null;
 byte[] rawBytes = null;
 byte[] encryptedBytes;
 if( DECODE ) encryptedBytes = 
Base64.decodeBase64(ENCRYPTEDDATA.getBytes());
 else encryptedBytes = ENCRYPTEDDATA.getBytes();
 byte[] key;
 switch (app.rootObject.getVersionCode()) {
 case 1:
 key = AES_V1_KEY.getBytes();
 break;
 default:
 throw new UnknownAppVersionException();
 }
 SecretKeySpec skeySpec = new SecretKeySpec(key, "AES");

 // Instantiate the cipher

 Cipher cipher = null;
 try {
 cipher = Cipher.getInstance("AES/ECB/NoPadding");
 cipher.init(Cipher.DECRYPT_MODE, skeySpec);
 rawBytes = cipher.doFinal(encryptedBytes);
 } catch (NoSuchAlgorithmException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (NoSuchPaddingException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (InvalidKeyException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (IllegalBlockSizeException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (BadPaddingException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 }

 raw = new String(rawBytes);
 int delimiter = raw.indexOf('|');
 int length = Integer.valueOf(raw.substring(0, delimiter));
 raw = raw.substring(delimiter + 1, length + delimiter + 1);
 return raw;
 }

Good luck!
Raymond

On 11/25/2009 06:44 PM, Raymond C. Rodgers wrote:
> Here is PHP code I lifed out of a project that I've now abandoned. 
> I'll find and post the Android side of things later. The basics are 
> that I used the Rijndael-128+ECB encryption combined with Base-64 
> encoding to transmit information back and forth between the 
> application and the web server. The catch, in this whole thing, is 
> that on 

[android-developers] Re: Converting FREE app to PAID app

2009-03-04 Thread Raymond Rodgers
Avraham Serour wrote:
> have the free app to export the settigns to your server or to user 
> file or somewhere
>
> have the paid one import it
>
> ...
>
> profit
>
> On Wed, Mar 4, 2009 at 11:26 PM, t.ar...@gmail.com 
>   > wrote:
>
>
> Hi,
>
> From what I learn, a developer cannot convert his FREE app to a PAID
> app.
> I was looking out for some alternative ways to make this happen.
> I have an app with about 10K users. Users have their data stored
> inside the application.
> Lets call the existing FREE version com.myapp
>
> I would like to sell myapp for $10.
>
> How do I go about it?
>
> If I create a new application, it does not accept com.myapp since it
> says I already have an app on the store with the same name. Create a
> new app: com.paidmyapp does not help because how do the existing 10K
> users get their data from FREE version (myapp) to PAID version
> (paidmyapp).
>
> Any thoughts? Thanks for your help.
>
While that's a simple way of doing it, there has to be a more elegant 
way of handling it.

Raymond

--~--~-~--~~~---~--~~
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: Converting FREE app to PAID app

2009-03-04 Thread Raymond Rodgers

t.ar...@gmail.com wrote:
> Hi,
>
> From what I learn, a developer cannot convert his FREE app to a PAID
> app.
> I was looking out for some alternative ways to make this happen.
> I have an app with about 10K users. Users have their data stored
> inside the application.
> Lets call the existing FREE version com.myapp
>
> I would like to sell myapp for $10.
>
> How do I go about it?
>
> If I create a new application, it does not accept com.myapp since it
> says I already have an app on the store with the same name. Create a
> new app: com.paidmyapp does not help because how do the existing 10K
> users get their data from FREE version (myapp) to PAID version
> (paidmyapp).
>
> Any thoughts? Thanks for your help.
>   
Funny, I just asked a very similar question last night but haven't 
gotten any responses yet. I *think* it might have something to do with 
the "shared user ID" in the project's manifest, but I'm not sure yet.
Raymond

--~--~-~--~~~---~--~~
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] Free & paid versions of an app, shared user ID & SQLite

2009-03-03 Thread Raymond Rodgers

I am designing and application for which I expect to use SQLite, and I 
know that I will have a free and a paid version of the application. It 
is my wish that a person will use the free version, creating a database 
file in the process, and eventually buy the paid version. What I would 
like to happen is that when upgrading (ok, installing the paid version), 
the paid version will continue to use the database created by the free 
version, which would be uninstalled (by the user).

How do I go about this? I just made a branch of my project in 
Subversion, so that the two versions are completely identical at the moment.

1. Should I change the package name of one or the other or leave them 
the same?
2. If I set a shared user ID in the Android manifest of both versions, 
will that enable me to use the same database when moving from the free 
version to the paid version? (At this point in time, I'm planning to add 
additional tables for the paid version, and both versions will use the 
common tables in the same way, so a downgrade wouldn't be require 
starting over with a fresh database.)
3. Is there anything in particular that I need to look out for in this 
approach, or any wisdom that the Gods that Be (ahem Google) might share?

Thank you,
Raymond

--~--~-~--~~~---~--~~
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: Two questions

2009-02-22 Thread Raymond Rodgers

neil.young wrote:
> Hi,
> first: It seems to be impossible to post to this group using an
> ordinary mailer!? I've tried to post to android-
> develop...@googlegroups.com to no avail. Is this group moderated?
>
> second: I would like to know, whether Android is supporting JSR 177,
> especially APDUConnection, meanwhile.
>
> Regards
>   
At the very least, I'm getting your messages, and no, it does not appear 
to be moderated. It's possible your mail client is hiding your posts as 
Thunderbird  hides mine. You can stop the ping and test messages.

Raymond

--~--~-~--~~~---~--~~
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: base64 in the sdk ?

2009-02-04 Thread Raymond Rodgers

hapciu wrote:
> Is there a base64 encoding/decoding utility anywhere in the Android
> SDK ?
> I wouldn't want to reinvent the wheel.
>
> thanks
>   
Personally, I made  two new packages within my app's package to handle 
the Apache Commons/Jakarta base-64 classes at 
http://commons.apache.org/codec/ . Since Android and the SDK already 
includes some of classes from that project, I don't know why they 
weren't already included, but they seem to work pretty well in my 
project at least.


Raymond

--~--~-~--~~~---~--~~
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: Developing on Stock T-Mobile G1?

2009-01-19 Thread Raymond Rodgers

deepdr...@googlemail.com wrote:
> Hi there,
>
> is it viable to develop applications using a stock T-Mobile G1?
>
> I guess in contrast to the emulator the real thing is restricted when
> it comes to debugging.
>
> But, is there a simple way to just transfer my self developed, self
> compiled APK to the phone and install it there? I do not have to go
> through the market for that, do I? :)
>
> Then again I guess it's not as easy as with the emulator, just
> clicking "Run" in Eclipse - or is there a way to tell Ecllipse to
> transfer the freshly compiled software to the *locked* phone?
>
> Yes, I know I could get an unlocked Dev Phone 1, but, my question is
> whether this would be *required* or, if not, what my options as a
> developer are when working with a stock, locked, phone.
>
> Thanks!
All you should have to do is enable debugging under Settings -> 
Applications -> Development -> USB Debugging, then plug your phone into 
your computer with the supplied USB cable, and Eclipse and the SDK will 
pretty much do the rest if your computer is properly configured. There's 
a page some where on the development site explaining exactly what needs 
to be done on Windows, MacOS/X, and Linux, but I couldn't find it with a 
quick search. Nonetheless, it is possible and relatively simple.

Raymond

--~--~-~--~~~---~--~~
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: charging for upgrades to free apps?

2009-01-11 Thread Raymond Rodgers

chris.cap...@gmail.com wrote:
> i have a free app and i want to put out an updated version that isn't
> free. when us devs are able to start charging, if i put out this
> updated version in place of the free app, will the people that already
> downloaded the app for free have to pay for the upgrade or will they
> get it for free? i want it the users to have to pay for the upgrade,
> but i want to know if i have to upload it as a separate app or if i
> can just publish the updated version in place of the free version so
> my current users are notified of the update. thanks.
>   
It's my understanding that this would be against the Market's terms of 
service, however they don't discourage the separate distribution of a 
free demo from the paid app.

Raymond

--~--~-~--~~~---~--~~
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: Any updates on paid apps timeline?

2009-01-04 Thread Raymond Rodgers
Yannick Stucki wrote:
> Yeah right, that's Apple propaganda if you ask me... Developers have 
> always been coding for different screen sizes and different 
> hardware... On a desktop you also don't know if someone has a webcam 
> if you are coding a chat programm or not... I see that it is a bit 
> more difficult on handsets...  but still, it's not like devs can write 
> apps that work on more than one device
>
> On Sun, Jan 4, 2009 at 10:53, Al Sutton  > wrote:
>
>
> One of the problems I can see with multiple platforms is app
> incompatibilities.
>
> With the iPhone app store when you buy an app you know the app will
> work. With more Android devices coming out and the current state of
> Market I'm concerned that users will end up buying apps which either
> don't work on their screen resolution, or simply need features
> that the
> devices don't have.
>
> Hopefully the powers that be have thought about this and have plans in
> place already for more than just endorsed devices like the G1.
>
Other than screen resolution, I think there will be little to worry 
about as far as incompatibilities are concerned. Unless someone takes 
the underlying operating system and starts stripping out significant 
parts of it or adding  them, the OS itself will likely continue to 
function as we have gotten used to it. Likewise, the API and the actual 
apps we write will likely be immune to most of those changes. The SDK is 
based on Java for this reason: it's a cross platform language, and each 
application is in its own virtual machine. The features of the phones 
themselves obviously will change, but as the most significant features I 
can think of are internet access via Edge, wifi, or other means, and GPS 
are common in modern phones, I don't think we need to worry too much 
about them being present or not. From what I've seen (admittedly just a 
small amount at the moment), the API will let us know if the features 
aren't available for whatever reason.

Now, as for screen resolution, I presume that there's probably a part of 
the API that will tell you exactly what the resolution of the device is. 
I *presume* this because OpenGL drawing often depends on a view port 
size, which is often set to the full screen size. Also knowing some of 
the pasts of a few of Google's engineers, I know that they've most 
likely already thought of this, so I think that if your application is 
sensitive to the screen size (and orientation), chances are you can get 
this information from the API and use it to adjust your user interface 
appropriately.

Of course, I could be wrong... :-)

Raymond

--~--~-~--~~~---~--~~
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: Are apk contents already compressed?

2009-01-04 Thread Raymond Rodgers

inder wrote:
> Thanks for the reply but I am not seeing the results as expected. I
> just tried it out: an asset file that I compressed myself with Gzip,
> vs the same file uncompressed.
>
> The resulting apk with uncompressed file was much bigger:
>
> Compressed case:
> Asset file: 45348 bytes
> Apk file: 132099 bytes
>
> Uncompressed case:
> Asset file: 113988 bytes
> Apk file: 183001 bytes
>
> This are the Apk files as generated by eclipse (in the development
> mode). What could be happening?
> Thanks
> Inder
>   
If I understand things correctly, Apk files are modified Jar files from 
Java, which in turn are modified Zip files. I don't know what the 
default compression method or strength is in Jar files, but they are 
definitely compressed. GZip, as far as I know, usually does a better 
compression job than Zip does, so that's probably what you're seeing.

Raymond

--~--~-~--~~~---~--~~
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 & BT headset call button

2008-12-21 Thread Raymond Rodgers
Nick Pelly wrote:
> On Sun, Dec 21, 2008 at 12:29 PM, Raymond Rodgers
>  wrote:
>   
>> I just signed up for service with T-mobile and got a G1 yesterday, and
>> right away paired it with my Jabra BT5020 which I've had for about a
>> year now. Right off the bat I  discovered that using the headset's call
>> button does not trigger the voice dialing/command feature of the
>> G1/Android. As it wasn't urgent, I dismissed that, and did a bit of
>> research later. It appears that this functionality is hit and miss with
>> various bluetooth headsets; some messages on various forums report that
>> some headsets work perfectly while others don't, some say that it just
>> doesn't work with Jabra headsets, and still others claim that it's only
>> Jabra headsets that have the problem.
>>
>> I contacted Jabra's tech support and they suggested resetting the phone
>> (by removing the battery for 10 seconds and then powering it back up)
>> and headset (by charging it for 5-10 seconds), but this didn't solve the
>> problem either. I also sent an email to T-mobile's tech support, but I
>> haven't gotten a response back yet. I know it's not my headset itself
>> that is the problem because it still works fine with my previous phone
>> (LG enV/VX9900).
>>
>> Is this an Android compatibility issue? If so, is this something that's
>> being worked on?
>> 
>
> Bluetooth voice dialing support was added in the cupcake codebase.
> It's not in 1.0.
>
> Nick Pelly
> Android Systems Engineer
>   
Excellent, thank you Nick!
Raymond

--~--~-~--~~~---~--~~
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] G1 & BT headset call button

2008-12-21 Thread Raymond Rodgers

I just signed up for service with T-mobile and got a G1 yesterday, and 
right away paired it with my Jabra BT5020 which I've had for about a 
year now. Right off the bat I  discovered that using the headset's call 
button does not trigger the voice dialing/command feature of the 
G1/Android. As it wasn't urgent, I dismissed that, and did a bit of 
research later. It appears that this functionality is hit and miss with 
various bluetooth headsets; some messages on various forums report that 
some headsets work perfectly while others don't, some say that it just 
doesn't work with Jabra headsets, and still others claim that it's only 
Jabra headsets that have the problem.

I contacted Jabra's tech support and they suggested resetting the phone 
(by removing the battery for 10 seconds and then powering it back up) 
and headset (by charging it for 5-10 seconds), but this didn't solve the 
problem either. I also sent an email to T-mobile's tech support, but I 
haven't gotten a response back yet. I know it's not my headset itself 
that is the problem because it still works fine with my previous phone 
(LG enV/VX9900).

Is this an Android compatibility issue? If so, is this something that's 
being worked on?

Thanks,
Raymond

P.S. JBQ & Diane if you read this: Fancy meeting you here! ;-) Tell 
Marco I say "Hi."

--~--~-~--~~~---~--~~
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 sdk

2008-08-19 Thread Raymond Rodgers
Megha Joshi wrote:
>
>
> On Tue, Aug 19, 2008 at 2:10 AM, Peter Stevenson 
> <[EMAIL PROTECTED] > wrote:
>
> when trying to download new sdk for linux which is 91mb sun downland
> keeps come up with an error
> When I try down load just with fire fox download manger the file size
> only 86.7mb
>
>
> 86.7 MB is the right size, try using it...I am not very familiar with 
> sun download manager...
>
>
>
> please  help
>
> Peter
>
The problem is probably that the Sun download manager is calculating 1 
megabyte at 1,000,000 bytes instead of 1,048, 576 bytes. Doing the math 
based on 1 megabyte being 1,000,000, the file size would be 90.911, 
which was probably rounded up to 91.

Raymond

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: No bluetooth support ?!?!?!

2008-08-19 Thread Raymond Rodgers
Peli wrote:
>> a comprehensive Bluetooth API will not be possible
>> 
>
> The big question is whether this phrasing allows for a "limited"
> Bluetooth API for 1.0?
>
> Peli
>
>   
Good question; the roadmap indicates that another pre-1.0 SDK will be 
released in September, so it's possible we'll see the return of some of 
the functionality. But I think that'll depend on how much time they need 
for certification and testing.

Raymond

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: No bluetooth support ?!?!?!

2008-08-19 Thread Raymond Rodgers
I believe there were some issues with the bluez package that caused them 
to remove it at least for the time being. See the release notes 
(http://code.google.com/android/RELEASENOTES.html ) which state:

"Due to significant API changes in the upstream open-source project and 
due to the timeline of getting certain Bluetooth profile implementations 
certified, a comprehensive Bluetooth API will not be possible or present 
in Android 1.0."

That's not saying that Bluetooth won't ever be present, just that it's 
not going to be in 1.0.
rezar wrote:
> This is very discussing, now bluez package disapper :(
> I can not believe it. They reduced quality of their platform instead
> of increasing it.
>
>
> On Aug 19, 3:53 pm, "Paulo Sergio" <[EMAIL PROTECTED]> wrote:
>   
>> it seems that there will be no support for using bluetooth programatically,
>> but i think the phones will support bluetooth..
>> or so it seems...
>>
>> On Tue, Aug 19, 2008 at 2:42 PM, rezar <[EMAIL PROTECTED]> wrote:
>>
>> 
>>> I'm very disappointed with new SDK, where is bluetooth ?
>>> Bluetooth is going to be the social sensor of the phones. Removing
>>> bluetooth is totally unacceptable.
>>> If there is no bluetooth support I will go for MS windows mobile.
>>>   
> >
>   


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] SDK 0.9-r1 on the way?

2008-08-18 Thread Raymond Rodgers

I'm very new to Android & Android development, in fact I installed the 
SDK and Eclipse plug-in under Windows on Friday night. Today, while 
trying to get the Eclipse plug-in installed and working under Linux, I 
suddenly am not able to get the plug-in pointed to the SDK in the 
Eclipse Preferences panel. I'm getting a message stating:

 "This version of ADT requires the Android SDK version 0.9_r1. Current 
version is m5-rc15. Please update your SDK to the latest version."


Sure enough, m5-rc15 is what I have installed under Windows, and what I 
just downloaded a few minutes ago, but there's no information on 0.9_r1. 
Given that I installed the plug-in through the Eclipse install/update 
method described on the SDK, I'm hoping that the SDK download page will 
be updated with the new version shortly. Can anyone at Google confirm this?

Thanks,
Raymond

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---