[android-developers] Android's UrlConnection doesn't support HTTP 1.1 persistent connections...why?

2012-02-08 Thread Biosopher
As of HTTP 1.1, socket connections should be persisted for re-use
across calls.  This greatly reduces the overhead of network
connections especially for mobile devices

Android's UrlConnection doesn't appear to honor this HTTP 1.1
specification.  E.g. I performed a TCP dump of traffic from my app to
see what was happening. Connection:keep-alive is being sent properly
to my server. My server is then responding with Connection:keep-
alive. However after my app closes the UrlConnection's InputStream,
the underlying socket is being closed as well...instead of being
persisted.

Anyone know a workaround?

NOTE:  HttpClient seems to respect the http.keepAlive.

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


[android-developers] Re: Android's UrlConnection doesn't support HTTP 1.1 persistent connections...why?

2012-02-08 Thread Biosopher
Sorry I mis-typed the problem class.  UrlConnection does properly
supports HTTP 1.1 and persistent connections.  However
DefaultHttpClient does not.  I have validated this by viewing the
packets using WireShark on my Android device.

-- 
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: Accessing Facebook photos from the Contacts provider

2011-01-12 Thread Biosopher
After scouring the web and confirming it myself, Facebook's photos are
stored in a manner that prevents access by other apps.  This inability
to access Facebook sync'd photos is a side effect of how Facebook
syncs contacts.

Facebook creates an account on the device using Android's
AccountManager (http://developer.android.com/reference/android/
accounts/AccountManager.html) which creates a secure space in which an
app can store sync'd contact information.  Using AccountManager to
create accounts for storing contact information is the Android
recommended way to sync contact information.

Short of it then?  Facebook's uses the standard Account/Contact
syncing functions built into Androidand these functions prevent us
from getting those photos.  Makes sense from a security and
permissions perspective.

-- 
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: Accessing Facebook photos from the Contacts provider

2011-01-11 Thread Biosopher
That's right, appel.  I'm trying to access the FB contacts through the
ContactsContract.  Seems like the Facebook photos are stored with
special permissions.

I can get an FB photo's row _id from the Photos db but cannot retrieve
the photo for some reason.

-- 
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] Accessing Facebook photos from the Contacts provider

2011-01-10 Thread Biosopher
From what I've read so far, it's not possible to access any of the
photos that Facebook syncs to the Contacts provider.

Does anyone know a way around this other than (1) asking the user to
login with their Facebook credentials, (2) downloading the photos
again using the FB social graph, and (3) save these images to your own
space in the Android Contacts provider?

Even if I did this, how can I ensure my photos the one display by
Android in the Contacts app?

Thanks in advance

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


[android-developers] Re: How does Beautiful Widget do it?

2011-01-10 Thread Biosopher
That was it Mort.  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


[android-developers] How does Beautiful Widget do it?

2010-12-14 Thread Biosopher
Does anyone know how Beautiful Widget shows clouds floating over the
top of all the desktop icons as well as over the top of any running
application on device unlock?  It seems odd that they would be able to
grab the render buffer of a running application and display info above
it.

Any info would help!

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


[android-developers] Re: How does Beautiful Widget do it?

2010-12-14 Thread Biosopher
Thanks for the hint, Pent.  Sadly not enough to go on there.  The app
permissions are:

Storage
Your Location
Network Communicaitons
System Tools

Mabye something in System Tools?

Please offer any more advice of you have it?  Anyone?

-- 
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] Allowing one .apk to install another?

2010-11-23 Thread Biosopher
We are providing an Android Service to multiple customers for
packaging into their .apks and need to ensure that only a single
instance of our Service is running at a time.  The ideal situation
would be this:

When one of our customers's apps is installed on a device, it looks
for instances of our Service. If our service is not present, our
customer's app would install our Service.  If our Service was present,
the customer's app would use the existing Service.  If the currently
installed Service was an older version, our customer's app would
upgrade the current Service with the newer one.

We are pursuing a Shared Library solution, but this introduces many
extra issues: access to resources, declaration of our Services in the
customer manifest,   Instead, we prefer to provide our customers
with an .apk that would be optionally installed.

Has anyone tried to do anything similar?

-- 
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] WebView.setEmbeddedTitleBar (public API or not?)

2010-06-11 Thread Biosopher
BrowserActivity uses WebView.setEmbeddedTitleBar to create the cool
search bar feature at the top of it's web pages.  This embedded title
bar doesn't zoom when the users zoom the web page or scroll left/
right.

My question is whether WebView.setEmbeddedTitleBar is a public API?
The source shows that WebView.setEmbeddedTitleBar is a public method
but when I look at the API documents here it doesn't show up:

http://developer.android.com/reference/android/webkit/WebView.html

