[android-developers] ADT 16 crashes

2012-02-07 Thread theSmith
Eclipse 3.6.2
ADT 16.0.1
OSX 10.6.8

I'm in the process of creating a new library project out of a previous
project and am now trying to create a project that depends on it.
This isn't the first time I've used Libraries and have several that
work just fine.

When trying to build the project (not library) Eclipse encounters an
error (below).  Has anyone seen this before and know how to fix it?

Errors occurred during the build.
Errors running builder 'Android Pre Compiler' on project 'Photomash'.
java.lang.NullPointerException


Stacktrace:

java.lang.NullPointerException
at
com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPath(AaptParser.java:
721)
at
com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptParser.java:
473)
at
com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParser.java:
370)
at
com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParser.java:
204)
at
com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.execAapt(PreCompilerBuilder.java:
784)
at
com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.handleResources(PreCompilerBuilder.java:
689)
at
com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(PreCompilerBuilder.java:
532)
at org.eclipse.core.internal.events.BuildManager
$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
172)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
203)
at org.eclipse.core.internal.events.BuildManager
$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
258)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
311)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
343)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

-- 
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: ADT 16 crashes

2012-02-07 Thread theSmith
Never mind. This is related to custom attributes in a library project
which is still unsupported.



On Feb 7, 5:28 pm, theSmith chris.smith...@gmail.com wrote:
 Eclipse 3.6.2
 ADT 16.0.1
 OSX 10.6.8

 I'm in the process of creating a new library project out of a previous
 project and am now trying to create a project that depends on it.
 This isn't the first time I've used Libraries and have several that
 work just fine.

 When trying to build the project (not library) Eclipse encounters an
 error (below).  Has anyone seen this before and know how to fix it?

 Errors occurred during the build.
 Errors running builder 'Android Pre Compiler' on project 'Photomash'.
 java.lang.NullPointerException

 Stacktrace:

 java.lang.NullPointerException
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPa 
 th(AaptParser.java:
 721)
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptPars 
 er.java:
 473)
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse 
 r.java:
 370)
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse 
 r.java:
 204)
 at
 com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.exec 
 Aapt(PreCompilerBuilder.java:
 784)
 at
 com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.hand 
 leResources(PreCompilerBuilder.java:
 689)
 at
 com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.buil 
 d(PreCompilerBuilder.java:
 532)
 at org.eclipse.core.internal.events.BuildManager
 $2.run(BuildManager.java:629)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 172)
 at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 203)
 at org.eclipse.core.internal.events.BuildManager
 $1.run(BuildManager.java:255)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 258)
 at
 org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.j 
 ava:
 311)
 at
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
 343)
 at
 org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
 144)
 at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
 242)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

-- 
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: Fragment Support forward compatibility?

2011-05-22 Thread theSmith
Did the recent update to the ACL fix the issues with aminations?

-theSmith

On Apr 15, 4:50 am, alevapi alexis.vapil...@gmail.com wrote:
  in the current static library animations are broken.
  I have a fix that will be available in a later update

 When do you think the fixed version will be available?
 I'd love to use fragments on Gingerbread, but fragments with no
 transition animation are a little too boring :(

 --
 Alexis.

 On 11 mar, 03:14, Dianne Hackborn hack...@android.com wrote:







  Note that in the current static library animations are broken.  I have a fix
  for this that will be available in a later update.

  On Thu, Mar 10, 2011 at 4:57 PM, davemac davemac...@gmail.com wrote:
   There are some subtle differences between the Fragment compatability
   library and the native Fragment support in Android 3.0. For example,
   the setCustomAnimations() method on FragmentTransaction can use the
   new ObjectAnimator in Android 3.0 (see android.R.animator), but must
   use the older anim transitions pre-3.0 (see android.R.anim).

   - dave

   On Mar 9, 7:54 pm, Mark Murphy mmur...@commonsware.com wrote:
On Mon, Mar 7, 2011 at 5:35 PM, Neal Sanche thorins...@gmail.com
   wrote:
 I guess I just wanted to ask if, when this compatibility library was
 developed, the design intent was to allow applications to run on
 Android 1.6 - Android 3.0 inclusive without needing to change the
 code?

Yes, that was the intent.

--
Mark Murphy (a Commons Guy)http://commonsware.com|
  http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

Android Training Worldwide:http://commonsware.com/training

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

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.

-- 
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: Submit Android form data to the web via POST

2010-06-09 Thread theSmith
I saw your entry on stackoverflow too.
http://stackoverflow.com/questions/245/submit-form-with-post-data-in-android-app

I would suggest using the Apache libraries (all the http client, get/
post, response stuff) and parsing the data your self. If they just
wanted a webview the user might as well just open the browser
initially.
On another note if you really want a webview make sure to enable
javascript manually (could be the problem of things not displaying
correctly)

Some pointers with the network communication on Android.
Use an AsyncTask to put the network comm on another thread (gets it
off the UI thread).
Make good use of try-catch blocks and let the user know whats going on
when things get ugly (very important to a good user experience)

If you need some more tips feel free to ask.

-Chris
---
Creator of My College Life
http://mycollegelife.org

On Jun 8, 1:54 pm, datguywhowanders datguywhowand...@gmail.com
wrote:
 I've been searching the web for a way to do this for about a week now,
 and I just can't seem to figure it out.

 I'm trying to implement an app that my college can use to allow users
 to log in to various services on the campus with ease. The way it
 works currently is they go to an online portal, select which service
 they want, fill in their user name and pwd, and click login. The form
 data is sent via post (it includes several hidden values as well as
 just the user name and pwd) to the corresponding login script which
 then signs them in and loads the service.

 I've been trying to come at the problem in two ways. I first tried a
 WebView, but it doesn't seem to want to support all of the html that
 normally makes this form work. I get all of the elements I need,
 fields for user and pwd as well as a login button, but clicking the
 button doesn't do anything. I wondered if I needed to add an onclick
 handler for it, but I can't see how as the button is implemented in
 the html of the webview not using a separate android element.

 The other possibility was using the xml widgets to create the form in
 a nice relative layout, which seems to load faster and looks better on
 the android screen. I used EditText fields for the input, a spinner
 widget for the service select, and the button widget for the login. I
 know how to make the onclick and item select handlers for the button
 and spinner, respectively, but I can't figure out how to send that
 data via POST in an intent that would then launch a browser. I can do
 an intent with the action url, but can't get the POST data to feed
 into it.

 Anyone have any 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: Submit Android form data to the web via POST

2010-06-09 Thread theSmith
@ko5tik,

I was simply referring to the libraries included with android,
specifically the org.apache.http.* ones.

-chris

On Jun 9, 4:03 pm, ko5tik kpriblo...@yahoo.com wrote:
 You do not need additional libraries, as android already got
 HttpClient
 I do following:
 -%---
  httpClient = new DefaultHttpClient();

 HttpPost httpRequest = new HttpPost(PUSH_URL);
  ListNameValuePair pairs = new ArrayListNameValuePair();
  pairs.add(new BasicNameValuePair(name, entry.getName()));
 ...

 httpRequest.setEntity(new UrlEncodedFormEntity(pairs));

 HttpResponse response = httpClient.execute(httpRequest);

 -%-

 On Jun 9, 6:44 pm, theSmith chris.smith...@gmail.com wrote:

  I saw your entry on stackoverflow 
  too.http://stackoverflow.com/questions/245/submit-form-with-post-data...

  I would suggest using the Apache libraries (all the http client, get/
  post, response stuff) and parsing the data your self. If they just
  wanted a webview the user might as well just open the browser
  initially.
  On another note if you really want a webview make sure to enable
  javascript manually (could be the problem of things not displaying
  correctly)

  Some pointers with the network communication on Android.
  Use an AsyncTask to put the network comm on another thread (gets it
  off the UI thread).
  Make good use of try-catch blocks and let the user know whats going on
  when things get ugly (very important to a good user experience)

  If you need some more tips feel free to ask.

  -Chris
  ---
  Creator of My College Lifehttp://mycollegelife.org

  On Jun 8, 1:54 pm, datguywhowanders datguywhowand...@gmail.com
  wrote:

   I've been searching the web for a way to do this for about a week now,
   and I just can't seem to figure it out.

   I'm trying to implement an app that my college can use to allow users
   to log in to various services on the campus with ease. The way it
   works currently is they go to an online portal, select which service
   they want, fill in their user name and pwd, and click login. The form
   data is sent via post (it includes several hidden values as well as
   just the user name and pwd) to the corresponding login script which
   then signs them in and loads the service.

   I've been trying to come at the problem in two ways. I first tried a
   WebView, but it doesn't seem to want to support all of the html that
   normally makes this form work. I get all of the elements I need,
   fields for user and pwd as well as a login button, but clicking the
   button doesn't do anything. I wondered if I needed to add an onclick
   handler for it, but I can't see how as the button is implemented in
   the html of the webview not using a separate android element.

   The other possibility was using the xml widgets to create the form in
   a nice relative layout, which seems to load faster and looks better on
   the android screen. I used EditText fields for the input, a spinner
   widget for the service select, and the button widget for the login. I
   know how to make the onclick and item select handlers for the button
   and spinner, respectively, but I can't figure out how to send that
   data via POST in an intent that would then launch a browser. I can do
   an intent with the action url, but can't get the POST data to feed
   into it.

   Anyone have any 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: Is there a library for either choosing a photo or taking one with the camera?

2010-05-16 Thread theSmith
You don't really need a library for this, in fact i would recommend
against it.  What you want to do is use Android's intent based system
for these actions. Intents will let you fire off another app to
complete a task for you (like taking a picture) and then you can get
that picture back as a result.

The docs on intents 
http://developer.android.com/intl/de/guide/topics/intents/intents-filters.html

I'm sure you know how to use google to find the right ones for your
task.

-Chris
---
Creator of My College Life
http://mycollegelife.org

On May 16, 4:38 am, Preston preston.crawf...@gmail.com wrote:
 Trying to find a library or a good example so I can try to get this to
 work within my Android app. 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 
 athttp://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] Re: Which device is best for testing development?

2010-05-08 Thread theSmith
The emulator is absolutely not good enough lol. Even with a high end
computer it is still slower than an actual device (because its doing
hardware emulation).

If you want some serious performance out of your game then get a Nexus
One, Droid or Incredible.

Otherwise feel free to pick up whatever. G1's are relatively cheep if
you get it used but are stuck on 1.6 as of now.


-Chris
---
Creator of My College Life
http://mycollegelife.org

On May 7, 2:14 am, kevin0228ca kevin022...@gmail.com wrote:
 Hi everyone.
 I am starting android development
 which phone is good for testing? or is emulator good enough? I am
 doing game devlopment, 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 
 athttp://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] Re: how to save a temporary file to /cache

2010-04-22 Thread theSmith
Paul,

You cannot write to the top level 'cache' directory.  You must write
to the 'cache' directory in you application's package structure. I'm
not using C so I can't give you an example there, but from java you
can use your application's context to get the cache dir and use an io
stream to write to it.

The file structure looks like this /data/data/your-package-name/cache

---
Creator of My College Life
http://mycollegelife.org


On Apr 22, 2:20 am, paul2000 hubao...@gmail.com wrote:
 any idea about this issue?  thanks!

 On Apr 21, 11:49 am, paul2000 hubao...@gmail.com wrote:



  Hi,

  I created an android application. This application calls C native
  library which requires save a temporary file to /cache. However the
  permission for /cache is  wrxwrx--- with uid=cache and gid=system. so
  the application is not allowed to save a file to /cache.

  Any workaround?

  Thanks for any info,

  -Paul

  --
  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 
  athttp://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 
 athttp://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] Re: how is update performed !

2010-04-17 Thread theSmith
The old version isn't so much as uninstalled as it is updated.  All
external resources like shared preferences, databases etc (your app's /
data/ folder) are not removed.  If you have something on the sd card
it is not removed.

Everything else gets removed and updated, including all the drawables
and layouts in your projects /res/ folder.

---
Creator of My College Life
http://mycollegelife.org


On Apr 17, 1:49 pm, klaus johan rantra...@gmail.com wrote:
 Hi,

 Could someone describe to me what happens when an android application
 is updated? Is it the old version uninstalled and then installed the
 new one ? What about the resources the application might need ?

 --
 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 
 athttp://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] Re: How do know when user launches application

2010-04-08 Thread theSmith
When the launcher is clicked, the current activity is always brought
up if it exists. So if you wanted to return to the parent activity you
would have to either finish the other activities on the stack or
relaunch the original activity.  I can determine this by simply
setting a boolean when your app is paused/resumed etc.

Personally, if your app tried to play a video every time I opened it,
regardless of whether or not I was in a different sub activity, I
would uninstall your app very fast.

---
Creator of My College Life
http://mycollegelife.org

On Apr 8, 11:07 am, Ferm ras...@gmail.com wrote:
 I want to play a video when the main activity launches from the
 appicon.

 Application.onCreate() is not always called and Activity.onResume/
 onCreate is called to many times (e.g. when user goes back from child
 activity).

 How can I do this?
 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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: connecting to internet via app

2010-04-07 Thread theSmith
What do you mean enable? If you mean bypass the permission, then no.
But if you application has the internet permission then you can
connect several different ways.  Either using the apache http library
or I believe you can also use sockets (but I never have).  Using the
apache library I know it doesn't matter which type of connection the
device has, so long as it has a connection.


--
Creator of My College Life
http://mycollegelife.org

On Apr 7, 9:15 am, Ashish Mahamuni ashish531...@gmail.com wrote:
 Hi

 Is there any way to start/enable the internet through Wifi/GPRS/EDGE/UMTS
 from my android application??

 Thanks and Regards.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: How to save both Image and Text with SQLiteDatabase? And how to binding this images to a simpleCursorAdapter?

2010-04-07 Thread theSmith
David,

Why would you want to save the image in the sqLite database?  I feel
like you are using up an unnessary amount of valuable storage space on
the device.  Wouldn't a better solution be to save the image to the SD
card and only save the location of the image to the database?

---
Creator of My College Life
http://mycollegelife.org

On Apr 7, 9:02 am, AJ ajeet.invinci...@gmail.com wrote:
 Hi David,
 Sorry I don't have any such project/source.
 You can check the following link. It may help you.

 http://groups.google.com/group/android-developers/browse_thread/threa...

 Thanks,
 AJ

 On Apr 7, 1:54 pm, David android.and...@gmail.com wrote:

  Hi AJ,

  I just development the project with SDK 2.1, and I found the 
  bookmark in android browser can match my requirement, but is there any 
  source project can run on the emulator?

  The other question, if user click the item on the listview, the app 
  will create a new Activity to show the details of this item, I hope user 
  can use finger to slip right/left to review next/previous item page?

  Thanks in advance.

  Best Regards,
  D.Y

  -邮件原件-
  发件人: android-developers@googlegroups.com 
  [mailto:android-develop...@googlegroups.com] 代表 AJ
  发送时间: 2010年4月7日 18:34
  收件人: Android Developers
  主题: [android-developers] Re: How to save both Image and Text with 
  SQLiteDatabase? And how to binding this images to a simpleCursorAdapter?

  Hi David
  There in Bookmarks [Android Browser] same thing has been done. You can
  refer that.  You can find the code as well.

  Thanks,
  AJ

  On Apr 7, 1:13 pm, David android.and...@gmail.com wrote:

   Dear All,

I want get both Image and Text from the sqLite database and show
   them on the ListView,  at present, I can save the text with sqLite well, 
   but
   failed to save the imges.

Any sample code will be grateful.

   Best Regards,

   D.Y

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

  To unsubscribe, reply using remove me as the subject.

-- 
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: Copy a Table

2010-04-06 Thread theSmith
I believe this is what you want.

DROP TABLE character2

SELECT *
INTO character2
FROM character3

---
Creator of My College Life
http://mycollegelife.org

On Apr 6, 9:50 pm, Jason LeBlanc jasonalebl...@gmail.com wrote:
 Try these search terms. Not sure if they are supported by SQLite though as I
 don't know much about it.

 COPY TABLE

 SELECT INTO

 J

 On Tue, Apr 6, 2010 at 8:25 PM, Ben defiledr...@gmail.com wrote:
  Hi all,

  As always I searched high and low to no avail. I don't doubt the
  answer is out there, but it evaded me.

  In my game I am handling the loss of a character (represented
  programmatically with their own table) - however there are 4 such
  tables. I would like to know if there is a simple way to simply tell
  SQLite to make character 2's entire table equal character 3's? Just
  trying to not leave a gap in the lineup.

  I was considering pulling all the data, sorting it out, putting it
  into the table and then deleting - I just wanted to know if there was
  a nifty shortcut to tell SQLite that I wanted to duplicate an entire
  table at another preexisting table?

  Any help would be greatly appreciated.

  Ben
 http://defiledroid.wordpress.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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  To unsubscribe, reply using remove me as the subject.

-- 
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: Example that prints 1 2 3 4 on A A A A?

2010-02-15 Thread theSmith
Google search is your friend, and so are the docs.

http://developer.android.com/intl/de/reference/android/app/Activity.html#onKeyDown%28int,%20android.view.KeyEvent%29

Didn't test it but something like this

@Override
public boolean onKeyDown(int key, KeyEvent ev) {
switch(key) {
case KeyEvent.KEYCODE_A:
//do some stuff
break;
default:
return false;
}
return super.onKeyDown(key, ev);
}

On Feb 15, 2:19 pm, BobG bobgard...@aol.com wrote:
 I asked this question on Android Beginners several days ago, but didnt
 get any nibbles. I have an app that almost works... I can draw the
 needle on my gauge rotated, but I want to use A and Z keys to
 increment and decrement the needle angle. I'd be gratefule if someone
 could shoe me an example that catches the A key with onKeyDown,
 increments a variable, and prints it out (drawText?). Thanks in
 advance, fellow developers. I hope to be one soon.

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


[android-developers] Re: Is there a way to measure the time-consumings of all my functions in percent after a game?

2010-02-07 Thread theSmith
Traceview is the way to go.  Just remember that your game will play
even slower while you have method tracing turned on, but the results
you get from it are still very helpful.  They are just in relative
time and not absolute time.

Here are some videos from Google I/O 09
Writing Real-Time Games for Android
http://www.youtube.com/watch?v=U4Bk5rmIpicfeature=player_embedded

Debugging Arts of the Ninja Master
http://www.youtube.com/watch?v=Dgnx0E7m1GQfeature=player_embedded

In the second video go to ~22:30 and he starts covering how to use
traceview

-theSmith

On Feb 7, 8:37 am, Mark Murphy mmur...@commonsware.com wrote:
  I want to optimize my game and remove the stuttering. Is there a way
  to measure the time-consumings of all my functions in the game without
  having to change all my functions?

 Try Traceview:

 http://developer.android.com/intl/fr/guide/developing/tools/traceview...

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

-- 
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: Widget on Top

2010-02-03 Thread theSmith
No, widgets are only displayed on the homescreen.

-theSmith

On Feb 3, 4:42 pm, David david.b.raistr...@gmail.com wrote:
 I'm banging my head on the wall.  I have a small temperature/date/time
 widget.  When I touch the widget it changes from current temp to
 current date to current time, and back.  I would like to find a way to
 display my widget always on top of all applications?

 Is this possible?  I've tried continually changing focus to my widget
 app but doesn't seem to work (ie. just instantaneously goes away
 behind the current app).  Any ideas on accomplishing this?  Are
 there any apps out there that are displaying their widget or  info
 button over the top of all apps?

 Thanks for any help
 Davey