So are we allowed to use WebView.setEmbeddedTitleBar or could it
disappear sometime in the near future?

Thanks,
Anthony

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


[android-developers] How do we attach an image/files to a forum posting?

2010-06-04 Thread Biosopher
I've seen a few people attached images  files to their posts.

Could somebody explain how I can do this?  I don't see any options for
doing this when I post a message.

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


[android-developers] Re: How do we attach an image/files to a forum posting?

2010-06-04 Thread Biosopher
Figured it out.  Send emails to the Google Group (e.g. android-
develop...@googlegroups.com assuming your a member of the group) along
with image/file attachments.

Here's what I achieved:
http://groups.google.com/group/android-developers/browse_thread/thread/2eb18f338d007b2b#

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


[android-developers] How to have one ContentProvider call another ContentProvider (ContentProvider chaining?)

2010-05-17 Thread Biosopher
I have a ContentProvider class that I want to securely expose to 3rd
party apps using Android's read/write permissions in the provider
tag of the manifest.

I prefer to have two content providers though: my main provider and an
externally accessible provider would access the main provider for
content.

This isn't working though because I get this error when a 3rd party
app calls my external provider:
UnsupportedOperationException: Only CrossProcessCursor cursors are
supported across process for now.

The programming logic for this error is that ContentResolver's wrap
cursors within a CursorWrapperInner class that doesn't extend
CrossProcessCursor.

Curiously the 3rd party app doesn't throw an exception if calling my
main provider directly.  The exception only occurs when one provider
calls another.

I hope somebody can make sense of this and offer a suggestion.

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


[android-developers] ContentProvider: multiple read/write permissions

2010-05-17 Thread Biosopher
I need to ship my content provider with multiple read/write
permissions.  Can I simply enter the permissions as a comma separated
list as below?

provider android:name=.HelloProvider
android:authorities=com.android.HelloPlugin
android:writePermission=xxx, yyy, zzz
android:readPermission=xxx, yyy, zzz/

-- 
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] DDMS not showing all active processes for my Nexus One

2010-05-15 Thread Biosopher
This problem came up recently but everything seemed to work fine
before.  I am using the application flag:

android:debuggable=true

For some reason though, DDMS is not showing my application's active
processes on my Nexus One.

Anyone with recommendations?  I've already rebooted both my laptop,
Eclipse, and my phone.

-- 
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] Why add child Activities to TabActivity instead of simply using Views

2010-03-17 Thread Biosopher
I've been programming in Android for two years now and just joined an
Android project where they are using a TabActivity to host multiple
Activities.  It's unclear why this is better than rewriting the
TabActivity to simply use Views instead.

TabActivity extends ActivityGroup which means TabActivity can host
both Activities and Views.  But what's the use of this capability?  I
was under the impression that Activities should be treated as
individual screens of an application.

In short, what is an example use case where it's recommended that
TabActivity should host multiple Activities rather than multiple
Views?

Any insights much appreciated!

-- 
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: Digicert signed https certificate throwing SSLException (Not trusted server certificate)

2010-02-08 Thread Biosopher
FYI...in our case, the certificate was not installed properly on the
server.

You can test your certificate here:  http://www.digicert.com/help.

Make sure to scroll to the bottom as some error only show up a few
pages down.

-- 
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: Multi-threaded http requests cause exception

2010-01-28 Thread Biosopher
Hi Frank,

Thanks for pointing me back to AsyncTask.  I had seen AsyncTask but
hadn't updated my code to it.  Instead I had relied on Threads and
Handlers as they had worked without a problem before.  I'm still
unsure why the Thread and Handler setup wasn't working, but now that
I've updated to AsyncTask everything is working great.

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


[android-developers] AsyncTask and simultaneous network downloads

2010-01-28 Thread Biosopher
I am performing several https posts and http downloads from two
different servers using AsyncTasks.  The connections are fairly quick
but I'm surprised to see that they are running synchronously instead
of in parallel.

To be more explicit, here is pseudo-code for what's happening when I
initiate a call to AsyncTask1():

AsyncTask1 {
for (i=1 to 3) {
result = getDataFromServer1();
moreDataUrl = parseResult(result);

secondNetConnect = new AsyncTask2();
secondNetConnect.doInBackground(moreDataUrl);
}
}

AsyncTask2 {
connects to 2nd server
}

What ends up running is this every time:
AsyncTask1a, AsyncTask1b, AsyncTask1c, AsyncTask2a, AsyncTask2b,
AsyncTask2c

I would have expected at least some interleaving of the AsyncTask1 and
AsyncTask2.  Is there a known issue with non-simultaneous network
calls in Android using AsyncTask?

Thanks,
Anthony

-- 
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: AsyncTask and simultaneous network downloads

2010-01-28 Thread Biosopher
Thanks Streets.  That appears to be the issue, however it's odd that
I'm hitting AsyncTask's thread pool limit so quickly with just 3 tasks
running.  Looking at AsyncTask's code, I see these values:

private static final int CORE_POOL_SIZE = 1;
private static final int MAXIMUM_POOL_SIZE = 10;

While the core pool size is 1, I should still get up to 10 threads.
Instead I seem to only be getting 1.

-- 
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: AsyncTask and simultaneous network downloads

2010-01-28 Thread Biosopher
Hi Jason.  Thanks for requesting the clarification.  My code is
actually calling AsycnTask.execute().  I should have made that clearer
in my pseudo-code.

The description above shows all threaded portions of the app.  I
stripped down to a basic test implementation to isolate the
multithreading for performance testing.

I need to find an easy way to see if I'm somehow hitting the max pool
size or whether the additional threads in the pool are not being
generated/used for some reason.

-- 
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: AsyncTask and simultaneous network downloads

2010-01-28 Thread Biosopher
Here's the code:

public class ProcessFiles extends AsyncTaskVoid, String,Void {

protected Void doInBackground(Void unused) {

File sdcard = new File(/sdcard);
for (int i = 0; i  sdcard.list().length; i++) {
File file = new File(sdcard,sdcard.list()[i]);
try {
FileInputStream is = new FileInputStream(file);
String artUrl= artFinder.findArtwork(is, this,
context);
publishProgress(artUrl);
if (fingerprinter.getError() != null) {
break; // Error occurred so quit
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
return null;
}

public void onProgressUpdate(String artUrl) {
ArtRetrievalTask task = new ArtRetrievalTask();
task.execute(artUrl);
}
}
}

public class ArtRetrievalTask extends AsyncTaskString ,
Void,Drawable {

protected Drawable doInBackground(String artUrl) {
Drawable art = null;
if (artUrl != null  artUrl!= null) {
try {
HttpClient client = new DefaultHttpClient();
HttpParams params = client.getParams();
HttpConnectionParams.setConnectionTimeout(params, 
15000);

HttpGet httpGet = new HttpGet(artUrl);
HttpResponse httpResponse = client.execute(httpGet);
HttpEntity responseEntity = httpResponse.getEntity();
byte[] artData = 
EntityUtils.toByteArray(responseEntity);

if ( artData != null  artData .length  0) {
// We could store the cover art onto 
the hard drive.  For this
demo however, we simply load directly into
// a Drawable for display by the UI.
ByteArrayInputStream is = new 
ByteArrayInputStream(artData );
art = Drawable.createFromStream(is, 
src);
}
} catch (SocketTimeoutException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}
return coverArt;
}

protected void onPostExecute(Drawable   coverArt) {
imageView.setImageDrawable(coverArt);
}
}
}

-- 
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: AsyncTask and simultaneous network downloads

2010-01-28 Thread Biosopher
HttpClient doesn't serializing the requests from what I can tell.
Before switching to AsyncTask, I was using Threads and the http
requests were running in parallel.  It's only since I switched to
AsyncTask that everything started running in parallel.

-- 
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: AsyncTask and simultaneous network downloads

2010-01-28 Thread Biosopher
Got an update here.  The AsyncTask code above appears to run in
parallel on a device.  Maybe there's something non-parallel in the
Emulator's version of AsyncTask?

-- 
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] Multi-threaded http requests cause exception

2010-01-27 Thread Biosopher
I have an app making an https post on one thread while performing a
file download on another thread.  For some odd reason, I am getting a
ClientProtocolException saying that The server failed to respond with
a valid HTTP response.  The error goes away if everything is run on a
separate thread.

Oddly if I run the two server requests in serial, the error goes
away.  It seems there's a bug that happens when two requests are made
at the same time.

Important note:  The post occurs to a different server than the
download so the servers themselves should not be causing the problem.

The code is simple.  Here's the file download code:

HttpGet httpGet = new HttpGet(url);
HttpClient client = new DefaultHttpClient();
HttpParams params = client.getParams();
HttpConnectionParams.setConnectionTimeout(params, 15000);
HttpResponse httpResponse = client.execute(httpGet);
HttpEntity responseEntity = httpResponse.getEntity();
byte[] data = EntityUtils.toByteArray(responseEntity);

The post code's the same except for these additional lines:

HttpPut httpPut = new HttpPut(url);
httpPut.addHeader(Content-Type, text/xml);
httpPut.setEntity(new StringEntity(postData, UTF-8));
BasicHttpParams parameters = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(parameters, 15000);
HttpClient client = new DefaultHttpClient();
HttpResponse httpResponse = client.execute(httpPut);
HttpEntity responseEntity = httpResponse.getEntity();
metaData = EntityUtils.toString(responseEntity);

Thanks,
Anthony

-- 
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: Multi-threaded http requests cause exception

2010-01-27 Thread Biosopher
I've tracked the problem down to a rather odd place:  Handler.

The first post networking call is kicked off on a separate thread when
the user clicks a button.  When this call returns its result, a
Handler is spawned to update the UI and also download the image data
for display in a newly created ImageView.  If the file download Thread
is started from within the Handler's Runnable, I get the error
described above.  HOWEVER if I spawn the thread outside the Handler's
Runnable, then all works well.  Sadly...I need to make the call from
with the Handler is that's where my ImageView is created.

SO I'm stuck at the moment.  I don't see why spawning a Thread inside
a Handler's Runnable callback should be a problem as I should then be
on the main thread. Curiously I can use Drawable.createFromStream(new
URL(url).getContent()) to create my Drawable without a problem.  I
guess Android's own code knows a workaround to my bug.  However I
actually need the image data for storage to a file first so that
Drawable solution won't work for me.

Time to dig into Android's code to see why Drawable.createFromStream
(new URL(url).getContent()) works inside the Handler while mine
doesn't.

Any other thoughts?

-- 
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: Digicert signed https certificate throwing SSLException (Not trusted server certificate)

2010-01-26 Thread Biosopher
Solved my problem.  Turns out I didn't have my intermediate
certificates installed properly.

-- 
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] Https: CertPathValidatorException (TrustAnchor for CertPath not found)