-- 
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: Binding list views to large data sets

2010-02-02 Thread theSmith


On Feb 2, 3:31 pm, THill thill.dr...@gmail.com wrote:
 Thanks Mark.

  Use the LIMIT and OFFSET terms on your SELECT statement to obtain data in
  smaller chunks. Create a wrapping adapter (like my EndlessAdapter) that
  only loads chunks when the user scrolls to the bottom of thelistand
  therefore needs more data.

 Doing the load in smaller chunks would still require at least the same
 amount of time to fill the list, but it would let me interrupt the
 load more quickly, so I may incorporate that  handle rotates normally
 -- woot!

 Unfortunately, I need to load the full set of records because I need
 to be able to provide a sliding window anywhere in the result set, not
 just add to the end of the the list during the load (i.e., the user is
 not just continuously scrolling to the bottom of this huge list).

 Similar to a scroll button in typical windowing systems, in this list
 of events  timestamps, the user needs to be able to select a
 position, say 2/3 of the way down the list  scroll up/down if that
 position is after/before the entries they want to review.

 Is the list/adapter just creating 20K objects as it walks the result
 set?  If so, I'd be tempted to do this myself so I can give the user
 some visual cue/index into the data.  I don't want to add
 significantly more overhead though.

As Mark said, no its not creating 20K views, but using a custom
implementation of a ArrayAdapter will allow you to stop a bunch of
necessary calls to findViewById() and inflate() if you override the
getView() method and use the view holder strategy.  This will allow
your app to flow a little more smoothly when dealing with a dataset
that large.


 Any additional suggestions/insights?

 Thanks again,
 Tim

-- 
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: apps that require other paid apps

2010-02-02 Thread theSmith
Depends on how the developer set up the integration.  What they should
be doing is checking to see if the app in question is installed if not
launch its market page when they hit a button.  If it is installed
then fire off the appropriate broadcast intent and VIOLA magical
integration.  Of course you should be using a published intent like
the google ones (although they aren't all listed here)
http://developer.android.com/intl/de/guide/appendix/g-app-intents.html
If you don't your app may break if that intent changes.

-theSmith

On Feb 2, 8:16 pm, tansaku tans...@gmail.com wrote:
 Hi There,

 I am under the impression that android apps can require other apps to
 be installed in other to operate.  The main example I know is the
 zxing barCode scanner app, which gets used by a number of other apps.
 The zxing barcode app is free, but I was wondering what would happen
 if it wasn't?

 In particular, what would the user experience be like?  How would they
 be notified, if at all, about the paid app requirement?

 Many thanks in advance
 CHEERS SAM

-- 
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: Remote Log

2010-02-01 Thread theSmith
I don't think you are approaching this problem correctly...

1) Now when you say 'trace' I hope you don't mean method tracing, and
while that would allow you to put it in a specific file it is so
incredibly slow that the end user would hate you for it.

2) You can create an app to read the log file, I've seen at least one
in the market.

Can you use a service (free) like Flurry?  They allow you to do some
pretty cool stuff very easily.

Why exactly are you doing this 'for development only'?  If you're
doing it during development can't you just look at your own logs using
logcat?

-theSmith

On Feb 1, 8:13 am, Kimi ezequiel.ac...@gmail.com wrote:
 Hello everybody,

 I have used Android's log all around my app to trace some important
 events. As for development porpuse only, I would like to do one of the
 following things:

 1) redirect that log to a specific file in a SD-Card
 2) locate the log file, if already exist

 I both cases I will create another app that uploads the Log to a
 server, using FTP or something.

 Thanks very much,

 Kimi

-- 
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: bug reporting

2010-02-01 Thread theSmith
Certainly interesting but there are other solutions.

 1. It doesn't engage the user to acknowledge that a problem has occurred 
 (mea culpa).
Not true, you can pop up a message box in the default handler and tell
them an error occurred.

2.  It doesn't elicit contextual information from the user.
Again in the message you can ask them if they want the error sent to
your server.

3.  It doesn't help to provide the user visibility into the state of issues 
for the application (bugs nor enhancements).
Depending on how your app identifies the error you can tell them what
it is.  Also providing a change log in your app could be valuable.

4.  It requires that my application request internet permission
Well yes, most applications want this anyway (we are dealing with
smart phones here).  If you let the users know that it is for bug
reporting in the description they should be fine with it.

If the user doesn't choose to install it then I see that as an issue
because I won't know about the error, but yes then you are not
dependent on the internet permission in your standalone app.

Broadcast events would work to make it usable with several apps but
I'm not sure how much information you can stuff into a broadcast...
For example I would at least want a full stack trace and cause trace
from the exception that occurred, and this can easily be 20+ lines.

-theSmith