2010-01-25 Thread Biosopher
The Error:

Unexpected network error while connecting to web service: Not trusted
server certificate
javax.net.ssl.SSLException: Not trusted server certificate at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake
(OpenSSLSocketImpl.java:363)
.
Caused by: java.security.cert.CertificateException:
java.security.cert.CertPathValidatorException: TrustAnchor for
CertPath not found.
...

The Question:  There are discussions all around about problems when
https connecting Android to validly signed servers, but nobody has
found an effective solution besides bypassing the certificate
validation process.  And I'm not talking about the understandably
questionable self-signed certificates.

I'm connecting to a DigiCert-signed server so I don't see what the
problem is.  DigiCert appears to be a widely used certificate signer
so I can't believe all their certs are all invalid on Android.  That
leads me to another possible answer: that Android is misprocessing
some part of DigiCert-signed certificates.  This would appear to be
true as the error above talks about TrustAnchor for CertPath not
found.

Sadly I have no idea what a  TrustAnchor is or how the validate
whether the CertPath is properly structured...

Anybody...?

-- 
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] Service callback to Activity

2010-01-13 Thread Biosopher
Our application will expose a Service that can be called by Activities
in other people's applications.  In many cases, the parent
applications calling Activity may be paused before our Service
completes.

I am looking for the best way for a Service to communicate back to the
calling Activity that may have been paused.  These are the known
options:

(1) Require calling Activities to have a registerReceiver() with a
custom action and broadcast to that from our Service. The only way to
secure this registerReceiver() is with a signature-based permission.
As our Service communicates with any number of unknown 3rd party apps,
we can't sign our Service's parent app with all these unknown
certificates.  These apps would therefore be exposing an unsecured
registerReceiver() on their Activity.  Would ideally like to avoid
requiring this.

(2) Create a PendingIntent to send results back to the activity and
give it to our Service. Our Service would send data to calling
Activity's onActivityResult(). Each time the result is delivered, the
calling Activity will go through onPause() and onResume() but this
should be OK.

(3) The calling Activities could create a Handler.  The Activity would
then create a Messenger pointing to that Handler and send it to our
service. Our Service can then use the Messenger to deliver our message
back to the calling Activity.

Any other ideas?
-- 
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] AudioRecord works with short but static with byte

2010-01-08 Thread Biosopher
Any idea why reading bytes from AudioRecord would cause an error while
reading shorts would not?  The sound comes through great with short
but I get only static with bytes.

Working code with short[]:

int minBufferSize = AudioRecord.getMinBufferSize(this.getSampleRate(),
  
this.getChannelConfiguration(),
  
this.getAudioEncoding());

AudioRecord recordInstance = new AudioRecord
(MediaRecorder.AudioSource.MIC,

this.getSampleRate(),

this.getChannelConfiguration(),

this.getAudioEncoding(),

minBufferSize );
bufferedStreamInstance = new BufferedOutputStream(new FileOutputStream
(this.pcmFile));
DataOutputStream dataOutputStreamInstance = new DataOutputStream
(bufferedStreamInstance);

short[] tempBuffer = new short[minBufferSize ];
recordInstance.startRecording();
while (totalBytesRead  timeToRecord*sampleRate) {
bufferRead = recordInstance.read(tempBuffer, 0, minBufferSize );

for (int idxBuffer = 0; idxBuffer  bufferRead; ++idxBuffer) {
dataOutputStreamInstance.writeShort(tempBuffer[idxBuffer]);
}
}

//  Close resources…
recordInstance.stop();
bufferedStreamInstance.close();

If I just change these two lines though, I get static:

1) Change:
short[] tempBuffer = new short[minBufferSize];

To this:
byte[] tempBuffer = new byte[minBufferSize];

2) And this:
for (int idxBuffer = 0; idxBuffer  bufferRead; ++idxBuffer) {
dataOutputStreamInstance.writeShort(tempBuffer[idxBuffer]);
}

To this:
dataOutputStreamInstance.write(tempBuffer, 0, bufferRead);

Anyone else experience this or have suggestions?


-- 
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: AudioRecord works with short but static with byte

2010-01-08 Thread Biosopher
Interesting point, Jason.

However I'm reading a byte at a time so each short is read (just one
byte at a time).  There shouldn't be anything leftover to be missed.

More important though, I'm reading the byte[] using a method provided
by Android's AudioRecord.

read(byte[] audioData, int offsetInBytes, int sizeInBytes)
Reads audio data from the audio hardware for recording into a buffer.
-- 
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: AudioRecord works with short but static with byte

2010-01-08 Thread Biosopher
I agree Jason.  It seems requesting the 16 bit format results in a
short array being returned: AudioFormat.ENCODING_PCM_16BIT.

For byte[], I would need to use this format: int audioEncodingFormat =
AudioFormat.ENCODING_PCM_8BIT;

Curiously it seems that AudioFormat.ENCODING_PCM_8BIT doesn't seem to
work.  Other people have posted problems using
AudioFormat.ENCODING_PCM_8BIT.

Guess I'll stick with AudioFormat.ENCODING_PCM_16BIT and covert to
bytes afterwards:

pcmData[totalBytesRead] = (byte) tempBuffer[idxBuffer];
pcmData[totalBytesRead+1] = (byte) (tempBuffer[idxBuffer]  8);
totalBytesRead += 2;



-- 
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: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-07 Thread Biosopher
The Dalvik JIT appears to result in a 1.7x improvement when run on an
armv7.

Here's the post from the Android team:
http://groups.google.com/group/android-platform/browse_thread/thread/331d5f5636f5f532/dee6e0a81ae72264?#dee6e0a81ae72264

The Android team's independent benchmark results are here (done by
0xlab): 
http://groups.google.com/group/0xlab-devel/browse_thread/thread/1edef26f4e5b7427


-- 
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: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-07 Thread Biosopher
Hi dm1973,

Actually these tests are not useless.  Of course good modern compilers
should optimize away the code above.  The reality is that the Android
compiler is not a good compiler so it does not optimize the above
code.  This allows the simple example above to show the performance
limitations of the Dalvik compiler.

The point of my sample code above is to quickly show the Dalvik vs C
performance without showing all the extraneous supporting code for
running the test.  It's easy enough to subtly change the example
posted above so it doesn't get optimized away though even by a good
compiler.  I.e. simply return the value from the method above and post
it to a text field in Android or log it in in C.  I actually ran the
tests that way (where the processing is not optimized away) to get the
results that I posted above.
-- 
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: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-07 Thread Biosopher
Just following up to my initial post, I have implemented the above
look in native code using Android's SDK.  The native code performs in
a few milliseconds as hoped.  This goes to confirm that for compute
intensive tasks, Dalvik can be hundreds of times slower than native.
-- 
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] Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-06 Thread Biosopher
I'm writing a processing intensive digital sound processing app
(requires numerous (50,000) Fast Fourier Transforms - FFT).  This
challenge led me to perform basic performance tests of Android running
on an HTC Hero.

The results show the Dalvik VM to be 20 times slower than a modern
JIT-enabled JVM running J2ME and 25-50 times slower than a C program
performing the same operations on a similarly powered mobile phone.

For example, this simple iteration over an empty method 2 million
times takes 1.4 seconds even though it doesn’t do anything.  The same
iteration is performed in milliseconds by a C program and about 100ms
on a modern JVM

public void performanceTest1() {
for (int i = 0; i  200; i++) {
emptyMethod();
}
}

private int emptyMethod() {
return 0;
}

Doing something a little more complex like calculating the imaginary
component of a complex conjugate 2 million times takes 3.2 seconds.
Again, this takes milliseconds on other mobile phones running J2ME or
C.

public void performanceTest2() {
for (int i = 0; i  200; i++) {
int a  = 5;
int b  = 5;
int c  = 5;
int x  = 5;
int y  = 5;

y = ((a  16) * ((c  16)  16)) + (((a  0X) * ((c 

16)  16))  16);
y = -y;
y  += ((b  16) * (c  16)) + (((b  0X) * (c  16)) 

16);
}
}