On Jan 30, 11:30 pm, laphroaig15 laphroai...@gmail.com wrote:
 I'd finished up my first android application, a simple power
 management app, and was preparing to release it when I realized that I
 didn't have a proper design or infrastructure for bug reporting.  One
 of my pet peeves with the applications on the Android marketplace is
 that there's inadequate visibility into the change logs from version
 to version.  I get a notice to update app X, but I don't know if
 that's fixing a bug that's been annoying me, adding/refreshing
 advertising code, etc.  I dislike adding to chaos.

 So, I started looking at my options.  Obviously, if I hosted my source
 code somewhere then users could use the hoster's built-in bug tracking
 facility to report bugs.  On the off chance that a mobile user took
 the time to look up the project and submit a bug, I'd still be reliant
 on the submitter to supply correct and relevant diagnostic
 information.  I have my doubts that either would occur reliably.

 I came across this thread [http://groups.google.com/group/android-
 developers/browse_thread/thread/bae832439608ad2e/44d2e285da39aa57?
 lnk=gstq=exception+handler#44d2e285da39aa57] detailing a simple
 strategy for collecting information under the covers and posting an
 exception to a remote server.  I see some issues with this strategy as
 well:

 1.  It doesn't engage the user to acknowledge that a problem has
 occurred (mea culpa).
 2.  It doesn't elicit contextual information from the user.
 3.  It doesn't help to provide the user visibility into the state of
 issues for the application (bugs nor enhancements).
 4.  It requires that my application request internet permission.  If I
 wanted to allow the user to opt-in to send some personally
 identifiable information (say to support notification), then I'd need
 to request profile permissions.  I dislike jumbling together a lot of
 disparate concerns and then asking for every permission under the
 sun.  This trend will lead to users totally disregarding the
 permissions altogether.

 So, my thought was to implement a separate Bug Reporting application
 that handles bug tracking.  Other programs could elect to register
 with this app.  The BR app accepts crash information from a calling
 application, prompts the user to provide summary, description, and
 priority information, then posts the issue to the developer's bug
 server (indicated during registration).  The BR application could be
 further enhanced to retain these issue ids and allow the user to
 browse the state of them (by browsing to a well defined link or via
 some well-defined exchange with the bug server).  Similar
 functionality could be implemented to allow viewing change logs,
 release road maps, etc. for the app.  Obviously, the integration b/t
 the BR app and the client apps would be implemented in such a way that
 there would be a transparent no-op if the user decided to uninstall or
 never install the BR app (so as to not perpetuate a bad Vista-like
 user experience).

 It looks like I can license JIRA for $10 and open up anonymous issue
 creation.  So, far I've prototyped a simple BR activity and a JIRA
 plugin to accept BR submissions.  Obviously, the http protocol could
 be openly defined in such as way as to allow integration with any
 extensible bug tracking system.

 I'd like to hear opinions on this strategy.  Has it already been
 done?  Is it too intrusive or techy for users?  Do you agree or
 disagree that visibility is an issue?  Is there simply a better
 solution of which I'm unaware?  Ideally, such a thing would be
 embraced by Android

[android-developers] Re: ANDROID_ID always null on devices

2010-02-01 Thread theSmith


On Jan 29, 9:21 am, flsobral flsob...@gmail.com wrote:
 I found two apps on the Market that show the ANDROID_ID, and both show
 the same value.

By the 'same value' do you mean they show an ANDROID_ID? or are they
showing null?  And if you code doesn't work on any devices you have, I
suspect it is the code and not the devices themselves...

-theSmith

 Looks like there's something wrong with the app compilation maybe?

 On Jan 29, 11:44 am, Mark Murphy mmur...@commonsware.com wrote:

   I was hoping I was missing a permission or something like that.

  I am not aware of a permission needed for ANDROID_ID. If you wanted the
  IMSI or IMEI, those would need a permission.

   We haven't touched the firmware or the system database, in fact the
   Motorola device is brand new, it came to my desk still closed in his
   box.
   Is there any way to reset to the factory settings and restore
   everything?

  Probably, but I suspect that's a device-specific process.

  --
  Mark Murphy (a Commons Guy)http://commonsware.com
  Android App Developer Books:http://commonsware.com/books.html

-- 
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: bug reporting

2010-02-01 Thread theSmith


On Feb 1, 4:52 pm, laphroaig15 laphroai...@gmail.com wrote:
 The alternatives you suggest seem to be summed up as, implement the
 equivalent bug reporting tool in your own app.  That, of course, is
 always an option.  Everyone could implement their own variation.
 However, it seems to go against the general Android theme of a
 separation of concerns and the loose coupling of apps.  It also
 assumes that developers would take the effort to implement it.

 No issue management is absolutely necessary, as evidenced by many of
 the existing apps in the marketplace.  What I am after is whether an
 open implementation holds value.  Would it help developers and improve
 the robustness of applications?  Would it add value to the end users?
 I have a strong SCM background, so my judgment is a little biased.

Absolutely I believe this would add value to any application that
would use it.  It could even be seen as a marketing point in the app's
description Uses ___ for Bug Reporting  Automated and simple error
reporting would provide a great asset to the Android community,
especially if it were open and easily implementable.  That would be my
primary concern with such a system.  If you were to start working on
this, I would suggest  opening it up to the community, not right away
though, wait till you have something of substantial value with a
robust feature set.  As for the actual reporting, how would you
collect requests from several applications and multiple developers?
Who has access to what? Do they need their own accounts? (I'm not
familiar with JIRA)

-theSmith

 Broadcasting seems to be working.  Maybe I'll try generating a deep
 stack overflow to get a gauge on the upper bounds on the stacktrace.
 It might be a big chunk of info, but hopefully the system won't be
 generating a high volume of them.  I'm reading up on content providers
 at the moment.

 On Feb 1, 2:45 pm, theSmith chris.smith...@gmail.com wrote:

  Certainly interesting but there are other solutions.

   1. It doesn't engage the user to acknowledge that a problem has occurred 
   (mea culpa).

  Not true, you can pop up a message box in the default handler and tell
  them an error occurred.

  2.  It doesn't elicit contextual information from the user.

  Again in the message you can ask them if they want the error sent to
  your server.

  3.  It doesn't help to provide the user visibility into the state of 
  issues for the application (bugs nor enhancements).

  Depending on how your app identifies the error you can tell them what
  it is.  Also providing a change log in your app could be valuable.

  4.  It requires that my application request internet permission

  Well yes, most applications want this anyway (we are dealing with
  smart phones here).  If you let the users know that it is forbugreportingin 
  the description they should be fine with it.

  If the user doesn't choose to install it then I see that as an issue
  because I won't know about the error, but yes then you are not
  dependent on the internet permission in your standalone app.

  Broadcast events would work to make it usable with several apps but
  I'm not sure how much information you can stuff into a broadcast...
  For example I would at least want a full stack trace and cause trace
  from the exception that occurred, and this can easily be 20+ lines.

  -theSmith

  On Jan 30, 11:30 pm, laphroaig15 laphroai...@gmail.com wrote:

   I'd finished up my first android application, a simple power
   management app, and was preparing to release it when I realized that I
   didn't have a proper design or infrastructure forbugreporting.  One
   of my pet peeves with the applications on the Android marketplace is
   that there's inadequate visibility into the change logs from version
   to version.  I get a notice to update app X, but I don't know if
   that's fixing abugthat's been annoying me, adding/refreshing
   advertising code, etc.  I dislike adding to chaos.

   So, I started looking at my options.  Obviously, if I hosted my source
   code somewhere then users could use the hoster's built-inbugtracking
   facility to report bugs.  On the off chance that a mobile user took
   the time to look up the project and submit abug, I'd still be reliant
   on the submitter to supply correct and relevant diagnostic
   information.  I have my doubts that either would occur reliably.

   I came across this thread [http://groups.google.com/group/android-
   developers/browse_thread/thread/bae832439608ad2e/44d2e285da39aa57?
   lnk=gstq=exception+handler#44d2e285da39aa57] detailing a simple
   strategy for collecting information under the covers and posting an
   exception to a remote server.  I see some issues with this strategy as
   well:

   1.  It doesn't engage the user to acknowledge that a problem has
   occurred (mea culpa).
   2.  It doesn't elicit contextual information from the user.
   3.  It doesn't help to provide the user visibility into the state of
   issues

[android-developers] Re: Layout problems: AbsoluteLayout deprecated, how to do it now?

2010-01-30 Thread theSmith


On Jan 30, 3:23 am, Martin google-gro...@digle.de wrote:
 Hi!

 For my game Leonard Frog - Beta in the market, I use an
 AbsoluteLayout to place all the buttons in the correct position like
 in the following image:http://digle.de/friends/LeonardFrogBig.jpg

 Now the AbsoluteLayout is deprecated. How can I place these buttons
 now in the right position like in the image without using the
 AbsoluteLayout? (I don't want to cover the frog and other things of my
 background image).

You should be able to use a relativelayout or a linearlayout and just
add padding in dip (density independent pixels) to the sides of the
buttons.  For small screen devices you probably want to create a new
layout with smaller buttons so it displays properly.

-theSmith


 The other problem with my AbsoluteLayout was that my main page of the
 game looks like this on smaller 
 devices:http://digle.de/friends/LeonardFrogSmall.jpg

 I hope, there is a solution for this.

 Greetings, Martin

-- 
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_ID always null on devices

2010-01-28 Thread theSmith


On Jan 28, 11:34 am, Wayne Wenthin wa...@fuligin.com wrote:
 I have a function for this since I munge up the android id and I need an
 androidid for the emulator so I make one up.   Hope this helps.

 public String getandroidid() {
 String AndroidID = System.getString(this.getContentResolver(),
 android.provider.Settings.Secure.ANDROID_ID);
 if (AndroidID == null)
 AndroidID = a23456790112345b;
 String Android_ID =  + android.os.Build.PRODUCT + AndroidID;
 return Android_ID;

Wouldn't this just return the same String on multiple devices? Which
defeats the purpose because the Android_Id is supposed to be unique.
Also there is no reason that this shouldn't be working on those
devices, can anyone confirm this on those devices?

-theSmith



 }
 On Thu, Jan 28, 2010 at 6:14 AM, flsobral flsob...@gmail.com wrote:
  Hello.

  I'm trying to get the ANDROID_ID on two different devices but it
  always return null on both.
  I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a
  Motorola Milestone with firmware 2.0.

  I've been using this small sample to show the id, but it always shows
  null:

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

         Toast.makeText(this, ANDROID_ID:  + Secure.getString
  (getContentResolver(), Secure.ANDROID_ID),

              Toast.LENGTH_LONG).show();
     }

  Any suggestions?

  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Writing code is one of few things
 that teaches me I don't know everything.

 Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums

-- 
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 I kill a blocking thread?

2010-01-28 Thread theSmith
Send it an interrupt and handle it appropriately.
http://articles.techrepublic.com.com/5100-10878_11-5144546.html

-theSmith

On Jan 28, 3:59 pm, redders redders6...@googlemail.com wrote:
 I have a thread listening on a TCP port. When there's nothing coming
 in on that port, the thread blocks. This is fine, and the behaviour I
 want, but how do I kill said thread while it's blocking?

-- 
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: list - need suggestion

2010-01-27 Thread theSmith


On Jan 27, 7:03 pm, android beginner android.beginne...@gmail.com
wrote:
 Hi,
 The basic list that I want to view is working.

 In my first list activity(ListDemoActivity), I choosed some element, which
 triggers another list A activity. If I go back (on pressing BACK key), the
 state of ListDemoActivity screen is preserved. Now If I select the same
 element again, I expect the state of A activity to be preserved aswell, but
 its not happening.

You're assuming things that are not true.  Its an activity stack, so
once you pop it off (hit the back key) that state is lost, and you
will be creating a new activity when launching that activity A again.

I'd recommend learning a little bit about the nature of android before
getting too deep into developing code.
The Androidology videos will get you started and the Google I/O videos
are some of my favorites for getting into Android as a pro.
http://developer.android.com/intl/de/videos/index.html#v=opZ69P-0Jbc


 Below is the code snippet, Can you please suggest me what I need to do?

 public class ListDemoActivity extends ListActivity {
     String[] firstPage = {a, b, c, d, e};
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         setListAdapter(new ArrayAdapterString(this,
                         android.R.layout.simple_list_item_1,
                         firstPage));

     }

     public void onListItemClick(ListView parent, View v,
                                 int position, long id)
     {
         String txt = firstPage[position];
         if ((txt == a) ||
             (txt == b))
         {
             Intent startActivity = new Intent(this, Activity_A.class);
             startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

             startActivity(startActivity);
         }
         else
         {
             Intent startActivity = new Intent(this, Activity_B.class);
             startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

             startActivity(startActivity);
         }

     }

 }
 On Tue, Jan 26, 2010 at 5:28 PM, theSmith chris.smith...@gmail.com wrote:

  On Jan 25, 11:48 pm, android beginner android.beginne...@gmail.com
  wrote:
   so, each sub-lists should be created as list activity. On selecting any
   item, should call that particular list activity. Is my understanding
   correct?

  Yes

   Also, how to store parent list in the stack? so that on pressing escape
   key, I can navigate backwards.

  Android does this automatically, and I assume you mean the 'back'
  key.  Each new activity is launched ontop of the older ones allowing
  you to navigate backwards down the stack.

  -theSmith

   Thanks

   On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun bsaad1...@gmail.com
  wrote:

your item must be a listactivity , when you add it to your parent
list , the UI is adapted automaticly .

On 25 jan, 06:24, android beginner android.beginne...@gmail.com
wrote:
  Hi,

 My Activity has list of items and on clicking any item, new window
  with
 different set of list has to appear and this can continue upto 4 or 5
level
 depths. I need your expert advice on how to achieve this.

 Can I have each sub-list to be of separate activity? If there are any
online
 examples matching this requirement, please let me know.

 Thank

--
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.comandroid-developers%2bunsubscr...@googlegroups.com
  android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-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


[android-developers] Re: list - need suggestion

2010-01-25 Thread theSmith

On Jan 25, 11:48 pm, android beginner android.beginne...@gmail.com
wrote:
 so, each sub-lists should be created as list activity. On selecting any
 item, should call that particular list activity. Is my understanding
 correct?

Yes

 Also, how to store parent list in the stack? so that on pressing escape
 key, I can navigate backwards.

Android does this automatically, and I assume you mean the 'back'
key.  Each new activity is launched ontop of the older ones allowing
you to navigate backwards down the stack.

-theSmith



 Thanks

 On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun bsaad1...@gmail.comwrote:

  your item must be a listactivity , when you add it to your parent
  list , the UI is adapted automaticly .

  On 25 jan, 06:24, android beginner android.beginne...@gmail.com
  wrote:
    Hi,

   My Activity has list of items and on clicking any item, new window with
   different set of list has to appear and this can continue upto 4 or 5
  level
   depths. I need your expert advice on how to achieve this.

   Can I have each sub-list to be of separate activity? If there are any
  online
   examples matching this requirement, please let me know.

   Thank

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


[android-developers] Custom Buttons containing layouts

2010-01-21 Thread theSmith
Hey all,

I was wondering if it was possible to use a RelativeLayout containing
TextViews as a button like object.  My goal here is to not have to
create 2 image button backgrounds (landscape and portrait), usually
this is not much of an issue but the buttons will span the entire
screen and the text will become distorted.

The RelativeLayout will contain 2 textviews and maybe an imageview
also (not sure yet).  So I'm looking to implement some button like
behavior, on focus, on click etc.  All I really need to do here is
modify the background color of the RelativeLayout.

Any pointers on where I should get started?

-theSmith

-- 
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: Can't see comments for Android 2.0 version of app

2010-01-20 Thread theSmith


On Jan 20, 10:04 am, Gregg Reno gregg.r...@gmail.com wrote:
 A while back, I released an app targeted for 1.6.  I got reports that
 it wouldn't run under 2.0, so I created a 2.0 specific version and
 released it to the market as well. This was tested using only the
 emulator since I don't have a 2.0 phone.

 The problem is, my G1 phone is running 1.6, and can't search the
 market for my 2.0 version of the app.  That means I can't read any
 user comments for the 2.0 version.  Very frustrating!

 Any suggestions?  Yet another reason why Google needs a web front end
 to the android market.

 And yes, I looked into building one version of the app that targets
 1.6 but supports 2.0, but it wasn't possible due to the way accessing
 contacts was changed in 2.0.


You could do this in one app if you have a minsdkversion of 1.6 and
target 2.x and just check it durring the actual execution of your
application if the version is 2.0 or higher, then call the appropriate
contact function for that version.  Your app will run fine as long as
you don't call api functions that don't exist.

-theSmith


 Thanks,
 -Gregg
-- 
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: Can't see comments for Android 2.0 version of app

2010-01-20 Thread theSmith
Target the highest available version, so 7 for 2.1
So you have to change the build path in eclipse to reflect that.

-theSmith

On Jan 20, 3:10 pm, Gregg Reno gregg.r...@gmail.com wrote:
 Thanks!  http://www.androlib.com/had the info I was looking for, 
 buthttp://www.androidzoom.com/looks out of date.

 The problem I have with using one version is that if I target the app
 as 1.6, I can't build the project because I need the following import
 to launch an activity to select a contact with 2.0:

     import android.provider.ContactsContract;

 Is there a safe way I could target 1.6 but import
 android.provider.ContactsContract from the 2.0 library and still be
 ok?

 I could use this code:

 int sdkVersion = Integer.parseInt(Build.VERSION.SDK);
 if (sdkVersion  5) {
     intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);} else {

     intent = new Intent(Intent.ACTION_PICK,
 ContactsContract.Contacts.CONTENT_URI);

 }
-- 
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: Saving the contents of an array

2010-01-19 Thread theSmith
You may want to consider using the shared preferences instead of
writing to a file, its pretty simple to use.
http://developer.android.com/reference/android/content/SharedPreferences.html

-theSmith

On Jan 19, 8:25 pm, Jeffrey jeffisagen...@gmail.com wrote:
 How do I save the contents of an array to a file and then read it
 again later? I have a small amount of data that will need to be stored
 and since I have no idea where to start on using a SQLite database, I
 think this will work a lot better.
-- 
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread theSmith
I believe that maxsdkversion has already been or is in the process of
being depreciated, meaning the market no longer looks at that tag in
the manifest.  Which makes sense because if the OS updated to a newer
version but not all the apps did, they would dissapear in the market
to that user, despite the fact that most would still work perfectly
fine.

-theSmith

On Jan 18, 5:48 am, Christine christine.kar...@gmail.com wrote:
 I agree with Mark that older apps, like 1.6 apps, run happily on
 newer sdks. Most apps can do without the newer features, if you accept
 that sometimes you have to do more work, or the feature you build is
 slightly less attractive. Or, you can have a Factory class that
 returns the right version class to use. As far as I have seen, you can
 have 2.1 classes in a 1.6 app, as long as you don't instantiate them.

 On Jan 18, 10:26 am, Christine christine.kar...@gmail.com wrote:



  What I said is that you _can_ specify that a user sees only the one
  relevant version of your app in the mp. The mp _does_ read
  minsdkversion and maxsdkversion.

  On Jan 17, 11:14 pm, Kevin Duffey andjar...@gmail.com wrote:

   Man..now that sucks. That is a bug if you ask me.. the market should NOT
   show a 1.5 users a 1.6 SDK app update. That's just pure stupidity. That
   makes no sense at all and I am shocked and disturbed that this is how it
   works. They basically want you to submit a brand new 1.6 app so that 1.5
   users don't get the update.. how hard is it to actually put a little code 
   in
   the market app that checks the min SDK and even IF the user has the app, 
   if
   their OS is not 1.6, don't show it. Very bad design of the market app
   developers/designers.

   On Sun, Jan 17, 2010 at 2:03 PM, Christine 
   christine.kar...@gmail.comwrote:

On Jan 17, 9:26 pm, Kevin Duffey andjar...@gmail.com wrote:
 First.. let me ask for those of you that have apps in the market.. if 
 I
have
 a 1.5 version out there.. it shows up on any device that is 1.5 or 
 later,
 right? Now..if I update it to run on 2.0.. will the update be made
available
 or even notify 1.5/1.6 users? Or does it only show up for 2.0 and 
 later
 users in their market?

By specifiying minSdkVersion and maxSdkVersion, you can provide
different versions for different sdks. Every user would only see one
version in the market, if I'm not mistaken. But you don't really want
to do that unless you really need those different versions.

--
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.comandroid-developers%2Bunsubs
 cr...@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] Re: HashMap, ArrayList and fastest way to iterate Collections on Android (+other ways to make it run like a wild horse)

2010-01-17 Thread theSmith
Mika,

Check out the Real-time games and lightning talks videos, they're very
helpful.

As far as the speed, I would run some tests and look at the results,
some nice hard data :)
Become familiar with DDMS (the stand alone program, not plugin) - DDMS
has an allocation tracker, which lets you know where you are
requesting the most memory, which is what is going to slow you down.
http://developer.android.com/guide/developing/tools/ddms.html

Also you can use method tracing and traceview to further optimize your
code.
http://developer.android.com/guide/developing/tools/traceview.html

These tools are covered in some detail in the 'Debugging Arts of the
Ninja Masters' video

-theSmith

On Jan 17, 8:17 am, Mika mts...@googlemail.com wrote:
 Simple question, what is the fastest way to iterate through
 collections on Android? I generally use collection.iterator(); and the
 iterator.next() to iterate through the whole collection. Is it any
 faster to drop that and iterate with old (and I use the term old
 loosely...) :

 for( int i=0; icollection.size(); i++) ?

 I was thinking of getting the collection.size() into a separate
 variable so I wouldn't be asking the collection it's size all the time
 so basically the for loop would turn into something like this:

 int size = collection.size();
 for( int i=0; isize; i++ )
    collection.get(i);

 Any better? Speed wise, I mean. I'm in a point where I need to get
 every possible inch of speed for my application.
 Or maybe allocate everything into Lists in the start, and once I know
 the correct amount of data, I turn all that into arrays and drop the
 Lists so I can have array[index] (Log(1) access, right? OH wait.. how
 did this go again _ ) access instead of having the slow method
 calls in between like .get(); when accessing the data in the
 collection.

 And what about getters  setters for Classes? Like let's have a
 Vector2D class that contains obvious integer x and integer y values.
 What is the fastest way to access them inside the class? Have them as
 public and just straight Vector2D.x = someValue; or through getters
 and setters? I've had much debate with my tutor about this (working on
 my final year project) but not to get too much into details of it...

 Also all links for further Android application optimisation are more
 than welcome and greatly appreciated (I read the googles docs on this
 already). Plus if you have found some really good tricks / quirks on
 Android to punish the device even more so it runs faster, do share, do
 share. Heh.

 Please be gentle on me, I'm such a beginner in all things Android that
 I feel absolutely dumb as a boot for asking these kind of things. I
 come from strong C++ / Java background but getting the extra inch of
 speed for everything on Android is so different than optimizing code
 for PC side and not that you even have to do it on PC side that often.

 Fire away gents and ladies!
-- 
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: Thoughts on lawyers and self protection

2010-01-16 Thread theSmith
Thanks for they reply Wayne,

Under an LLC there is a certain level of personal protection yes?
Even if there is only one person in the LLC?

Its my first time generating some revenue off coding (I'm still in
college) and I really would like some legal protection, even though my
apps shouldn't warrant that kind of protection.

-theSmith

On Jan 16, 1:12 pm, Wayne Wenthin wa...@fuligin.com wrote:
 LLC's are pretty cheap to form.   I have 1 LLC that I'm a partner in and 1
 sole proprietorship.   The software is not published under the LLC though.
 But if you are worried that your app may make people do something that you
 need legal protection from I would look into license agreements that you
 require them to acknowledge on install and you will probably need to pay an
 attorney to draft one that will be enforceable.



 On Sat, Jan 16, 2010 at 9:46 AM, theSmith chris.smith...@gmail.com wrote:
  Hey all,

  I was just wondering what your thoughts are on having some law
  enforcement on your side as well as legal protection.  As an
  independent developer its hard to afford legal nonsense like this.  In
  your experience has it been worth it to include legal agreements with
  your apps and do you have protection like a LLC to protect yourself
  from being sued into oblivion?

  Also what licenses are freely available  that might be of interest?

  -theSmith

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Writing code is one of few things
 that teaches me I don't know everything.

 Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums
-- 
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 Pirate Site

2010-01-16 Thread theSmith
I too would like to know if Google in particular is doing anything to
help us developers out.  As apps grow in popularity the more they are
pirated and the harder to get them all taken down.  Ideally there
would be a spot for developers to submit pages that are hosting our
apps illegally and Google would take care of the DMCA stuff.  (Or just
provide us with copy protection that works...)

For those interested here is another site I found yesterday,
http://www.mediafire.com/thakidtok
http://twitter.com/thakidtook uses twitter to distribute them too.

This is really a pain in the ass.  Does apple have piracy issues like
this on the iPhone?

-theSmith

On Jan 16, 12:09 pm, MakeMobile makemobileinnovati...@gmail.com
wrote:
 I've been in the business for quite some time, and I know that
 drill. But I do not accept your reply as a useful response to this
 problem. This problem is damaging to the entire development community
 as a whole as well as the forward progress of the platform. Few
 developers will be interested in building on a platform which has a
 reputation for easy piracy. Their development efforts will be focused
 on other platforms, and Android will suffer from less innovation and
 fewer useful apps.

 I've also found piracy on other sites, including droidfanz.com, and
 this forum:http://www.ipmart-forum.com/archive/index.php/t-337082.html

 I'd like to know what Google is doing about this, and who to forward
 abuse complaints to.

 On Jan 16, 11:33 am, schwiz sch...@gmail.com wrote:

  shut one down 3 more pop up, its an unavoidable part of software
  development.

  On Jan 16, 10:13 am, MakeMobile makemobileinnovati...@gmail.com
  wrote:

   I stumbled upon this site offering 1000's of Android apps for free
   (including mine!).

  http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_list...

   How do I report this to Google? How do we shut them 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] Thoughts on lawyers and self protection

2010-01-16 Thread theSmith
Hey all,

I was just wondering what your thoughts are on having some law
enforcement on your side as well as legal protection.  As an
independent developer its hard to afford legal nonsense like this.  In
your experience has it been worth it to include legal agreements with
your apps and do you have protection like a LLC to protect yourself
from being sued into oblivion?

Also what licenses are freely available  that might be of interest?

-theSmith
-- 
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 Pirate Site

2010-01-16 Thread theSmith
Would it be feasible to authicate the app with a google checkout
number like copilot does?

On Jan 16, 1:55 pm, MakeMobile makemobileinnovati...@gmail.com
wrote:
 On Jan 16, 1:08 pm, Wayne Wenthin wa...@fuligin.com wrote:

  My question is why would google do anything.  These are your apps.  You hold
  copyright not google.  You have to do something.  Unless you are finding
  Market or Maps on these sites google could care less and rightly so.

 I believe I've already answered the question of why Google would do
 something about this, but I'll say it again. Piracy damages the
 platform as a whole. Google cares about this kind of thing because it
 slows the progress of the platform as a whole. That's why they
 released the Nexus One --  to advance the platform by gaining new
 developers and users.

 I'd be surprised if Google did not have people working on this. But my
 specific inquiry is who can I talk to about this? who or where do I
 report this? And if it does not yet exist, Google should definitely
 set up a system for reporting these abuses.

 On another note, I think the common attitude of apathy surrounding
 this issue is shocking. I am fully aware that it's not possible within
 reason to completely eliminate this problem -- and I do not expect
 that. However that does not mean we should ignore the issue on the
 premise that its too difficult a problem to deal with.

 This is especially problematic for small time developers who don't
 have the resources (time or financial) to do much about this. I
 believe it's these small time developers who provide the most value to
 the platform -- there are far more small time developers than large
 organizations, and I believe they provide the bulk of the innovation.
 So lack of a robust support system for these developers is a big
 problem.

 I'd like to steer the discussion in a more positive direction. So lets
 go guys -- resources, information, options...
-- 
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 Pirate Site

2010-01-16 Thread theSmith
@david I believe there must be, I know flurry assigns an unique id to
each user, so I'm guessing its using a hardware identifier, I'm going
to look through the docs now

On Jan 16, 2:19 pm, David Sauter del...@gmail.com wrote:
 More importantly - do Android devices have unique hardware identifiers
 like the iPhone's UUID?

 David Sauter
-- 
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: Creating custom button looks?

2010-01-15 Thread theSmith
use an imagebutton

On Jan 15, 1:35 pm, Tommy droi...@gmail.com wrote:
 Hey,

 Is there a way to create a custom button style? Say I want a round
 button do I simply take the pre-made round graphic and make it the
 background of the button or will the button still be a rectangle?
-- 
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: Creating custom button looks?

2010-01-15 Thread theSmith
If you need multiple hit areas you may want to consider using several
images to create 'one' button.  For example a d-pad could be 5
imagebuttons, u/d/l/r and the middle.

This approach will most likely save you quite a headache.

-theSmith

On Jan 15, 4:22 pm, Moto medicalsou...@gmail.com wrote:
 None of the SDK versions will automatically check what areas in the
 button should be a hit area...  it's just a plane W x H area

 You will need to create a custom image button class and catch the
 touch events and decide if it's a hit or not... :)

 -Moto

 On Jan 15, 4:14 pm, clark clarkd...@gmail.com wrote:

  I had added a D-Pad image button to a game, and the transparent areas
  still registered hits.  This was using the 1.5 SDK so I am not sure if
  any of the newer SDKs have changed this.

  On Jan 15, 12:30 pm, Kevin Duffey andjar...@gmail.com wrote:

   You can use a png I believe with transparency to produce any style button
   you want. I don't know if the hit-test for clicking on it will work only 
   on
   the image part or the whole square width/height size of the button itself
   tho.

   On Fri, Jan 15, 2010 at 11:18 AM, Tommy Hartz droi...@gmail.com wrote:
Ok so its shape will changed based on the image I assign to it?

On Fri, Jan 15, 2010 at 2:11 PM, theSmith 
chris.smith...@gmail.comwrote:

use an imagebutton

On Jan 15, 1:35 pm, Tommy droi...@gmail.com wrote:
 Hey,

 Is there a way to create a custom button style? Say I want a round
 button do I simply take the pre-made round graphic and make it the
 background of the button or will the button still be a rectangle?

--
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.comandroid-developers%2bunsubs­cr...@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.comandroid-developers%2bunsubs­cr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en-Hidequoted text -

   - Show quoted text -
-- 
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: Updating a unique AppWidgetProvider from a Service

2010-01-14 Thread theSmith
No problem, heres how I did it.

AppWidgetManager manager = AppWidgetManager.getInstance(this);
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.widgetlayout);
views.setTextViewText(R.id.TextView_Body, hello world);
appWidgetManager.updateAppWidget(appWidgetId, views);

onHandleIntent is called every time you use context.startService
(intent);  Just make sure to use that intent to send the appWidgetId
you need updated.  If the IntentService is not already running then
its onCreate() is called, other wise the intent is put into a FIFO
queue.  the onHandleIntent method runs on a seperate thread than the
rest of the app, even the IntentService's onCreate().  This allows you
to do time consuming processes like networking without android giving
the user a ANR dialog.

If you want to probe my brain some more feel free to ask.

-chris