Has anyone else been able to overcome these performance issues of
Android?

-- 
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: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-06 Thread Biosopher
Thanks Niko,

I've been researching the NDK and am about to run the same performance
tests there as well.  I really didn't want to add the additional
complexity of the NDK but seems that might be the only solution.

I found a blog documenting the same performance issues so it appears
my own findings aren't completely whacked:

http://occipital.com/blog/2008/10/31/android-performance-2-loop-speed-and-the-dalvik-vm/

Cheers,
Anthony
-- 
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] Classes missing from .apk file

2009-12-26 Thread Biosopher
My Eclipse has been working with Android for a couple years, but all
of a sudden I got this strange bug:

I needed to update an old Android 1.0 project to 1.5 so I created a
new project in Eclipse and copied my old files into this new project.
Everything compiled fine but when I launched the emulator, I got an
error that it couldn't find any of my .class files.

I looked at my .apk and it has all my layout and image files but none
of my .class files.  Any suggestions on what might be wrong?  The
compiled .classes are in my /bin directory but are somehow not being
packaged into the .apk

Thanks,
Anthony

-- 
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: Classes missing from .apk file

2009-12-26 Thread Biosopher
Note:  I did a fresh clean and rebuild but that hasn't helped either...

-- 
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: Classes missing from .apk file

2009-12-26 Thread Biosopher
OK...maybe my question was posed improperly.  It seems the .apk
doesn't contain individual class files.  Instead the .class files are
first compressed into classes.dex which is then packaged into
the .apk.

My .apk does have a classes.dex so supposedly my classes are in
the .apk.  That still doesn't explain why my .class files are not
being found my the emulator...!   Aaaarrgh...it all compiles too...

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


[android-developers] Why must WebView display local files via a ContentProvider?

2008-11-05 Thread Biosopher

In case you hadn't heard, WebView won't display local files directly
via loadUrl(file://YOUR_PATH/file.html).  All the solutions create a
ContentProvider to access the local files and send them to a WebView
using ContentProvider.openFile().

This approach seems less secure than simply sending my locally created
application files files directly to WebView.  My app creates and
stores the files in my sandboxed local file directory so they should
be inaccessible to anyone and thus secure.

I know the standard response for why this is:  That WebView's access
to local files would be insecure.

But why is it safer to wrap files into a ContentProvider and then feed
them to WebView when the purpose of a ContentProviders is mostly to
share content between apps.. .which I won't be doing?

So my questions:
1) What was wrong with the local file solution for WebView.loadUrl().
2) Why is it safer to wrap my local files into a ContentProvider?

Thanks,
Anthony
--~--~-~--~~~---~--~~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ArrayAdapter

2008-10-30 Thread Biosopher

I used notifyDataSetChanged() and it works fine for me.  Here's my
complete code with the notifyDataSetChanged() at the bottom in the
selection listener:

package com.pocketjourney.location.map;

import java.util.List;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;

import com.pocketjourney.R;
import com.pocketjourney.location.DestinationModel;

public class DestinationTypesListAdapter  extends BaseAdapter
implements OnItemClickListener

{
private ListStringallTypes, activeTypes;

private ListView destinationTypeList;

public DestinationTypesListAdapter(ListView destinationTypeList)
{
this.destinationTypeList = destinationTypeList;

this.allTypes = DestinationModel.getAllDestinationTypes();
this.activeTypes = DestinationModel.getActiveDestinationTypes();

destinationTypeList.setOnItemClickListener(this);
}

public View getView(int position, View convertView, ViewGroup
parent)
{
View destinationTypeLabel = null;
if ( convertView == null )
{
LayoutInflater inflater =
(LayoutInflater)parent.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
destinationTypeLabel =
inflater.inflate(R.layout.list_item_destination_type, null);
} else {
destinationTypeLabel = convertView;
}

String destinationType = (String) getItem(position);
TextView destinationTypeText = (TextView)
destinationTypeLabel.findViewById(R.id.destination_type);
destinationTypeText.setText(destinationType);

ImageView typeSelectedImage= (ImageView)
destinationTypeLabel.findViewById(R.id.destination_type_selected);
if (activeTypes.contains(destinationType)) {

typeSelectedImage.setImageResource(R.drawable.list_selection_checkmark);
} else {
typeSelectedImage.setImageResource(R.drawable.empty);
}

return destinationTypeLabel;
}

public int getCount()
{
return allTypes.size();
}

@Override
public Object getItem(int position)
{
return allTypes.get(position);
}

@Override
public long getItemId(int position) {
// We can simply use the array index as a unique id.
return position;
}

/**
 *  Implementation of OnItemClickListener
 */
@Override
public void onItemClick(AdapterView adapterView, View view, int
position, long id)
{
String destinationType = (String) getItem(position);
if (activeTypes.contains(destinationType)) {
activeTypes.remove(destinationType);
} else {
activeTypes.add(destinationType);
}
DestinationModel.setActiveDestinationTypes(activeTypes);
notifyDataSetChanged();
}
}