On Jan 13, 6:05 am, Lyndon lyn...@infomediauk.net wrote:
 Hi

 I have the same problem so thanks very much for the post...

 Could you explain how the onHandleIntent method works please.

 I have the appWidgetId in the service so I just need the way to update
 that specific widget.

 Any help would be very much appreciated.

 Regards

 Lyndon

 On Jan 3, 4:17 pm, theSmith chris.smith...@gmail.com wrote:

  To follow up on my own question, heres how I did it.

  I went from a service to an IntentService and in the onHandleIntent
  (Intent intent) I handle the update requests.

  To get the individual id's I put them as an extra in the intent in the
  onRecieve() method in the widget, then fire them off to the
  IntentService with context.startService(i).  Everything is working
  perfectly now.

  -theSmith

  On Jan 1, 10:12 pm, theSmith chris.smith...@gmail.com wrote:

   Here is my issue, I want to be able to update a specific
   AppWidgetProvider (home screen widget) from a custom service class.  I
   have to build the remote view in the service because I'm also doing
   some networking in there, which takes some time.

   The problem is that I can't figure out how to update a specific widget
   (individual widgets can have different update intervals, using the
   alarm manager).

   If I wanted to do it from the onUpdate of the AppWidgetProvider I
   could just call appWidgetManager.updateAppWidget(appWidgetId,
   remoteView);

   Does anyone have any experience with this or any suggestions?

   -theSmith- Hide quoted text -

  - Show quoted text -
-- 
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: One service to rule them all

2010-01-09 Thread theSmith
If you are writing the applications (or otherwise over seeing it) it
is not hard have communication between applications, you just have to
read up on intent filters for the application's manifest.xml

Correct me if Im wrong, but you should be able to create an
application that checks if the other applications in the suite are
installed, which version they are etc...  This app could also notify
you of updates to existing applications and new applications.

On your central server you can check the applications version number
and refuse the connection if it is not up to date, then prompt the
user to install the newest version.  (either through the market or
straight from the server.  The browser sends .apk downloads to the
application manager if I remember correctly)

-theSmith

On Jan 9, 9:46 am, Mark Murphy mmur...@commonsware.com wrote:
 Eric Crump wrote:
  -Is it possible to push new applications to an Android over a socket
  and install it?

 Only if a user is at the phone at the time and can approve the
 installation. SDK applications cannot silently install other
 applications. The only way to have this happen without user intervention
 would require firmware changes.

  -How feasible would it be to have my service route communications to
  the appropriate application?  That is, if the app is open, send it
  data, otherwise store it, ignore it, launch it, etc.

 That depends a lot on the suite of applications. If you wrote that
 suite, then it may not be that bad. If you are expecting to manage
 arbitrary applications that way, I suspect few will be designed with
 your architecture in mind.

  -Can I build a service with a plugin architecture such that I can
  deploy new modules to it on the fly.

 In general, yes. In a secure fashion, not easily.

  Would it have to restart itself?

 Probably not. You would need to download JARs or scripts (e.g., JRuby,
 Beanshell) as your plugins, and you can probably find ways to reload
 those on the fly (e.g., use your own classloader for the JARs).

 You can't have a plugin architecture based on APKs very easily -- see my
 response to your first question.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

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

[android-developers] Re: EditText.getText() not working

2010-01-09 Thread theSmith
using findViewById() 81 times seems more demanding than creating them
at runtime to me.

There is always an Exception thrown if your app is crashing, look at
the logcat in the 'DDMS' view in Eclipse.
If you only see a runtime exception then you need to get the cause
from the exception. Surround the call with a try-catch and use
something like this:

catch (Exception e)
{
   final static String TAG = you app name;
   StackTraceElement[] arr = e.getStackTrace();

   for (int i=0; iarr.length; i++)
   {
   Log.e(TAG,arr[i].toString());
   }
Throwable cause = e.getCause();
 if(cause != null) {
 Log.e(TAG,Cause: +e.toString());
 arr = cause.getStackTrace();
 for (int i=0; iarr.length; i++)
 {
Log.e(TAG,arr[i].toString());
 }

 }
}


On Jan 9, 11:47 am, zosq yellasrich...@gmail.com wrote:
 I have tried doing the EditTexts programatically in a loop. No luck.
 Still gives me the same problem. I am having a hard time trying to
 figure out what the exact problem is. I am new to the eclipse IDE and
 the android programming.

 On Jan 9, 12:31 am, TreKing treking...@gmail.com wrote:

   Now when I try to do a simple getText() method on textArray[][], it

  gives me a runtime error but setText() method works fine on textArray[]

  []

  What's the error? Are you checking for null?

  Also, are you seriously defining 81 objects in your layout and then finding
  each one by ID?
  Why don't you generate your EditTexts programmatically in a double loop?

  --- 
  --
  TreKing - Chicago transit tracking app for Android-powered 
  deviceshttp://sites.google.com/site/rezmobileapps/treking

  On Fri, Jan 8, 2010 at 11:08 AM, zosq yellasrich...@gmail.com wrote:
   I am simple sudoku app. My main.xml has 81 EditText and 2 buttons as
   shown below.

   ?xml version=1.0 encoding=utf-8?

   RelativeLayout
          xmlns:android=http://schemas.android.com/apk/res/android;
          android:layout_width=fill_parent
          android:layout_height=wrap_content
          android:background=@color/activity_background
          EditText
                  android:id=@+id/text1
                  android:layout_width=33dip
                  android:layout_height=33dip
                  android:background=@color/textBox_background
                  android:layout_marginBottom=2dip
                  android:layout_marginRight=2dip
                  android:layout_marginLeft=2dip
                  android:maxLength=1
                  android:textColor=@color/textBox_color
                  android:numeric=integer
                  android:paddingLeft=11dip
                  android:selectAllOnFocus=true /
          EditText
                  android:id=@+id/text2
                  android:layout_width=33dip
                  android:layout_height=33dip
                  android:background=@color/textBox_background
                  android:layout_marginBottom=2dip
                  android:layout_marginRight=2dip
                  android:maxLength=1
                  android:textColor=@color/textBox_color
                  android:numeric=integer
                  android:paddingLeft=11dip
                  android:layout_toRightOf=@id/text1
                  android:layout_alignTop=@id/text1
                  android:selectAllOnFocus=true /
          EditText
                  android:id=@+id/text3
                  android:layout_width=33dip
                  android:layout_height=33dip
                  android:background=@color/textBox_background
                  android:layout_marginBottom=2dip
                  android:layout_marginRight=4dip
                  android:maxLength=1
                  android:textColor=@color/textBox_color
                  android:numeric=integer
                  android:paddingLeft=11dip
                  android:layout_toRightOf=@id/text2
                  android:layout_alignTop=@id/text1
                  android:selectAllOnFocus=true /
          EditText
                  android:id=@+id/text4
                  android:layout_width=33dip
                  android:layout_height=33dip
                  android:background=@color/textBox_background
                  android:layout_marginBottom=2dip
                  android:layout_marginRight=2dip
                  android:maxLength=1
                  android:textColor=@color/textBox_color
                  android:numeric=integer
                  android:paddingLeft=11dip
                  android:layout_toRightOf=@id/text3
                  android:layout_alignTop=@id/text1
                  android:selectAllOnFocus=true /
          EditText
                  android:id=@+id/text5
                  android:layout_width=33dip
                  android:layout_height=33dip
                  

[android-developers] Re: Marketplace

2010-01-09 Thread theSmith
If you have sync turned off, the market will ask you to 'enable
background data usage' Then takes you to the Data synchronization,
background data setting.

My guess is that it sends a list of applications that you have
installed with their version numbers, which is how it can tell if they
need to be updated.  But like I said, this is all just me speculating.

-theSmith

On Jan 9, 9:08 am, Business Talk roman.businesst...@gmail.com wrote:
 thank, so your guess is that the market application synchs at least
 partial information? For example, 'Featured' application information,
 and/or partial infor for other categories?

 I haven't found any setting for the background data. What do you mean
 by that?

 On Jan 9, 1:13 am, theSmith chris.smith...@gmail.com wrote:

  Do you mean like 'how/when does the market place check for app
  updates?'

  And my best guess is that it might happen during a sync (since the
  market place requires background data to be turned on)
  I don't really know much about the backend frame work stuff though.

  -theSmith

  On Jan 8, 11:16 pm, Business Talk roman.businesst...@gmail.com
  wrote:

   Any thought on how the Marketplace handles the information related to
   the marketplace applications? I wonder if the request is posted to the
   marketplace  every time client is started or if some of the available
   applications data is stored locally and refreshed by the background
   service.- Hide quoted text -

  - Show quoted text -
-- 
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 should I set up my app? Database for flash cards?

2010-01-09 Thread theSmith
Very feasible, I would use a database to hold the images filenames but
actually store the images on the sd card.
Changing the text of a textView is like one call, very easy.

-theSmith

On Jan 9, 1:05 pm, Breezy mbre...@gmail.com wrote:
 I'm about to begin work on a simple app that is just flash cards and
 answers...  It will be a couple hundred flash cards (some with images,
 some with just text) and the answers to those cards.

 My question is, how should I set this up?  Should I use a database to
 store each one or what?  I'm afraid if I just initialize an array when
 the app opens with ALL of these cards it would make it extremely
 sluggish.

 What do you think?

 Also, I was thinking of having a simple label area that will display
 the question and when the user presses a button it will simply change
 the text of the label area.  I'm bad with GUIs, is this a feasable
 idea?
-- 
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: Marketplace

2010-01-08 Thread theSmith
Do you mean like 'how/when does the market place check for app
updates?'

And my best guess is that it might happen during a sync (since the
market place requires background data to be turned on)
I don't really know much about the backend frame work stuff though.

-theSmith

On Jan 8, 11:16 pm, Business Talk roman.businesst...@gmail.com
wrote:
 Any thought on how the Marketplace handles the information related to
 the marketplace applications? I wonder if the request is posted to the
 marketplace  every time client is started or if some of the available
 applications data is stored locally and refreshed by the background
 service.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Who wants Multi-touch in all Android versions?

2010-01-07 Thread theSmith
Scott,

Please publish your code, I would love to take a look at it :-)

-theSmith

On Jan 7, 12:48 pm, Dan Sherman impact...@gmail.com wrote:
 I'd love to see this as well :)

 On Thu, Jan 7, 2010 at 9:30 AM, Dianne Hackborn hack...@android.com wrote:
  Well I would really like to see this, given that prior to 2.0 there was no
  multitouch information propagated through the framework at all, and
  applications do not have permission to open the raw driver.

  On Thu, Nov 12, 2009 at 11:03 PM, SoftwareForMe.com SoftwareForMe.com 
  softwareforme@gmail.com wrote:

  Our solution is software only, works on production phones (i.e., no
  rooting or modding required).

  Scott
  SoftwareForMe.com
  Makers of PhoneMyPC

   On Thu, Nov 12, 2009 at 11:02 PM, Nathan nathan.d.mel...@gmail.comwrote:

  I'm curious about this. Does multi-touch require hardware changes? Or
  am I reading this right that it can all be done through software?

  Nathan

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
  Warm regards,
  The PhoneMyPC Team

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.

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

[android-developers] Re: Enhancement to Emulator

2010-01-07 Thread theSmith
Noting what David said, you are better off using a development device
like the google dev phone 1.

-theSmith

On Jan 7, 1:49 pm, David Turner di...@android.com wrote:
 On Thu, Jan 7, 2010 at 10:36 AM, Thisara Rupasinghe 
 thisara...@gmail.comwrote:

  Hi all,

  Im trying to write an application using bluetooth. But using the android
  emulator, can i try that out. I mean is it emulated that feature(bluetooth).
  Or even the camera feature. And also if i would like to enhance the
  capabilities of this emulator can i contribute? Where can i find the source
  of that emulator?

 These features are not emulated and are planned for 2010, if not preempted
 by more important stuff.
 You can have a look at the emulator sources under external/qemu in the
 Android repository.

  I would like to use computers web cam and the bluetooth devices as
  emulators, if there are those features in the running machine. Is that
  pissble or can u gv any comments on this to my self.

 Note that being able to do that will require at the very least changes to
 the kernel configuration used for the emulator, plus some changes to the
 system itself.

  Thanks

  --
  Thanks  Regards,
  Thisara.

  --
  You received this message because you are subscribed to the Google Groups
  android-platform group.
  To post to this group, send email to android-platf...@googlegroups.com.
  To unsubscribe from this group, send email to
  android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/android-platform?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] Re: How to use the Object android.widget.AdapterView.getItemAtPosition(int position)

2010-01-07 Thread theSmith
If the CheckBox is inside an AdapterViewCheckBox then you can cast
the Object returned by getItemAtPosition() to a CheckBox, other wise
if it is a view then you really should be using view holders to cut
down on execution times.

I am NOT here to read the android docs to you. Go do it yourself. Read
the docs, the blog, watch the google I/O videos, then maybe I'll
answer some more intelligent questions.

-theSmith

On Jan 7, 2:30 am, Manoj linkex.ma...@gmail.com wrote:
 Sir I am doing the same thing what you are tell but i am not getting
 the way tousethe returned object by getItemAtPosition() to get the
 checkbox which is a item in list.

 On Jan 7, 10:53 am, theSmith chris.smith...@gmail.com wrote:

  Manoj,

  I'm not sure if I understood you correctly, but I believe you are
  looking for getViewById(R.id.whatever);
  cast the result to a ListView, then call getItemAtPosition.

  also there is a group for android 
  beginners.http://groups.google.com/group/android-beginners

  P.S. Please brush up on your knowledge of the android 
  documentationhttp://developer.android.com/guide/index.html
  There are plenty of examples that will help you get started.

  -theSmith

  On Jan 6, 3:47 am, Manoj linkex.ma...@gmail.com wrote:

   Hi,
   I am new for Android development. I want touseObject  
   android.widget.AdapterView.getItemAtPosition(int position) method for
   getting the items from ListView. But I am not getting the way to make
   it happen.
   Please help me out on this topic.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to use the Object android.widget.AdapterView.getItemAtPosition(int position)

2010-01-06 Thread theSmith
Manoj,

I'm not sure if I understood you correctly, but I believe you are
looking for getViewById(R.id.whatever);
cast the result to a ListView, then call getItemAtPosition.

also there is a group for android beginners. 
http://groups.google.com/group/android-beginners

P.S. Please brush up on your knowledge of the android documentation
http://developer.android.com/guide/index.html
There are plenty of examples that will help you get started.

-theSmith

On Jan 6, 3:47 am, Manoj linkex.ma...@gmail.com wrote:
 Hi,
 I am new for Android development. I want to use Object
 android.widget.AdapterView.getItemAtPosition(int position) method for
 getting the items from ListView. But I am not getting the way to make
 it happen.
 Please help me out on this topic.
-- 
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: No Adobe Flash support for Eclair!?!

2010-01-05 Thread theSmith
Well well well. you all should find this interesting. Man I love CES.

http://www.engadget.com/2010/01/05/nexus-one-previewed-with-flash-10-1-beta-careful-what-you-wish/

Looks like we're going to need a addon flash blocker on android
soon...

-theSmith

On Jan 4, 11:48 am, chris harper ch393...@gmail.com wrote:
 Thank you Dianne

 Thanks for the information on Flash. It gave me the direction I needed and
 it is good to know where Flash and Android stand. In another year or two who
 knows right?

 I been studying the Lunar Lander example as far as the graphics and it looks
 like a good way to go and I started a new design for my application.

 Thank you for taking the time to answer my questions.

 I hope you a good holiday.

 -Chris

 On Sun, Jan 3, 2010 at 6:06 PM, Dianne Hackborn hack...@android.com wrote:
  On Tue, Dec 29, 2009 at 5:42 PM, chris harper ch393...@gmail.com wrote:

  So what you are saying is that Android development doesn't really want
  developers building applications that use Flash?

  Only a few phones have Flash at this point so, no, I would not suggest
  using it.

  Longer term...  well, it would be problematic for this to become a standard
  part of the Android SDK.  Given that flash is proprietary, that would leave
  us with the platform becoming dependent on someone else's proprietary code
  in order to support these apps.  This is very counter to a basic philosophy
  of Android, that the entire platform is open-source and thus you don't need
  to someone's proprietary code to build an android compatible device.

  (And to head off the inevitable cries about not really being open-source --
  yes there are bits and pieces that are not open source, such as hardware
  drivers and applications like Market.  This is a far cry from baking
  dependencies on non-open-source code into the standard APIs, though.)

  But it now sounds like if anyone wants to develop an Android app that uses
  Flash it'll be more of a gamble and might not work for most devices or at
  the least be a hassle for the end user to make it work because they would
  have to install Flash plugins.

  I can't tell you what devices Flash may or may not be available on, because
  it is owned by Adobe.  Clearly they have a self-interest in getting it as
  widely spread as possible, but from the perspective of the platform we can't
  make any guarantees about who can include it on a device, the kinds of
  hardware it can run on, and how well it would perform.  And that is one of
  the big rubs.

  It is kind of disappointing because if Android and Adobe can get together
  and start supporting development of applications that use Flash then that
  would be an Ace in the hole for making Android apps far better than the
  IPhone.

  The first step for having some technology adopted for the standard Android
  platform is to make it available under an open-source license that is
  compatible with the rest of the platform.  Somehow, I don't see this
  happening for Flash. :}

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.

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

[android-developers] Re: Updating a unique AppWidgetProvider from a Service

2010-01-03 Thread theSmith
To follow up on my own question, heres how I did it.

I went from a service to an IntentService and in the onHandleIntent
(Intent intent) I handle the update requests.

To get the individual id's I put them as an extra in the intent in the
onRecieve() method in the widget, then fire them off to the
IntentService with context.startService(i).  Everything is working
perfectly now.

-theSmith

On Jan 1, 10:12 pm, theSmith chris.smith...@gmail.com wrote:
 Here is my issue, I want to be able to update a specific
 AppWidgetProvider (home screen widget) from a custom service class.  I
 have to build the remote view in the service because I'm also doing
 some networking in there, which takes some time.

 The problem is that I can't figure out how to update a specific widget
 (individual widgets can have different update intervals, using the
 alarm manager).

 If I wanted to do it from the onUpdate of the AppWidgetProvider I
 could just call appWidgetManager.updateAppWidget(appWidgetId,
 remoteView);

 Does anyone have any experience with this or any suggestions?

 -theSmith

-- 
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: Best HTTP Request Method

2010-01-01 Thread theSmith
You might also want to run a method trace around your network activity
to see where the most processing time is spent.  The results you get
wont be in actual time, but a relative time just because method
tracing is slow.

Just wrap you code with a start and stop calls, and make sure to have
the writing to external storage permission in your manifest.

// start tracing to /sdcard/calc.trace
Debug.startMethodTracing(calc);
// ...
// stop tracing
Debug.stopMethodTracing();


Traceview
http://developer.android.com/guide/developing/tools/traceview.html


-theSmith
On Jan 1, 7:08 pm, Frank Weiss fewe...@gmail.com wrote:
 I've seen 5 sec occasionally getting an rss feed of about 28 KB using
 java.net.URL.openConnection().getInputStream() and then parsing it with
 SAXParser. It looks like you're doing a POST to send form data(?) so you may
 have to stick with HTTPClient.

 If you're doing frequent requests, you can probably take advantage of
 HTTPClient's keep-alive connection management.

 If you're looking for optimizations, I strongly suggest you create a test
 app which performs the same request you're having performance problems with.
 Collect more data, such as the size of the request and response. Try the
 same request from a different platform (like your laptop or desktop).
 Compare the network paths between the desktop and Android to the server.

 I know you'd like to just get an answer do this/try this. I hope that by
 looking into the problem in more detail you''ll find a solution.

 On Fri, Jan 1, 2010 at 3:36 PM, SizzlingSkizzorsProgrammer cbo...@gmail.com

  wrote:
  About 5 seconds, which isn't unbearable, but considering my app needs
  frequent requests some kind of optimization must be possible.

  Look at the android market...it seems to load everything pretty fast
  (much faster than my app at least!)

  On Jan 1, 3:15 pm, Frank Weiss fewe...@gmail.com wrote:
   Considering that the execute method's latency includes network and server
   times, on what basis do you think it's taking too long? What latency are
  you
   observing, less than one second, more than one minute?

   On Fri, Jan 1, 2010 at 1:19 PM, SizzlingSkizzorsProgrammer 
  cbo...@gmail.com

wrote:
Yes, I've tried logging and the HTTP execute definitely takes the
largest chunk of time, but how can I speed it up?  Is there another
protocol/method?

On Dec 31 2009, 6:07 pm, jotobjects jotobje...@gmail.com wrote:
 On Dec 31, 12:52 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com
 wrote:

  It works fine, but it's quite slow...any way to make it faster?

 A guess would be that the HTTP network speed is 100's of times slower
 than all the rest of the code. You might log the time before and
  after
 the execute method if you haven't already done that.

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
  android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
  cr...@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.comandroid-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


[android-developers] Updating a unique AppWidgetProvider from a Service

2010-01-01 Thread theSmith
Here is my issue, I want to be able to update a specific
AppWidgetProvider (home screen widget) from a custom service class.  I
have to build the remote view in the service because I'm also doing
some networking in there, which takes some time.

The problem is that I can't figure out how to update a specific widget
(individual widgets can have different update intervals, using the
alarm manager).

If I wanted to do it from the onUpdate of the AppWidgetProvider I
could just call appWidgetManager.updateAppWidget(appWidgetId,
remoteView);

Does anyone have any experience with this or any suggestions?

-theSmith

-- 
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: Reminder: IRC office hours tomorrow

2009-12-29 Thread theSmith
Thanks for those Megha.

Is there any plan to add responses to the 12/17 and 12/22 meetings?  I
find this an excellent resource issues/problems/insight that I think
should be available.

-theSmith

On Dec 18, 5:39 pm, Megha Joshi mjo...@google.com wrote:
 Check out the answers to questions from the 12/15 office hours 
 here:http://moderator.appspot.com/#15/e=120951t=11fd95

 2009/12/17 Megha Joshi mjo...@google.com

  We are still considering whether to provide transcripts depending on its
  demand.

  There is a list of questions asked during office hours here.We will be
  updating it with answers soon:.
 http://moderator.appspot.com/#15/e=120951t=11fd95

  For today's office hours at 5pm PST you could post your questions at:
 http://moderator.appspot.com/#15/e=120951t=121ce5f=121ce6

  Thanks,
  Megha

  2009/12/16 theSmith chris.smith...@gmail.com

  Megha,

  Is there a transcript of previous office hours (just one I believe) /
  future office hours?

  By transcript I mean exactly what was said during the session,
  available for those who were unable to actually be on IRC at that
  time.

  Thanks,

  Chris

  On Dec 14, 7:02 pm, Megha Joshi mjo...@google.com wrote:
   Hi Everyone,

   Just a quick reminder that our IRC office hour session is taking place
   tomorrow morning, 9:00-10:00 a.m. PST. Please join us with your
  technical
   questions at:

   irc://irc.freenode.net#android-dev 
 http://irc.freenode.net/#android-dev

   Thanks,
   Megha

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


[android-developers] Re: How can i stop a thread in a Activity?

2009-12-29 Thread theSmith
I found this article to be very insightful because I too am just
learning about managing multiple threads.
http://articles.techrepublic.com.com/5100-10878_11-5144546.html

I ended up using a shared volatile variable that is check when I'm
doing this that take alot of time in the background thread, if it's
false the thread will exit accordingly.  Also in my app's onStop()
method I make sure to check to see if the thread is running and stop
it if it is.

-theSmith

On Dec 18, 5:44 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 Calling interrupt() only works if your thread is interruptable and if
 your thread handles interruptions appropriately.

 Your thread only is interrupted if the thread is doing I/O or is in a
 wait-state (having called wait() on Object).

 If you want to have background threads that do one-shot jobs and then
 wait, use AsyncTask or the java.util.concurrent's ExecutorService .

 And, you'd better read up on concurrent programming a little :-) It
 can be tricky.

 On Dec 16, 11:26 pm, Matt hansen.matt...@gmail.com wrote:

  Try storing the newly spawned thread as a field or collection in the
  appropriate class.  Then when you need to kill the thread, retrieve it
  and call Thread.interrupt().

  Matt

  On Dec 9, 6:15 pm, Richard Zhao zwher...@gmail.com wrote:

   My problem is:
   Activity A called Activity B, and in Activity B, it start a background
   thread to do some client-server work. But it maybe takes too much
   time. So i add a cancel button to call the stop() method to stop the
   thread, and call finish() to finish the Activity B and go back to
   Activity A. Although it is back to Activity A, the thread isn't stop
   immediately.

   Can i just call the finish() to go back to Activity A, and leave the
   thread to exit by itself?
   If it is not the right way, which is?

   Thanks for any help.- Hide quoted text -

  - Show quoted text -

-- 
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 can i stop a thread in a Activity?

2009-12-29 Thread theSmith
That would work also, you just have to remember that function calls
are never free and the GC on android is annoying enough as it is, no
need to give it more stuff to do.

-theSmith

On Dec 29, 1:43 pm, jotobjects jotobje...@gmail.com wrote:
 Why not just call Thread.isInterrupted() instead of using the
 volatile?

 On Dec 29, 9:24 am, theSmith chris.smith...@gmail.com wrote:

  I found this article to be very insightful because I too am just
  learning about managing multiple 
  threads.http://articles.techrepublic.com.com/5100-10878_11-5144546.html

  I ended up using a shared volatile variable that is check when I'm
  doing this that take alot of time in the background thread, if it's
  false the thread will exit accordingly.  Also in my app's onStop()
  method I make sure to check to see if the thread is running and stop
  it if it is.

  -theSmith

  On Dec 18, 5:44 pm, Streets Of Boston flyingdutc...@gmail.com wrote:

   Calling interrupt() only works if your thread is interruptable and if
   your thread handles interruptions appropriately.

   Your thread only is interrupted if the thread is doing I/O or is in a
   wait-state (having called wait() on Object).

   If you want to have background threads that do one-shot jobs and then
   wait, use AsyncTask or the java.util.concurrent's ExecutorService .

   And, you'd better read up on concurrent programming a little :-) It
   can be tricky.

   On Dec 16, 11:26 pm, Matt hansen.matt...@gmail.com wrote:

Try storing the newly spawned thread as a field or collection in the
appropriate class.  Then when you need to kill the thread, retrieve it
and call Thread.interrupt().

Matt

On Dec 9, 6:15 pm, Richard Zhao zwher...@gmail.com wrote:

 My problem is:
 Activity A called Activity B, and in Activity B, it start a background
 thread to do some client-server work. But it maybe takes too much
 time. So i add a cancel button to call the stop() method to stop the
 thread, and call finish() to finish the Activity B and go back to
 Activity A. Although it is back to Activity A, the thread isn't stop
 immediately.

 Can i just call the finish() to go back to Activity A, and leave the
 thread to exit by itself?
 If it is not the right way, which is?

 Thanks for any help.- Hide quoted text -

- Show quoted text -

-- 
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: blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread theSmith

On Dec 29, 1:22 pm, TreKing treking...@gmail.com wrote:
 Um ... why don't you just put the code you want to execute in the onClick
 handlers for the Yes and No options, respectively?
 That's pretty much the point of having them ...


+1 for the win.

I agree, just take what ever action is necessary and put it in the
onClick listeners.  Its really that simple

-theSmith

 -
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

 On Tue, Dec 29, 2009 at 8:25 AM, Frank Weiss fewe...@gmail.com wrote:
  I assume you want a modal dialog. I'm pretty sure  blocking the UI thread
  is going about this wrong. For example, consider the Activity lifecycle
  callbacks which would be called when another Activity or Application becomes
  visible.

  Here's an explanation I found by googling for android modal dialog:
 http://groups.google.com/group/android-developers/browse_thread/threa...

  On Tue, Dec 29, 2009 at 3:52 AM, swapnil kamble 
  swap.kam...@gmail.comwrote:

  Hi ,
        I am displaying Confirmation type dialog box. I want to pause
  execution of that thread until answer is provided by user, but since this
  AlertDialog works asynchronously, I am facing problems in blocking that
  thread but displaying AlertDialog and continue execution on answer. I tried
  using wait notify between threads but didn't worked. Anybody Used
  AlertDialog.wait() method ?
  I am pasting my code here too,

                                       AlertDialog.Builder builder = new
  AlertDialog.Builder(Demo.ctxt);

  builder.setMessage(Do you want  to Trust testgenservercert)
                                                       .setCancelable(false)

  .setPositiveButton(Yes, new DialogInterface.OnClickListener() {
                                                           public void
  onClick(DialogInterface dialog, int id) {

  //uiThread.notify();

  System.out.println(Positive Button clicked);
                                                                   }
                                                       })

  .setNegativeButton(No, new DialogInterface.OnClickListener() {
                                                           public void
  onClick(DialogInterface dialog, int id) {

  //uiThread.notify();

  System.out.println(Negative Button clicked);

                                                                   }
                                                       });
                                          /*uiThread =
  Thread.currentThread();
                                          AlertDialog alert =
  builder.create();
                                          alert.show();
                                          synchronized(alert) {
                                                  alert.wait();
                                          }*/

  --
  ...Swapnil

  || Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
  || Hare Rama    Hare Rama   Rama   Rama    Hare Hare ||

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