--~--~-~--~~~---~--~~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: What's the Cost ??

2008-10-23 Thread Biosopher

The lock may be built into the phone's ROM...so a rebuild of Android's
source code won't work.

As the G1 runs on T-Mobile's 3G which uses a different 3G bandwidth
than ATT's, you'll be stuck with the EDGE network if you use your
ATT SIM in your T-Mobile G1.

--~--~-~--~~~---~--~~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: java.lang.VerifyError

2008-09-23 Thread Biosopher

Tracked down this bug in my own code.  Turns out that my .jar file was
incomplete
(missing a .class file).  Now that the .class is added back, all works
fine.

- Anthony
--~--~-~--~~~---~--~~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: anyone has problem with verifyError?

2008-09-23 Thread Biosopher

Tracked down the same VerifyError in my own code.  Turns out that
my .jar file was incomplete
(missing a .class file).  Now that the .class is added back, all works
fine.

You might get this error if your .jar is not properly added to the
project as well.

- Anthony
--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with verifier

2008-09-23 Thread Biosopher

Tracked down the same VerifyError in my own code.  Turns out that
my .jar file was incomplete
(missing a .class file).  Now that the .class is added back, all works
fine.

You might get this error if your .jar is not properly added to the
project as well.

- Anthony
--~--~-~--~~~---~--~~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: java.lang.VerifyError with 0.9

2008-09-23 Thread Biosopher

Tracked down the same VerifyError in my own code.  Turns out that
my .jar file was incomplete
(missing a .class file).  Now that the .class is added back, all works
fine.

- Anthony
--~--~-~--~~~---~--~~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: anyone has problem with verifyError?

2008-09-19 Thread Biosopher

I'm getting this same VerifyError:

WARN/dalvikvm(2026): VFY: unable to resolve static method 804: Lcom/
pocketjourney/view/util/HtmlUtils;.shortenHtml (Ljava/lang/
String;I)Ljava/lang/String;
WARN/dalvikvm(2026): VFY:  rejecting opcode 0x71 at 0x0022
WARN/dalvikvm(2026): VFY:  rejected Lcom/pocketjourney/model/
businessobject/Journey;.init (Ljava/lang/String;Ljava/lang/
String;Lcom/pocketjourney/model/businessobject/JourneyGuide;Lcom/
pocketjourney/model/location/City;)V
WARN/dalvikvm(2026): Verifier rejected class Lcom/pocketjourney/model/
businessobject/Journey;

Is anyone else solved this problem?

--~--~-~--~~~---~--~~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: java.lang.VerifyError

2008-09-19 Thread Biosopher

Same problem here.  Is there a PERMISSION variable that must be set in
the manifest.xml file or something?

--~--~-~--~~~---~--~~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: About highlightbar in the List

2008-06-20 Thread Biosopher

I'm still confused as to why touching the screen does not show a
highlight.  Is there a usability reason for this or is it a technical
limitation?

From my POV, a highlight on touch would seem the most natural
approach.

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



[android-developers] Re: 3 new Android tutorials on how to build a service enabled Android app

2008-06-06 Thread Biosopher

My guess is your online multi-player game is checking a remote server
to see what actions other users are taking.  All those server calls 
responses should be performed in a Service.  Is that what you were
asking about?

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



[android-developers] Re: LifeCycleDemo - android.app.Activity

2008-06-05 Thread Biosopher

Thanks for the video, Damien.

I just posted about the video on my own blog so you should be getting
more traffic sent your way:  http://blog.pocketjourney.com

Cheers,
Biosopher
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: SDK Update?

2008-05-11 Thread Biosopher

We need regular updates...especially because this isn't a shipped
product so Google should be providing updates more rapidly.  Google's
stated approach to dev rapid prototyping so they should be putting out
2 new SDKs for each Apple SDK.

That said, I'm glad they didn't put out one during the last month of
the Round One Challenge. A new release might have broken one of the
many work arounds I'd created for the many issues I addressed for
submitting for Round 1.