[android-developers] Re: How to hack the activity stack of your application ?

2009-12-28 Thread theSmith
If you want to, you can override the onDestroy() method of the service
and have it call finish() on each of you activities in the stack.
This should result in the behavior you are looking for I believe,
because the system would be forced to create a new instance of your
application, thus starting a new service with it.

-theSmith

On Dec 28, 10:35 am, André Oriani aori...@gmail.com wrote:
 Hi all,

 Differently from most application, the state of my application is not
 controlled by its stack of activities but by the state of a background
 service.

 Here is my problem. Suppose I have a task running  with  a non empty
 stack of activities. The top activity is paused on background and not
 visible.  Then for some reason the  process that host both the service
 and top activity is killed.  When I somehow return to my app
 application ( by pressing back key, resumimg from recent apps menu),
 the framework launches  the application again with the activity that
 was on the top of the activity stack  before process got killed.

 Okay, you would say that it is the expected behavior. But because my
 service is no longer alive , the top activity is no longer valid ( as
 the other activities which remain  on stack) . I would like to clear
 the whole activity stack  and launch another activity to explain the
 current situation to user.

 I could put the follow code on every activity if(not valid state)
 finish() and launch a new activity with clear top flag  enabled  but
 I don't think it is clever.  Is there a better way to control which
 activity will be launched after application is killed ?

 Tks,
 André

-- 
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: No Adobe Flash support for Eclair!?!

2009-12-28 Thread theSmith
As Mark said, unless you have a Hero, which has flash built it, this
will not work.



On Dec 28, 1:38 pm, chris harper ch393...@gmail.com wrote:
 Thank you Mark for the clarification it is greatly appreciated.
 With so many different sources on the internet it is somewhat difficult to
 know what is actually available and what isn't.

 One more question if you happen to know this. All I am simply trying to do
 is create a WebView (using android.webkit.Webview) and view a .swf file with
 it.

 According to this article it is had been done and is 
 possible:http://www.flashmobileblog.com/2009/08/12/flash-development-with-andr...

 But again like I stated before, after downloading the latest source code,
 building it, flashing it to my development phone and flash still not working
 I am having my doubts (and greatly wondering how this guy said it is
 working).

 Do you know if this is even somewhat possible (maybe a FlashLite plugin I am
 missing or something?).

 Or am just out of luck on this one.

 Thank you
 -Chris

 On Mon, Dec 28, 2009 at 11:16 AM, Mark Murphy mmur...@commonsware.comwrote:

  chris harper wrote:
   I kept reading about how one of the biggest news about eclair coming
   out in 2010 is that  support for Flash 10 (or ANY Flash for that
   matter) will be built into it.

  1. Eclair came out in 2009.

  2. AFAIK, nowhere credible was it written that Eclair would have support
  for Flash 10 built into it.

   This does not appear to be the case for the fact that I download all
   the latest source code for Eclair, built and installed Eclair onto my
   development phone over the Christmas break and to my surprise/
   disappointment there is absolutely no support for Flash when I try to
   view with the browser. I tried plugin's and searching for missing .apk
   installs for Flash but I found nothing.

  Flash is not open source.

  Right now, the most that can reasonably be expected is for Flash to be
  available from Adobe for Android OEMs to license and put on their
  devices. HTC has already done this with the Hero, albeit for more of a
  Flash Lite profile than a full Flash 10 implementation. This is not
  significantly different than codecs for non-open-source media file
  formats (e.g., WMA, WMV) being available for OEMs to license from
  PacketVideo.

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com|http://twitter.com/commonsguy

  Android Consulting/App Development:http://commonsware.com/consulting

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


[android-developers] Re: Droid 2.1?

2009-12-28 Thread theSmith
Not to burst your bubble, but my apps have seen the Google Nexus One
and 2.1 for about a month now (found them looking through my Flurry
stats).

As for the Droid build part, well I guess we we're all expecting it to
come eventually.  Any one heard of an official release date?

On Dec 28, 12:48 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I saw this as an agent today:

 Mozilla/5.0 (Linux; U; Android 2.1; en-us; Droid Build/ERD72)
 AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/
 530.17

 -John Coryat

 Radar Now!

 What Zip Code?

-- 
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: Devphone discount?

2009-12-28 Thread theSmith
None that I've heard of, but you can always buy a cheap G1 and root it
if you want to. (root access is the only advantage of having a dev
phone correct?)

-theSmith

On Dec 28, 10:51 am, QAH qah...@gmail.com wrote:
 Hello everyone! I am a highschool student and I really love
 programming. I would love to play around with the kernel code and test
 it on a dev phone. Do students get any discounts on them like some
 development products have huge discounts for students? Please let me
 know.

 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 to hack the activity stack of your application ?

2009-12-28 Thread theSmith
I'm glad you saw those flaws with my idea, I have finish()'ed
activities from separate threads before, this is not an issue so long
as you have a reference to the activity in the other thread.  And yes
you would need to keep track of every activity, which is why your
original proposal is not such a bad idea.

Consider this example:

//here we are launching a new activity

Intent i = new Intent(this, nextActivity.class);
startActivityForResult(i, START_SUBMIT);

//this activity will return a result code
//which is handled here in the class that started the new activity
//request is the int that called the new activity (START_SUBMIT)
//result is the code the activity returned when it finished
onActivityResult(int requestCode, int resultCode, Intent intent)

So if your application determines that the service is no longer
running it would set is result code to some int you have defined, say
INVALID_STATE and finishes itself.

Then the calling activity would call the onActivityResult with both
the code that was started (allowing you to know which activity you
came from) and the result code (in this case INVALID_STATE).  From
here this can continue until you reach the bottom of the stack and you
can start the first activity over.


On Dec 28, 12:35 pm, André Oriani aori...@gmail.com wrote:
 There is some difficulties with you proposal.
 -Service and UI are running on different process.
 -I will have to keep track of activities ( they will have to put
 themselves in some data structure) .
 - They are killed ( SIGKILL) , they won't have time to save anything
 neither to excute onDestroy.  The problem will happen when process are
 launched again ( so no memory abou what happened before, just the
 stack of activity because framework does the job)

 On Dec 28, 2:56 pm, theSmith chris.smith...@gmail.com wrote:

  If you want to, you can override the onDestroy() method of the service
  and have it call finish() on each of you activities in the stack.
  This should result in the behavior you are looking for I believe,
  because the system would be forced to create a new instance of your
  application, thus starting a new service with it.

  -theSmith

  On Dec 28, 10:35 am, André Oriani aori...@gmail.com wrote:

   Hi all,

   Differently from most application, the state of my application is not
   controlled by its stack of activities but by the state of a background
   service.

   Here is my problem. Suppose I have a task running  with  a non empty
   stack of activities. The top activity is paused on background and not
   visible.  Then for some reason the  process that host both the service
   and top activity is killed.  When I somehow return to my app
   application ( by pressing back key, resumimg from recent apps menu),
   the framework launches  the application again with the activity that
   was on the top of the activity stack  before process got killed.

   Okay, you would say that it is the expected behavior. But because my
   service is no longer alive , the top activity is no longer valid ( as
   the other activities which remain  on stack) . I would like to clear
   the whole activity stack  and launch another activity to explain the
   current situation to user.

   I could put the follow code on every activity if(not valid state)
   finish() and launch a new activity with clear top flag  enabled  but
   I don't think it is clever.  Is there a better way to control which
   activity will be launched after application is killed ?

   Tks,
   André

-- 
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: Reminder: IRC office hours tomorrow

2009-12-16 Thread theSmith
Megha,

Is there a transcript of previous office hours (just one I believe) /
future office hours?

By transcript I mean exactly what was said during the session,
available for those who were unable to actually be on IRC at that
time.

Thanks,

Chris

On Dec 14, 7:02 pm, Megha Joshi mjo...@google.com wrote:
 Hi Everyone,

 Just a quick reminder that our IRC office hour session is taking place
 tomorrow morning, 9:00-10:00 a.m. PST. Please join us with your technical
 questions at:

 irc://irc.freenode.net#android-dev http://irc.freenode.net/#android-dev

 Thanks,
 Megha

-- 
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: Back-porting from Android 2.0 to Android 1.5

2009-12-15 Thread theSmith
@Diane

My mistake, since I started developing when 1.6 was released I thought
the search manager was the new QSB from 1.6

@AJ

My app is crashing too because of the QSR terms in the searchable.xml
The problem then becomes how can you access them from 1.6+ without
them being seen in 1.5?

On Dec 8, 2:13 pm, AJ adam.j...@gmail.com wrote:
 On Dec 7, 4:25 pm, Dianne Hackborn hack...@android.com wrote: On Mon, Dec 
 7, 2009 at 1:20 PM, AJ adam.j...@gmail.com wrote:
   1) drawable verses the new drawable-* ... if I don't have an icon in
   drawable.png will my application be icon-less in 1.5? Do I need to
   copy one of the new icons in there? If so, which one?

  If you want to run on pre-1.6 platforms, I would suggest putting your medium
  density bitmaps in drawable/* instead of drawable-mdpi/*.  1.6 and later
  will assume that these are medium density.

 Thank you.

   2) search ... how does the SEARCH activity get raised for an
   application on SDK 1.5 devices (which don't appear to have a hardware
   search button.) Do I need to add a menu option and raise SEARCH as a
   sub-activity? [Note: I am 100% confused by search button on all
   android versions 'cos what I read says SDK 2.0 copes with virtual
   buttons, yet those devices (in emulator) seem to have hardware ones.
   What am I missing?]

  Whether or not there is a search button is really a device thing, and not a
  platform version thing.  For example, the G1 has a search key on its hard
  keyboard, and you can assume there will be devices running 2.0 and later
  that don't have a search key.  If search is important for your app, you will
  want to have another mechanism to get to it -- often a menu item.

 Thanks, again, that helped a lot. I've added a menu option (although
 I'd love to know how to hide that if I could detect a hardware
 button.)

 My remaining problem is the search suggestion provider code (which I
 took from a 2.0 sample) will compile on SDK 1.5 (I've built a SDK
 project to ensure little is hidden by backwards compatibility.)
 Anyway, things seem good unless I actually return search suggestions
 via a

    /**
      * The columns we'll include in our search suggestions.  There are
 others that could be used
      * to further customize the suggestions, see the docs in {...@link
 SearchManager} for the details
      * on additional columns that are supported.
      */
     private static final String[] COLUMNS = {
             _id,  // must include this column
             SearchManager.SUGGEST_COLUMN_TEXT_1,
             SearchManager.SUGGEST_COLUMN_INTENT_DATA,
             };

 The generation is here:

    MatrixCursor cursor = new MatrixCursor(COLUMNS, 0);
         for (String ingredient : matching_ingredients) {
            cursor.addRow(new String[] {
                         ingredient,           // _id
                         ingredient,           // text1
                         ingredient           // intent_data (included when 
 clicking
 on item)
         });
         }

 I've tried reading SearchManager documentation, but cannot seem to
 track down what columns it is expecting (or not expecting) for SDK 1.5
 that causes it to try to get a long when I don't have one.

 Unless I comment that out, I get:

 12-08 12:02:21.263: ERROR/AndroidRuntime(808):
 java.lang.NumberFormatException: Achee
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 java.lang.Long.parse(Long.java:368)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 java.lang.Long.parseLong(Long.java:358)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 java.lang.Long.parseLong(Long.java:323)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 java.lang.Long.valueOf(Long.java:570)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.database.MatrixCursor.getLong(MatrixCursor.java:245)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.database.CursorWrapper.getLong(CursorWrapper.java:127)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.widget.CursorAdapter.getItemId(CursorAdapter.java:156)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.widget.AutoCompleteTextView.buildDropDown
 (AutoCompleteTextView.java:900)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.widget.AutoCompleteTextView.showDropDown
 (AutoCompleteTextView.java:843)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.widget.AutoCompleteTextView.onFilterComplete
 (AutoCompleteTextView.java:749)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.widget.Filter$ResultsHandler.handleMessage(Filter.java:266)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.os.Looper.loop(Looper.java:123)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 android.app.ActivityThread.main(ActivityThread.java:3948)
 12-08 12:02:21.263: ERROR/AndroidRuntime(808):     at
 

[android-developers] Re: androidplayground.net

2009-12-13 Thread theSmith
How did you guys set up alerts? Im confused by what you mean by this.

-smith

On Dec 12, 7:24 pm, iPaul Pro mr.paulbu...@gmail.com wrote:
 @Andrel - Thats exactly how I found out about this.

 On Dec 12, 6:57 pm, Andrei gml...@gmail.com wrote:

  I would advise to everybody to create Google alert for paid app
  You'll get updates daily
  put your app name apk

  MyAppName apk

  On Dec 12, 6:26 pm, iPaul Pro mr.paulbu...@gmail.com wrote:

   Website responded immediately, vowing to remove the app by the end of
   the night.

   On Dec 12, 5:28 pm, iPaul Pro mr.paulbu...@gmail.com wrote:

I found my software being illegally distributed on this website. I
thought some of you would like to know about it. They are charging
9.99 for unlimited access to over 300 apps, illegally.

   http://www.androidplayground.net

I will report back with the results of my attempt to have the site
remove my software and any mention of it

Paul Burke (iPaul Pro)
Finer 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: List view with textviews and imageview, best practices

2009-12-10 Thread theSmith
Patrick,

I would suggest using a custom ArrayAdapter that uses the 'view
holder' concept to manage the child views.
Also instead of using a linearlayout I would use a relative layout as
it will render faster because your layout tree won't be as deep.

Im not use how you are 'lazy loading' now, but using a separate thread
that loads the images should do the trick, as it will not lock up the
UI thread.

-theSmith

On Dec 10, 4:19 am, Patrick Plaatje patrick.plaa...@ndcvbk.nl wrote:
 Hi All,

 i'm developing an application which has an listview. I'm currently creating
 the list item view dynamically from code (linearlayout, which includes 2
 textviews and 1 imageview), but i'd like to use an XML resource for this. I
 read it isresource intensive when getting this view using findViewById
 within a loop. I thougth of using a custom adapter for this, but am not sure
 on how to include lazy loading of the image then. Anyone has some
 suggestions for this?

 Regards,

 Patrick

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

2009-12-10 Thread theSmith
Joe,

The developer's site is always an excellent resource
http://developer.android.com/

Here is their notepad tutorial (in 4 parts)
http://developer.android.com/guide/tutorials/notepad/index.html

Some fantastic videos from Google IO.
Check out the Debugging and Lightning talks.
http://code.google.com/events/io/2009/sessions.html#mobile

And the newbie videos
http://developer.android.com/videos/index.html#v=opZ69P-0Jbc

-theSmith

On Dec 8, 10:33 pm, smithkjnc smithk...@gmail.com wrote:
 Hello.

 I am new to the Android coding but not to programming as I learned on
 Pascal a LONG time ago.

 I would like to do some programming in this new language but need some
 tips and help.  Sample code and video are always good for me as I am a
 visual learner but I welcome any and all help.

 Thanks!

 -Joe

-- 
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: Back-porting from Android 2.0 to Android 1.5

2009-12-08 Thread theSmith
Should we just create our own search activity or is there one
available in 1.5?  As far as I know the global search feature is only
1.6+.

When creating our own activity, how would we capture the search key
(hard) being pressed on a device?

-Chris

On Dec 7, 6:25 pm, Dianne Hackborn hack...@android.com wrote:
 On Mon, Dec 7, 2009 at 1:20 PM, AJ adam.j...@gmail.com wrote:
  1) drawable verses the new drawable-* ... if I don't have an icon in
  drawable.png will my application be icon-less in 1.5? Do I need to
  copy one of the new icons in there? If so, which one?

 If you want to run on pre-1.6 platforms, I would suggest putting your medium
 density bitmaps in drawable/* instead of drawable-mdpi/*.  1.6 and later
 will assume that these are medium density.

  2) search ... how does the SEARCH activity get raised for an
  application on SDK 1.5 devices (which don't appear to have a hardware
  search button.) Do I need to add a menu option and raise SEARCH as a
  sub-activity? [Note: I am 100% confused by search button on all
  android versions 'cos what I read says SDK 2.0 copes with virtual
  buttons, yet those devices (in emulator) seem to have hardware ones.
  What am I missing?]

 Whether or not there is a search button is really a device thing, and not a
 platform version thing.  For example, the G1 has a search key on its hard
 keyboard, and you can assume there will be devices running 2.0 and later
 that don't have a search key.  If search is important for your app, you will
 want to have another mechanism to get to it -- often a menu item.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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: Emulator on Linux 10 times slower than on Windows

2009-12-05 Thread theSmith
My emulators behave just fine under 9.10 Karmic Kola, unless I start
method tracing, then it really slows down.
 Are you using the java sun jdk and not the open jdk?



On Dec 5, 11:12 am, Mark Murphy mmur...@commonsware.com wrote:
  I'm using a dual boot configuration with Windows XP and Ubuntu 9.04.
  On XP, the emualtor is somehow slower than a real G1 device, but it's
  completely ok.

  But on Ubuntu, the emulator is unusable slow. Note that other programs
  run just fine under my ubuntu. I have no exact measurements, but I
  think the emulator about 10 times slower than on Windows. Installing a
  small app takes more than 2 minutes, starting an app sometimes takes
  over 2 minutes, returning to the home screen takes up to 40 seconds,
  and there is not a single click I can do that takes less than 2
  seconds to trigger some kind of reaction. I get around 2 fps at most,
  no matter what I do.

 I am writing this email on a notebook, dual-boot Vista and Ubuntu 9.04,
 and if anything, the Ubuntu emulator is a bit faster.

  Also, I noticed that under heavy usage of the emulator, the usage of
  my real CPU never went above 30%.

  Is there any explanation for this slowness on Ubuntu? Or even a way to
  further investigate where the bottleneck might be?

 How much RAM do you have? What is the output of running 'free' in Ubuntu
 from a shell?

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

-- 
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: Can other applications use the share function of Facebook for Android?

2009-12-04 Thread theSmith
Im not using intents here actually, its the intent chooser with a type
of text/* that will display it in the chooser's menu.  But again it
doesn't work correctly so you really have to reason to implement it
this way.

On Dec 4, 10:48 am, Wouter wouterg...@gmail.com wrote:
 Could you tell me which intents you have used to share via facebook.
 i'm also looking for this and share via twitter, ...

 Thanks,

 Wouter

 On Nov 27, 7:43 am, theSmith chris.smith...@gmail.com wrote:

  My application is able to detect thefacebookapp (if its installed)
  and will attempt toshareviafacebook.
  But thats as far as I've gotten.  The mobile.facebook.com site opens
  and tells me it couldn'tsharemy link.

  Ultimately this is theFacebookapps problem, as far as I know there
  is no documentation for its Intents and this is the limiting factor
  for me.

  -theSmith

  On Oct 28, 6:08 am, feeling3_4 lanwen.ban...@gmail.com wrote:

   Hi, guys

   Facebookfor Android is great, but I just wonder that whether my
   application can use thesharefunction of it. Or, does the Facebook
   for Android release some apis and let other applications use the
   built in functions like share or feed?

   Any advice is greatly appreciated. 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: Can other applications use the share function of Facebook for Android?

2009-12-04 Thread theSmith
Im using this
  chooseIntent.setType(text/*);

while this will cause the facebook app to show up (and bloo for that
matter), the apps dont respond to the EXTRA_TEXT the way they should.
Basicly the facebook app opens and tries to post, but fails.  Since I
can't find any documentation for the facebook app's intents I'm stuck
with a broken app at the moment.



On Dec 4, 11:05 am, Wouter wouterg...@gmail.com wrote:
 Ok I am using also the intentChooser like this

                                 Intent t = new Intent(Intent.ACTION_SEND);
                                 t.setType(text/plain);
                                 t.putExtra(Intent.EXTRA_TEXT, test);
                 t.putExtra(Intent.EXTRA_SUBJECT,found this great
 trip);
                                 t.addCategory(Intent.CATEGORY_DEFAULT);
                                 Intent share = Intent.createChooser(t,Share 
 with others);
                                 startActivity(share);

 It opens mail and messaging correcty with the text.

 What do you mean with implement it this way?

 On Dec 4, 4:51 pm, theSmith chris.smith...@gmail.com wrote:

  Im not using intents here actually, its the intent chooser with a type
  of text/* that will display it in the chooser's menu.  But again it
  doesn't work correctly so you really have to reason to implement it
  this way.

  On Dec 4, 10:48 am, Wouter wouterg...@gmail.com wrote:

   Could you tell me which intents you have used to share via facebook.
   i'm also looking for this and share via twitter, ...

   Thanks,

   Wouter

   On Nov 27, 7:43 am, theSmith chris.smith...@gmail.com wrote:

My application is able to detect thefacebookapp (if its installed)
and will attempt toshareviafacebook.
But thats as far as I've gotten.  The mobile.facebook.com site opens
and tells me it couldn'tsharemy link.

Ultimately this is theFacebookapps problem, as far as I know there
is no documentation for its Intents and this is the limiting factor
for me.

-theSmith

On Oct 28, 6:08 am, feeling3_4 lanwen.ban...@gmail.com wrote:

 Hi, guys

 Facebookfor Android is great, but I just wonder that whether my
 application can use thesharefunction of it. Or, does the Facebook
 for Android release some apis and let other applications use the
 built in functions like share or feed?

 Any advice is greatly appreciated. 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: Can other applications use the share function of Facebook for Android?

2009-12-04 Thread theSmith
Unfortunately yes, it would be a huge pain to create your own client
to update a facebook status.
If you really wanted to you could ask the Bloo guys how they did it,
or try bugging the hell out of the official facebook team to give us
some Intents that work correctly.


On Dec 4, 12:07 pm, Wouter wouterg...@gmail.com wrote:
 All the other apps except of facebook and bloo (facebook) are working
 with my EXTRA_TEXT.
 Really sucks that this isn't working for facebook. And it's a lot of
 work to make facebook client to post status update?

 Wouter

 On Dec 4, 5:38 pm, theSmith chris.smith...@gmail.com wrote:

  Im using this
        chooseIntent.setType(text/*);

  while this will cause the facebook app to show up (and bloo for that
  matter), the apps dont respond to the EXTRA_TEXT the way they should.
  Basicly the facebook app opens and tries to post, but fails.  Since I
  can't find any documentation for the facebook app's intents I'm stuck
  with a broken app at the moment.

  On Dec 4, 11:05 am, Wouter wouterg...@gmail.com wrote:

   Ok I am using also the intentChooser like this

                                   Intent t = new Intent(Intent.ACTION_SEND);
                                   t.setType(text/plain);
                                   t.putExtra(Intent.EXTRA_TEXT, test);
                   t.putExtra(Intent.EXTRA_SUBJECT,found this great
   trip);
                                   t.addCategory(Intent.CATEGORY_DEFAULT);
                                   Intent share = 
   Intent.createChooser(t,Share with others);
                                   startActivity(share);

   It opens mail and messaging correcty with the text.

   What do you mean with implement it this way?

   On Dec 4, 4:51 pm, theSmith chris.smith...@gmail.com wrote:

Im not using intents here actually, its the intent chooser with a type
of text/* that will display it in the chooser's menu.  But again it
doesn't work correctly so you really have to reason to implement it
this way.

On Dec 4, 10:48 am, Wouter wouterg...@gmail.com wrote:

 Could you tell me which intents you have used to share via facebook.
 i'm also looking for this and share via twitter, ...

 Thanks,

 Wouter

 On Nov 27, 7:43 am, theSmith chris.smith...@gmail.com wrote:

  My application is able to detect thefacebookapp (if its installed)
  and will attempt toshareviafacebook.
  But thats as far as I've gotten.  The mobile.facebook.com site opens
  and tells me it couldn'tsharemy link.

  Ultimately this is theFacebookapps problem, as far as I know there
  is no documentation for its Intents and this is the limiting factor
  for me.

  -theSmith

  On Oct 28, 6:08 am, feeling3_4 lanwen.ban...@gmail.com wrote:

   Hi, guys

   Facebookfor Android is great, but I just wonder that whether my
   application can use thesharefunction of it. Or, does the 
   Facebook
   for Android release some apis and let other applications use the
   built in functions like share or feed?

   Any advice is greatly appreciated. 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: Can other applications use the share function of Facebook for Android?

2009-11-28 Thread theSmith
My application is able to detect the facebook app (if its installed)
and will attempt to share via facebook.
But thats as far as I've gotten.  The mobile.facebook.com site opens
and tells me it couldn't share my link.

Ultimately this is the Facebook apps problem, as far as I know there
is no documentation for its Intents and this is the limiting factor
for me.

-theSmith

On Oct 28, 6:08 am, feeling3_4 lanwen.ban...@gmail.com wrote:
 Hi, guys

 Facebookfor Android is great, but I just wonder that whether my
 application can use the share function of it. Or, does the Facebook
 for Android release some apis and let other applications use the
 built in functions like share or feed?

 Any advice is greatly appreciated. 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: Detect/intercept screen turning off

2009-11-28 Thread theSmith
Im not sure you can catch it from turning off, but you can setup a
broadcast receiver to let you know when that happens.

Your receiver must be defined in java (not xml) and look for the
ACTION_SCREEN_OFF broadcast.

Hope that helps,

theSmith

On Nov 27, 6:47 am, David Given d...@cowlark.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Is there any way where I can detect that the screen is about to turn
 off, so I can do some work *before* it happens?

 I need this to work around bug 3755: OpenGL apps sometimes crash when
 the screen gets turned off because they don't get
 surfaceDestroyed()/surfaceCreated() events.

 http://code.google.com/p/android/issues/detail?id=3755

 Simply put, I need to shut down OpenGL before the phone has a chance to
 detach the GPU. The only events I seems to be getting when the screen
 turns off are onPause() and onWindowFocusChanged()... both of which turn
 up *after* the GPU detaches, by which time it's too late.

 Can anyone suggest any way of doing this?

 (In desperation, I have tried to intercept the power key, but the
 power/hangup key is treated specially and doesn't generate keyboard
 events...)

 - --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ Sufficiently advanced incompetence is indistinguishable from
 │ malice. -- Vernon Schryver
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org

 iEYEARECAAYFAksPvFIACgkQf9E0noFvlzioGACfW5r72xNXqykHvSu4SocKo0bw
 rlkAoLNa6NZiWgczIBHtLmgJmzFZLiaR
 =HOwY
 -END PGP SIGNATURE-

-- 
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 SDK 2.0 Features.

2009-11-28 Thread theSmith
A little google search goes a long way...

http://developer.android.com/sdk/android-2.0-highlights.html
http://developer.android.com/sdk/android-2.0.html#api
http://developer.android.com/sdk/api_diff/5/changes.html

The second one is the one you'll be most interested in I think.

-theSmith

On Nov 27, 1:59 am, Sasikumar.S sasikumar.it1...@gmail.com wrote:
 Hi,

 Can any one tell about the Android SDK 2.0 Features not in the Android SDK
 1.6?.

 what are the features?...

 What are the benefits?...

 --
 Thanks  Regards
 Sasikumar.S

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