Now though, I hope many of those bugs have been squashed in the past 2
months.  SO!   Please give us the new SDK as I'm sure I'm no
different from other developers...holding off dev until the new
release comes out.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[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
-~--~~~~--~~--~--~---



[android-developers] Re: Android Developer Registry

2008-04-30 Thread Biosopher

So in the meantime, all interested developers should post their
background/stats info here as described in the initial posting.

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



[android-developers] New tutorial: Image Text-Only Buttons

2008-04-30 Thread Biosopher

There are some great Android screenshots out there!  I've been working
on improving Pocket Journey's UI as I previously focused mostly on the
MediaPlayer functionality.  I now want to pass on a few new UI
techniques I've uncovered.

This new tutorial is very simple and will add to your UI (user
interface) development arsenal.

How?

Buttons that display as simple text or as images are basic elements of
any application. By following the two steps below, these buttons can
be easily created with Android by simply extending the current Button
and ImageButton classes.

You can see the tutorial here:  blog.pocketjourney.com

Cheers,
Biosopher
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Android Developer Registry

2008-04-29 Thread Biosopher

I’ll go first to kickoff the registry.  Here are my stats:

Level: Senior Developer
Android Skills:  Maps, UI component design (user interface), GPS,
MediaPlayer, server-side (JSP/Struts/Ajax)
Project: www.pocketjourney.com
Contribution to above: Founder, CTO, and lead developer
Availability: I am available part/full time depending on project 
compensation
Home: San Francisco, California
Email:  anthony @ pocketjourney dot com

Side note:  Just to clarify, Pocket Journey is a long-term vision
dependent on widespread consumer adoption of GPS-enabled mobile phones
with open APIs (currently only Android).  'Consumer' is the key here
so all of us Android geeks don’t count).  That means I'll have spare
time to work on other Android side projects.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Android Developer Registry

2008-04-29 Thread Biosopher

Thanks Shane.  I tried to find a similar registry at SlideMe.org but
couldn't see anything like I've suggested above.

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



[android-developers] Re: iPhone SDK lacks mapping function

2008-04-23 Thread Biosopher

I'm still digging into the iPhone SDK versus Android diffs.

As you can imagine though, the iPhone's media support is substantially
better than what Android has.  Makes sense though.  The iPhone is a
mobile media play while Android is more of a location-based media
play.

If you're a pure media application provider though, I'd port my
Android app to the iPhone and start taking advantage of the 6,000,000+
iPhones out there.

More differences as I find them.

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



[android-developers] iPhone SDK lacks mapping function

2008-04-22 Thread Biosopher

Yes...you read this post's title correctly.  The iPhone SDK lacks the
basic mapping API required by application developers hoping to tie the
mobile experience to a geo-specific location.  The only mapping
function provided by the iPhone SDK is to send a URL to the iPhone's
built-in Google map application and to let Google handle the rest.

I learned this while researching the iPhone SDK in comparison to the
Android OS.  I wanted to determine how difficult it would be to port
Pocket Journey to the iPhone.  As it turns out, the port could never
happen as it couldn't for the majority of the apps submitted to the
Android Challenge.

If you want, you can read more about this discovery here:
blog.pocketjourney.com.

Cheers,
Biosopher


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



[android-developers] Re: Add more features on my application

2008-04-17 Thread Biosopher

Good luck Moussa,

Great name...hope to have it on my phone sometime.

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



[android-developers] Re: Add more features on my application

2008-04-16 Thread Biosopher

My app requires interaction with the server so I can at minimum tell
you that the judges haven't launched my application yet as there have
been no hits to my sever yet.  And I don't believe my app (pocket
journey) is so awful that it won't get at least an initial run-
through.

Moussa, I saw in another post that you have a 10 person team working
on your app.  Have you announced your app publicly yet?

Anthony

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



[android-developers] Re: Good Luck to everyone !

2008-04-15 Thread Biosopher

Ditto to all that.

It's been a strange wild trip that I never expected when I first heard
about Android...  Kudos to the Google Crew for creating such an
engaging dev experience.

Also a massive high-five to everyone that setup the external sites as
well.  I spent many an hour surfing this forum but many more on
AndDev, OpenAndroid, and the many smaller blogs where people offered
their bits of programming wisdom.

Best of luck to everyone.  Me?  I'll be back here coding away in a
couple weeks, but for now I have planned a 2 week siesta to let my
wrists  head heal..

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



[android-developers] Open for Tutorial Requests

2008-04-09 Thread Biosopher

Pocket Journey would never have made it without all the tutorials and
discussions people have posted. I've created a few tutorials myself,
but wanted to make an offer to help some of you as the deadline nears.

I just posted an announcement video  screenshots of Pocket Journey:

www.pocketjourney.com/androidVideo.do

If there's anything on the video or screenshots that you find of
interest, let me know  I'll do my best to get another tutorial out to
help you.

The few tutorials I've created already cover some of the coding
techniques shown in the screenshots:

www.pocketjourney.com/androidTutorials.do

Of course, a major effort of Pocket Journey has been getting a
community of content created to populate the application along with
server-side data feeds to send the information.  That tutorial would
have to be about partnering and marketing.  ; - )

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