Re: [android-developers] Re: new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-24 Thread B Lyon
and btw, the DownloaderService as is did not work for me if the needed
custom subclass of DownloaderService was not in the same package as
the app... based on how DownloaderService.java starts the service in
its internals.  Took me a little bit to figure out that was what was
going on...

On Thu, Mar 22, 2012 at 5:46 PM, B Lyon bradfl...@gmail.com wrote:
 thanks for the info, folks!

 On Mon, Mar 19, 2012 at 9:56 AM, David Schreiber
 flashmasterd...@gmail.com wrote:
 Hello,

 The APK expansion downloader comes with sources and we did make our own fix
 to make downloader running. I have also already filed a bug report as
 recommended by Mark Murphy.

 Greetings,
 David

 Am Freitag, 16. März 2012 14:47:54 UTC+1 schrieb Streets Of Boston:

 I haven't checked if the downloader services comes with the sources. But
 if so, just change the sources for the Notifications to your liking.
 (we did that for our app, using the DownloadManager (and DownloadProvider)
 from the ICS source code and adding compatibility code ourselves
 (DRM/Notifcations))

 On Thursday, March 15, 2012 1:04:56 PM UTC-4, David Schreiber wrote:

 Hello there,

 I just implemented the downloader service and have noticed some things
 (and one severe bug). First of all, documentation says the downloader
 service needs a minimum of API level 4. The service provides two different
 kinds of user notifications, one for API level 3+ one for API level 11+ -
 the latter should allow better looking notifications. But...!

 Sadly the provided SDK package just tests for the existence of the
 Notification.Builder class, which is available since API level 11. This is
 not enough for setting a progress via the setProgress() method, because 
 this
 method was introduced with API level 14. Thus, devices with an API level of
 11, 12 and 13 will definitely not be able to use the downloader upon fixing
 this issue.

 If you need further information, feel free to ask.

 Greetings,
 David Schreiber

 PS: You have to compile your application (or your downloader package)
 against api level 14+. This should work with all devices (but with the bug 
 I
 described above)

 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10

 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia


 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10

 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia


 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10

 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia

 --
 You received this message because you are subscribed to the Google
 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

Re: [android-developers] Re: new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-22 Thread B Lyon
thanks for the info, folks!

On Mon, Mar 19, 2012 at 9:56 AM, David Schreiber
flashmasterd...@gmail.com wrote:
 Hello,

 The APK expansion downloader comes with sources and we did make our own fix
 to make downloader running. I have also already filed a bug report as
 recommended by Mark Murphy.

 Greetings,
 David

 Am Freitag, 16. März 2012 14:47:54 UTC+1 schrieb Streets Of Boston:

 I haven't checked if the downloader services comes with the sources. But
 if so, just change the sources for the Notifications to your liking.
 (we did that for our app, using the DownloadManager (and DownloadProvider)
 from the ICS source code and adding compatibility code ourselves
 (DRM/Notifcations))

 On Thursday, March 15, 2012 1:04:56 PM UTC-4, David Schreiber wrote:

 Hello there,

 I just implemented the downloader service and have noticed some things
 (and one severe bug). First of all, documentation says the downloader
 service needs a minimum of API level 4. The service provides two different
 kinds of user notifications, one for API level 3+ one for API level 11+ -
 the latter should allow better looking notifications. But...!

 Sadly the provided SDK package just tests for the existence of the
 Notification.Builder class, which is available since API level 11. This is
 not enough for setting a progress via the setProgress() method, because this
 method was introduced with API level 14. Thus, devices with an API level of
 11, 12 and 13 will definitely not be able to use the downloader upon fixing
 this issue.

 If you need further information, feel free to ask.

 Greetings,
 David Schreiber

 PS: You have to compile your application (or your downloader package)
 against api level 14+. This should work with all devices (but with the bug I
 described above)

 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10

 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia


 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10

 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia


 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10

 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia

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

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

[android-developers] new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-08 Thread B Lyon
I was playing with implementing the new expansion pack stuff, and kept
running into things that make me think you need to use an api  10 if
you want to use the downloader that comes with the sdk.  In fact, the
library project seems to require api14.  Am I missing something
trivial?  This is for stuff in the package
com.google.android.vending.expansion.downloader.

* TelephonyManager.NETWORK_TYPE_LTE - api11
* TelephonyManager.NETWORK_TYPE_EHRPD - api11
* TelephonyManager.NETWORK_TYPE_HSPAP - api13

I really want to use the stuff out of the box from google here... but
it looks like you need to finagle around this api stuff for the 87% of
devices still on api8 or api10
(http://developer.android.com/resources/dashboard/platform-versions.html).


tia

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


Re: [android-developers] duplicate and rename package

2011-12-11 Thread B Lyon
FYI - Let me ditto Mark's original response (especially the crazy
weirdness with it mangling some things in the manifest after the last
step).  When I try to use the Rename package with adt in eclipse,
it's never worked yet, getting some kind of internal error.  This is
Windows 7.



On Sun, Dec 11, 2011 at 3:32 AM, Daniele Segato
daniele.seg...@gmail.com wrote:
 On 12/08/2011 10:57 AM, Mukesh Srivastav wrote:

 Pretty simple, if you use Eclipse as Development Enviorment.

 You just have to select the project root in the Eclipse and  Rename
 it,Eclipse will automatically update the reference of the package.


 eclipse is not going to fix your package in layout files and/or class
 attribute when you use fragment in your layout files


 I gave a way to do it which is independant of the development environment.

 actually a single command could have been enough:

 sed -i 's#old.package.name#new.package.name#g' `grep -Rl 'old.package.name'
 *`


 but if you have a very simple package or colliding packages that may have
 had issues.

 Hopefully we are developer and are not scared of the command line and/or
 writing some regex.

 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

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


Re: [android-developers] Same Issue

2011-11-29 Thread B Lyon
:) yes, the TIFF version number, chosen for obvious reasons

On Tue, Nov 29, 2011 at 10:37 PM, Streets Of Boston
flyingdutc...@gmail.com wrote:
 42!

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

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


Re: [android-developers] AVD for samsung galaxy tab 10.1

2011-11-28 Thread B Lyon
based on http://www.samsung.com/global/microsite/galaxytab/10.1/spec.html,
wouldn't it be android 3.1/2, WXGA with 149 ppi?  You can probably get
a few other yes/no settings from that page - accelerometer, for
example.

On Thu, Nov 24, 2011 at 11:16 PM, Mutegeki Cliff
mutegekicl...@gmail.com wrote:
 Hello there. i need help on to create an AVD for a samsung galaxy tab
 10.1. and also is there any site that has a list of the settings for
 device that run android,

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

-- 
You received this message because you are subscribed to the Google
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] Details on the load apk and start the app process?

2011-11-26 Thread B Lyon
I am trying to follow the process by which the system takes an apk and
fires up the associated app.  Specifically, I'm trying to find the
framework code where it reads the app manifest and acts on the
user-requested permissions and instrumentation tag (if it is there).
 I've can't seem to find the stuff that does this, and am hoping it's
right in front of my face somewhere on the web.

I've watched logcat to see what seems to happen when an apk is
installed from eclipse, and I see a PackageIntentReceiver do some
stuff (this is a private class in
com.android.settings.applications.ApplicationsState).  But the trail
gets cold for me in ApplicationsState.addPackage.  That might not even
be the class that is doing the work I am interested in.

tia

-- 
You received this message because you are subscribed to the Google
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] Android test project - are any permissions ignored in favor of the target application?

2011-11-25 Thread B Lyon
I have been trying to create an android test where the android test
project has permissions that the target application does not.  The
purpose would be for the test to change various things about the
environment as part of testing the application.  However, the testing
harness/framework seems to ignore any permissions I set in the
manifest of the test project.  Only the permissions of the target
application seem to be in play.

My question is whether the permissions on the test project are used
for anything.

Note - I am using robotium, but I assume that this is not affecting
the behavior since it is just a library being used by the android test
project.

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


Re: [android-developers] Re: onActivityResult not Triggering

2011-11-21 Thread B Lyon
Are any other startActivityForResult calls working for that
TabActivity, successfully coming back to onActivityResult?



On Mon, Nov 21, 2011 at 9:54 PM, BelvCompSvs fa829...@gmail.com wrote:
 To do this, you call the startActivityForResult(Intent, int) version
 with a second integer parameter identifying the call. The result will
 come back through your onActivityResult(int, int, Intent) method -
 which you dont have .,...

 just code that method for what you want it do do when it comes back an
 very likely you can at least make progress

 On Nov 20, 11:02 pm, Cody Duncan cody10...@gmail.com wrote:
 Hi guys,

 For some reason, an activity's onActivityResult method is not being
 called.  It is a tab within a tab Activity which is sending a
 startActivityForResult to an independent activity.  Here is the
 relevant code.

 in MealsTodayList class:
 void createEntry()
         {
                 Intent newMeal = new Intent(this, MealAdder.class);
                 newMeal.setAction(NEW_MEAL);
                 newMeal.putExtra(MealDbAdapter.KEY_DATE, todayDate);
                 startActivityForResult(newMeal, NEW_ENTRY); //NEW_ENTRY=1
         }

 in MealAdder class:
 public void saveNewEntry(View v)
         {
                 Intent mealEntryIntent = new 
 Intent(this,MealsTodayList.class);
                 [...]
                 if (updatedEntry)
                 {
                         this.setResult(RESULT_EDIT_OK, mealEntryIntent);
                 }
                 else
                 {
                         this.setResult(RESULT_OK, mealEntryIntent);
                 }
                 finish();
         }

 In this case, the activity MealAdder is completed once the save button
 is called, which calls this method.

 Any suggestions would be magnificent.  Thanks!

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

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


Re: [android-developers] Lots of the layout ID xyz is not valid errors in ADT r15

2011-11-20 Thread B Lyon
is it only when includes are involved?  might be related to this

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

starting eclipse with  -clean worked for me, but I think that might
not have worked for some folks

On Sun, Nov 20, 2011 at 11:09 AM, olefevre lefev...@googlemail.com wrote:
 So, having upgraded to ADT r15 I am now getting scores of these errors
 in the layout editor. Let me emphasize that it used to work fine
 before (that is, in r13), that the compilation is clean and the app
 runs just fine: it's only when you try to open a layout in the layout
 editor that you get these errors; in short they are 100% spurious.
 They are rampant: pretty much every layout with an include triggers
 one, and ineradicable: no amount of re-building, cleaning or even
 deleting and re-creating the project will make them go away.

 What happened? This is a very big deal as it makes the layout editor
 all but useless and that was the single most valuable bit of the ADT
 (for me at any rate).

 -- O.L.

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

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


Re: [android-developers] Where do you aim for design specs?

2011-10-30 Thread B Lyon
ugh.  Dealing with this exact same issue myself at the moment (iPhone --
android).  The screens link Mark pointed out is great to see what things
are out there as of Oct 3 - 90% are apparently Normal/hdpi or Normal/mdpi,
so you can set up the avd's to take a look at how things look (or buy all
the devices).Not depicted on the list, of course, is the potential
increase of Kindle Fires that are to be shipped Nov 15.  Amazon has some
info on how to configure the emulator for this (
https://developer.amazon.com/help/faq.html#KindleFire  which I found
via one of Mark's answers on stackoverflow).

On Sun, Oct 30, 2011 at 1:20 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sun, Oct 30, 2011 at 12:56 PM, Chris Stewart cstewart...@gmail.com
 wrote:
  Going from a world where he worried about 3.5
  only, to a world where every size is potentially available, is a concern
 of
  mine.


 http://www.amazon.com/Red-Bull-Energy-Drink-8-4-Ounce/dp/B000MTST70/httpcommonsco-20

 :-)

  So I'm wondering, which screen size, resolution, density, do we aim for
 to
  start with?

 That's like saying do I focus on 800x600, 804x567, or 923x725
 resolution browser windows first?. The answer is all of them,
 because you focus on creating a design that incorporates rules for
 handling resizeable browser windows.

  Certainly we'll need to work on each of the layout/resource
  variations (small, medium, large, xlarge, ldpi, mdpi, hpdi, etc, etc) but
  I'm looking for a reference point to get started.  Should we be focusing
 on
  the largest for phones, and largest for tablets, with the expectation
 that
  we can mostly scale down from each of those to the smaller phone and
 tablet
  sizes/resolutions/densities?

 I wouldn't. On a tactical level, it's almost always easier to scale up
 than down.

 Strategically, your first job is to determine what you care about.
 -small screens, for example, are not terribly popular, so you might
 elect to skip those in the interests of reducing development effort.
 See:

 http://developer.android.com/resources/dashboard/screens.html

 Your second job is to come up with the big-ticket designs for your UX
 on the remaining screen sizes. For example, where will you use one
 fragment per activity in -normal devices and use multiple fragments
 per activity in -large and/or -xlarge? See:

 http://developer.android.com/guide/practices/tablets-and-handsets.html

 Your third job is, within a fragment, to design layouts that can
 handle the variations in screen size the fragment will be expected to
 cope with. For some fragments, they will have minor variations in size
 (e.g., a phone-sized screen on a phone or a phone-sized portion of a
 tablet screen). For some fragments, they will have much more dramatic
 variations in size (e.g., a case where you will only ever have the
 fragment by itself in an activity, or you have an activity sans
 fragments). Here, your need to teach your GUI designer the basic rules
 for The Big Three Android layouts:

 -- use android:layout_weight with LinearLayout
 -- use android:stretchColumns and android:shrinkColumns with TableLayout
 -- use all the android:layout_* rules with RelativeLayout, to
 stipulate what is attached to what (with whitespace therefore implied)

 Your GUI designer should be able to give you GUI designs that depict
 these rules.

 Densities tend to fall out after the basic design is complete. Either
 stick with a single density for each image (and let Android resample
 it, with varying degrees of quality and performance) or package in one
 copy of the image per density (at the cost of a somewhat larger APK).
 If you have the same image that should appear in different sizes in
 different screen sizes or layouts, again you will need to decide if
 you want Android resizing the image (saves development effort at cost
 of speed/quality) or if you want to package in multiple renditions of
 the image at different sizes (e.g., icon-standard vs. icon-embiggened)
 for each relevant density.

 This would be an approach for a regular app. Games probably come at
 this from a totally different approach vector, for example.

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

 Android Training in NYC: http://marakana.com/training/android/

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to

Re: [android-developers] can't find info for Google GCP Intent for Android

2011-10-21 Thread B Lyon
was wondering the same thing - finding out about GCP is strangely a
bit confusing.  Mark Murphy in a more recent post here (Sept 9)
suggested just put the file somewhere your computer can get to (email,
dropbox, etc.) and then print from there which leads me to believe
there's probably not a cleaner solution at this point.

here's a slideshare presentation on GCP from a few months ago

http://www.slideshare.net/wolfpaulus/android-print-intent-8431140

I haven't tried it yet

On Mon, Aug 29, 2011 at 1:47 AM, Eric ericw...@gmail.com wrote:
 Hi
  I was trying to find out detail instructions on how to use Google's
 Cloud Print Intent (GCP Intent) with no success.  The link from
 Google's site,http://code.google.com/apis/cloudprint/docs/
 android.html, seems broken for a long time.  Is there anyone has had
 any successful integration or any suggestion directing me to an
 alternative link to check is appreciated?  Or instead of GCP Intent,
 GCP Web Element now is the right way recommended, including for
 Android devices.
  Thanks.

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

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


Re: [android-developers] Can't attach my devices anymore...

2011-07-27 Thread B Lyon
on 2.2, I've seen the os seem to run out of file handles or something
after uploading an app many many times as part of debugging.  A reboot
of the phone seemed to clear it up for me.

On Mon, Jul 25, 2011 at 10:20 AM, Amokrane Chentir amokr...@submate.com wrote:
 Hi,

 I have an issue here with the ADB tool. Since this morning I cannot
 attach my devices anymore like I used to do for the last two months or
 so. Nothing has changed in my configuration, I am still running the
 very same version of Ubuntu 10.10 that I was running before.

 Also, this is the content of my rules file (in /etc/udev/rules.d/51-
 android.rules) :

 SUBSYSTEM==usb, ATTR{idVendor}==04e8 MODE=0666, GROUP=plugdev
 SUBSYSTEM==usb, ATTR{idVendor}==18d1 MODE=0666, GROUP=plugdev

 (since I have both Samsung Spica and Nexus S devices).

 I gave the file a et r permissions (chmod a+r) and restarted udev.

 On the device side, unknown sources is enabled and same for debug
 mode.

 Can't find what is wrong!

 Thank you for your help!


 Amokrane

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

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


Re: [android-developers] Place a RelativeLayout below a LinearLayout inside another LinearLayout

2011-06-15 Thread B Lyon
the graphics viewer in the eclipse plugin is very useful for quickly
seeing what may be going on, if you're not already using it.  It's
easy to miss an important little thing in the sea of xml verbosity!


On Wed, Jun 15, 2011 at 6:08 PM, TreKing treking...@gmail.com wrote:
 On Wed, Jun 15, 2011 at 11:48 AM, Sergi reg...@gmail.com wrote:

 I'm trying to place a `RelativeLayout` below a `LinearLayout` that
 is nested inside another `LinearLayout` and it's not working.

 That's not what your XML shows - your XML shows a RelativeLayout below a
 LinearLayout nested insided another *Relative*Layout.


 Is there any way I can do that?

 Yes - do exactly as you described, with the right property settings. Without
 a clear visual indication of what you're trying to achieve, it's hard to say
 more than that.

 -
 TreKing - Chicago transit tracking app for Android-powered devices

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

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


Re: [android-developers] Re: Advanced Memory Leak, What could be the cause/How to find it ?

2011-06-05 Thread B Lyon
what version of android?

On Sun, Jun 5, 2011 at 2:51 PM, albnok alb...@gmail.com wrote:
 Comment everything out. Make a routine where you rotate and go in and
 out of the activity. Start activity fresh, do hprof dump, do the
 routine, get another dump. Click Histogram and click the right most
 icon to compare to the fresh dump. You may spot some extra objects.
 Click Histogram again and search for the extra objects. Right-click
 and look for the ignore phantom/weak/soft references (not at
 computer, don't remember exact menu). You may find orphaned objects
 e.g. Matrix as a result of doing m = new Matrix() when you can reuse
 with m.reset(). Aim for zero gain before uncommenting blocks of code
 to find the leak(s).


 On May 14, 12:38 am, olivier olivier.stev...@treebux.fr wrote:
 Comcommentment  Dears,

 I am metting an OutOfMemory exception after a while, while inflating
 an XML View with a bitmap.

 The problem occurs after opening many times activities that are using
 many bitmap but always inflated from the XML.

 I check with MAT the Memory.
 First question : I don't retain any of my Activity in memory - If I
 filter on the name of my Activity, i get Objects = 0, but on some
 activities I could see RetainedHeap = 302. Does this indicate a
 leak ?

 After that, I try to compare my memory in different points of time, to
 see the objects that have been created. But I can't find any thing
 significant.

 My Question is : If I don't retain activities in memory what could be
 the leak reasons ?
 What tools/Method to use to find it ?

 Regards,

 Olivier

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

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


Re: [android-developers] Problems with main.xml after uncritical sourcecode changes

2011-06-03 Thread B Lyon
if you're using eclipse

sometimes the eclipse android plugin sticks in an import to android.R
- it does for me every now and then, and then it of course doesn't
know what my id's are

or there could be an issue with your xml, which the plugin should be
telling you about



On Fri, Jun 3, 2011 at 11:37 AM, Matthew rebbe.matth...@gmail.com wrote:
 Hey, got a little problem while developing my project.

 I`ve got some code running well, with some views in an activity but
 then I tried to add another Button in code (with onClickListener
 etc.)  and in the graphical main.xml view.

 Code was okay, but the Id of the new button could not be resolved...
 i thought it would be an typical writing mistake or something like
 that, but also after some trying the Id wont be work. So i finaly
 changed the code back to the last known working version, but now I
 have still problems with all other Views ID`s, there all cant be
 resolved even the

 setContentView(R.layout.main);

 command of the onCreate() method... (main is underlined red and
 eclipse tells that main could not be resolved or is not a field)

 (refresh project, restart did also not work)

 I tried to create an new project as a test, same problem in the auto
 created sourcecode.

 So finaly i think that i accidential changed something in the Eclipse
 IDE.. but i dont have anm Idea what to do... can anyone help?

 thanks

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

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


Re: [android-developers] Mauliple 'Window' Application and Changing Layout At Runtime

2011-05-31 Thread B Lyon
what is the error?

On Tue, May 31, 2011 at 9:13 PM, MattClark mrclark32...@gmail.com wrote:
 I have an application that when running i need to multiple times
 change the layout of the screen, however, the program errors on my
 buttons listeners when i set a new content view. How would i go about
 changing the listners to the new layout?

 My second question is how i would start a new 'window' in my
 application. I have the main screen running, and when the user clicks
 say settings, it brings up a separate settings window.

 Any and all help is greatly appreciated.
 ~Matt

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

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


Re: [android-developers] displaying mySQL data through JSON in a selectable list

2011-05-30 Thread B Lyon
What exactly do you mean by display as selectable items?

On Fri, May 27, 2011 at 5:05 AM, ram_droid
richmorgan1...@googlemail.com wrote:
 Hi,

 I am in the process of building an app that runs on a client device
 collecting various bits of data and then posting it to a remote mySQL
 database via php. This part is no problem and works successfully.  The
 remote DB is host to a server process that performs various matching
 exercises on the data based on various conditions and returns a
 variable-sized data list back to client phones which it is intended to
 display in a selectable list (so a phone user can select to view and
 act upon the information).

 I have successfully retrieved the records from the mySQL DB and
 displayed them as static JSON to String text elements on a phone. BUT
 I have been spending days now trying to figure out how to get the JSON
 elements (or String elements) to display as selectable items. Can it
 be so difficult?

 Any help  really appreciated

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

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


Re: [android-developers] Regarding Layout

2011-05-30 Thread B Lyon
what treking has suggested has worked for me - you get the cool pinch
zoom stuff, too

On Mon, May 30, 2011 at 7:58 PM, TreKing treking...@gmail.com wrote:
 On Mon, May 30, 2011 at 4:22 AM, Ishwar Chawla chawla.ish...@gmail.com
 wrote:

 I want to incorporate new lines and bullets like we do in word document so
 what layout should I use so I incorporate these features efficiently

 Consider an HTML file and rendering it in a WebView.

 -
 TreKing - Chicago transit tracking app for Android-powered devices

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

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


Re: [android-developers] Gallery with Adapter witch is return layouts

2011-05-28 Thread B Lyon
LinearLayout is a view, isn't it?

View -- ViewGroup -- Linearlayout

2011/5/28 Károly Holczhauser holczhau...@gmail.com:
 Hi all !
  I would like to make my custrom gallery, but when I'm implementing the
 adapter it have to be return an View. I would like to use the gallery to
 display my own LinearLayout-s, so the adapter have to return these !
  Any idea how can I use gallery to display my own , custrom linearlayouts ?
  Thx: Károly from Hungary

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

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


Re: [android-developers] Trying to get a ProgressDialog to display.

2011-05-28 Thread B Lyon
I've never used that one, but I'm wondering if the second .show() is
necessary, and/or if it is somehow causing weirdness?  This person
(http://www.helloandroid.com/tutorials/using-threads-and-progressdialog)
didn't do that.

On Sat, May 28, 2011 at 9:43 AM, EmilDiego emildi...@gmail.com wrote:
 I have a function inside one of my activities that calculates some
 statistics and takes a little time to generate a report.  I want to
 display a progressDialog while this is going on to give the user some
 feedback that something is happening while he is waiting.  The problem
 I am having is that I can't get my progressDialog to display no matter
 what I do.  Is there some obscure factoid that I am missing out on
 here that is preventing this to work.  This problem is particularly
 perplexing because I am using similar code elsewhere in the Activity
 and that works ok.  Any ideas


 Here is my code:

 //* ADD THE CODE FOR THE PROGRS DIALOG
                //* Start the progress dialog
                xReportProgress = ProgressDialog.show(this, , Preparing
 Report.);
                xReportProgress.show();

                switch(iReportFormat)
                {
                        case callLog.REPORT_FORMAT_CSV:
                                sReportOutput = this.createCSVReport();
                                break;

                        case callLog.REPORT_FORMAT_XML:
                                sReportOutput = this.createXMLReport();
                                break;

                        default:
                                
 ed.app.commTracker.main.systemLog.logError(Invalid report
 format.);
                                return;

                }

                //* Close the dialog so we can display the intent chooser
                xReportProgress.dismiss();

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

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


Re: [android-developers] Re: getting started with the market---question about book suggestions

2011-05-26 Thread B Lyon
I'm curious who here may have gone some kind of llc corporation route

On Thu, May 26, 2011 at 3:51 PM, Spooky spooky1...@gmail.com wrote:
 Ahh, ok, thanks.  That makes a *LOT* more sense!  :-)

 Later,
   --jim

 --
 73 DE N5IAL (/4)   Running FreeBSD 7.0 
 ICBM / Hurricane: 30.44406N 86.59909W

 No, try rm -rf /
 As your life flashes before your eyes, in
 the unit of time known as an ohnosecond
      (alt.sysadmin.recovery)

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

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


Re: [android-developers] Re: What did you use to create your launcher icon for your app?

2011-05-25 Thread B Lyon
thanks folks.  I already had the gimp - interesting to hear that
others are using it for launcher icons, and it is a powerful thing.

I used Asset Studio for some little buttons, actually.  It's really slick,imo.

I played around with inkscape a little after my original post - I like
the fact that it would seem to scale, and this person created a
palette relative to the specs for it
(http://xebralabs.blogspot.com/2011/04/android-launcher-icons-color-palette.html).
 I got close to something I might be satisfied with, but my top
lighting and drop shadow attempts after trying to mentally map the
android specs to the inkscape gui were disappointing.

Chris Prewett (Replica Island), the andengine guy (Nicolas Gramlich -
Farm Tower), lots of other developers  out there and scattered google
io talks I've watched, and of course responders here have all pointed
at just getting a graphic artist to do it, and I think I'll just do
that and focus on the next steps to getting the first app out.

thanks again for everyone's comments.


On Wed, May 25, 2011 at 10:24 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 On Thu, May 26, 2011 at 5:27 AM, String sterling.ud...@googlemail.com wrote:
 If you already have and know Photoshop, I don't doubt that it's an excellent
 choice. Or if you can easily afford Photoshop, I don't doubt that it's
 easier to learn than the GIMP, and that there are more/better resources
 around to help you.
 If you're on a budget, and are starting from scratch, I'd throw my vote into
 the GIMP camp.


 And if you are OK with really simple icons, there is this:

 http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.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

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


Re: [android-developers] Re: Replay monkey execution

2011-05-25 Thread B Lyon
interesting to hear that it's being used to such a degree.  It does
give me some comfort just to have something bang at the app in case it
hits a silly thing I might not have caught.  btw, the monkey seems to
be particularly fascinated with the ringer volume, for some reason.
At least when I run it.


On Fri, May 13, 2011 at 4:21 PM, Dianne Hackborn hack...@android.com wrote:
 The main thing we use monkey for is automated testing for statistical
 tracking of stability and performance.  That is, for a particular build
 there is a lab that runs multiple monkeys on the build and collects
 statistics on how many events they were able to perform before failing and
 what kinds of failures they had.  This is aggregated together to get the
 overall stability of the platform and the most common kinds of failures that
 are impacting stability.  Performing continuous monkey runs allows this
 information to be aggregated over time to detect if problems are being
 introduced or stability is being improved.
 For application unit test, the instrumentation facility is the intended
 mechanism.  This allows you to have much more control within your own
 application, and because it is running within that app you can avoid much of
 the impact of other things going on across the rest of the system.
 On Fri, May 13, 2011 at 8:08 PM, B Lyon bradfl...@gmail.com wrote:

 When I first read about the monkey runner, I thought I could use it
 for all kinds of stuff, but after learning a little more I'm not sure
 you would want to use it for controlled tests (like regression checks,
 functional tests).  Maybe great to throw a bunch of random stuff at
 your app (and it's fun to watch it go), and it might do something that
 hits a bug you might never have found cause of the bizarre sequence it
 went through, but not sure about how much you can do with it.  I kind
 of hope I'm wrong, so someone correct me if I am not giving the monkey
 its due.

 On Fri, May 13, 2011 at 4:01 PM, Dianne Hackborn hack...@android.com
 wrote:
  Again, monkeys are NOT deterministic.
 
  On Fri, May 13, 2011 at 7:52 PM, avi avinanku...@gmail.com wrote:
 
  Hi Diego,
 
  Thank you for your post..I tried the exact same steps..Running monkey
  with verbose option and post processed the file to replay Monkey...but
  there was slight deviation from the original run..If you have tried
  it, could you please share your solution with me?
 
  Thanks again
 
  On May 8, 10:52 pm, Diego Torres Milano dtmil...@gmail.com wrote:
   I haven't tried this but it seems possible.
  
   Step #1: Increase monkey verbosity (-v -v -v)
  
   Step #2: Run the script and collect the output
  
   Step #3: Parse the output to regenerate a monkey script (optionally
   you can modify monkey to spit a valid monkey script)
  
   Step #4: Run the script
  
   On May 7, 2:20 pm, Bob Kerns r...@acm.org wrote:
  
True enough, but the difficulty generally comes between step #1 and
step #2,
in this sort of scenario of a rare, hard-to-reproduce crash.
  
Often you have to figure out everything you need to know to do step
#3
(fix
the bug) before you can do step #2.
  
Even so, do it in this order. Write the test case before fixing it,
so
you
can do step #4 -- verify that you fixed it.
  
   --
   Have you read my blog ?http://dtmilano.blogspot.com
   android junit tests ui linux cult thin clients
 
  --
  You received this message because you are subscribed to the Google
  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

 --
 You received this message because you are subscribed to the Google
 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

Re: [android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-24 Thread B Lyon
I think it is just one more skill, and a fun one to learn, and as
someone said it seems to be in demand right now as part of the more
general mobile dev push.  Google is making it easier to enter with
appdev or whatever, and folks will - I think - do some cool things
with it you would have never thought possible, but it's just one more
thing to make things with.  Pencils are pretty simple things that
anyone in the world can use (well, used to use), but there's more to
it than just being able to write something down with it.  And I'm sure
there's a better analogy...


On Mon, May 23, 2011 at 10:31 PM, Justin Anderson magouyaw...@gmail.com wrote:
 I would have to agree that for the most part creating Android Apps would not
 be a career.  While it is true that a few developers may be able to make it
 a career the majority of us do it for fun...

 I have three apps on the Android Market (2 paid and 1 free)... All apps are
 rated 4 or 4 1/2 stars and yet my highest months of sales are about $100
 after Google's cut.  Its not bad for a hobby (especially since I write my
 apps because I use and like them) but anyone trying to make it as a full
 time career should have a viable alternative.

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


 On Mon, May 23, 2011 at 8:11 PM, Kristopher Micinski
 krismicin...@gmail.com wrote:


 On Mon, May 23, 2011 at 2:11 PM, imran115 imran.hyd...@yahoo.co.uk
 wrote:

 Hi everyone,

 I was wondering what peoples thoughts maybe on the application that
 Android are developing, that allows people with no programming
 experience to create apps. I am currently learning the basics in
 Android development and wanted to pursue it as a career. Is there any
 point, as just about anyone will soon be able to create an app?

 The link below shows what I am talking about.

 http://appinventor.googlelabs.com/about/

 Will programming for Android apps no longer be a specialist skill,
 hence not much of a career?

 I'm going to argue that Android apps is not a career.
 You won't find many people making real money on their apps.  Most people
 do it for a mix of fun and profit, if that.
 Android application development is a really niche area, without a solid
 background in computer science or some related field, you'll quickly be out
 of a job with no alternative.
 But to answer your question, of course not, see the last point in Edsger
 Dijkstra's How do we tell truth's that might hurt :-)
 Kris

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

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

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


Re: [android-developers] Justify alignment in text view

2011-05-24 Thread B Lyon
full-justified?

you see this?  
http://stackoverflow.com/questions/1292575/android-textview-justify-text

people were suggesting varying things, and some saying not
supported... and there seem to be other links off of it where you can
maybe get a definitive answer


On Tue, May 24, 2011 at 12:24 PM, Laxmi Verma
laxmiverma.andr...@gmail.com wrote:

 Hi,

 I want to align my text as justify alignment but unable to find an option
 for that.  I can find right alignment, left alignment and center but unable
 to find the justify alignment.

 Please help me how to provide justify alignment for text view in android.

 Thanks!!

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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] What did you use to create your launcher icon for your app?

2011-05-24 Thread B Lyon
I am about to work on making the launcher icon for an app.  Lots of
stuff out there, and I've read the specs.  I was curious what the
folks here on the list used, especially those who may feel they are a
little non-artistic such as myself.

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


Re: [android-developers] Re: ACTION_UP never seen by app

2011-05-24 Thread B Lyon
were you getting calls to your onscroll and onfling?

On Tue, May 24, 2011 at 12:57 AM, Spooky spooky1...@gmail.com wrote:
 On May 23, 10:45 pm, B Lyon bradfl...@gmail.com wrote:
 did you mess with the GestureDetector stuff?  it handles some
 of the determination of whether something is a scroll or fling,
 etc..

 I did, before I found the tutorial that I used as a guide for my
 app's code.  I got exactly nowhere with it, though.  I seem to be
 missing a source of documentation on these things.  I know it's
 out there, but I haven't been able to find it (searches only lead
 me to posts, not reference materials), so I've been working with
 examples, answers, etc., and proceeding (or not) from there.

 Later,
   --jim

 --
 73 DE N5IAL (/4)   Running FreeBSD 7.0 
 ICBM / Hurricane: 30.44406N 86.59909W

 No, try rm -rf /
 As your life flashes before your eyes, in
 the unit of time known as an ohnosecond
      (alt.sysadmin.recovery)

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

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


Re: [android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-23 Thread B Lyon
I think some folks will probably do some cool things with it.

On Mon, May 23, 2011 at 8:20 PM, Miguel Morales therevolti...@gmail.com wrote:
 Sorry, that was a bit too brief and actually not completely related.
 But, what I meant was that because of the layers of non-complexity the
 browsers and app makers provide there are limits to their use.
 Even though a browser implements javascript and you can do many things with
 it, it's non complexity adds layers/paths of cpu instructions.
 So, to clarify my statement, being good at programming is ultimately the
 most desired skill.  These technologies, no matter how good and easy they
 get, have their limitations.

 On Mon, May 23, 2011 at 5:14 PM, Doug beafd...@gmail.com wrote:

 On May 23, 3:43 pm, Miguel Morales therevolti...@gmail.com wrote:
  This is because those interfaces are not turing complete.  They're
  useless
  once you reach a certain level of complexity.
  This is why browser apps are only for the most basic of apps.

 Care to elaborate on that last statement?

 Doug

 --
 You received this message because you are subscribed to the Google
 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


 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG:
 http://solrpg.com/, http://www.youtube.com/user/revoltingx

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

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


Re: [android-developers] Main.xml class problem

2011-05-23 Thread B Lyon
several things on stackoverflow, and a reference to this issue

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

not sure if it applies to your case, but it seems like it might be.
Weird that it was working before.

On Mon, May 23, 2011 at 6:04 AM, MartinM martinandj...@gmail.com wrote:
 I've moved a working project from one PC running Galileo to a new PC
 running Helios. If I go to the Graphical tab of Main.xml I get the
 following error:

 Error during post inflation process:
 TabHost requires a TabWidget with id android:id/tabs.
 View found with id 'tabs' is 'com.android.layoutlib.bridge.MockView'
 The following classes could not be found:
 - TabWidget


 XML below:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
    android:orientation=vertical
    android:layout_width=fill_parent
    android:layout_height=fill_parent
    TabHost android:id=@+id/tabhost
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         TabWidget android:id=@android:id/tabs
             android:layout_width=fill_parent
             android:layout_height=wrap_content
         /TabWidget
         FrameLayout android:id=@android:id/tabcontent
              android:layout_width=fill_parent
              android:layout_height=fill_parent
              android:paddingTop=60px 

              LinearLayout android:layout_height=wrap_content
 android:orientation=vertical android:layout_width=fill_parent
 android:id=@+id/layChartsLinearLayout android:id=@+id/
 LinearLayout03 android:layout_height=wrap_content
 android:layout_width=fill_parentButton
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:onClick=btnGetChartListClick android:id=@+id/
 btnGetChartList android:text=Valid Charts/ButtonButton
 android:layout_width=wrap_content
 android:layout_height=wrap_content android:id=@+id/btnGetCharts
 android:onClick=btnGetChartsClick android:text=Get Charts/
 Button/LinearLayoutScrollView android:layout_width=fill_parent
 android:fillViewport=true android:isScrollContainer=false
 android:scrollbarAlwaysDrawHorizontalTrack=true
 android:scrollbarAlwaysDrawVerticalTrack=true
 android:scrollbars=horizontal|vertical android:visibility=visible
 android:layout_height=fill_parent android:id=@+id/
 layChartTableLayout android:layout_width=wrap_content
 android:layout_height=wrap_content android:id=@+id/tblChart/
 TableLayout
                /ScrollView/LinearLayoutLinearLayout
 android:layout_height=wrap_content android:orientation=vertical
 android:id=@+id/layOpmet
 android:layout_width=fill_parentImageView
 android:layout_width=wrap_content
 android:layout_height=wrap_content android:id=@+id/imgChart/
 ImageViewLinearLayout android:id=@+id/LinearLayout01
 android:layout_height=wrap_content android:orientation=horizontal
 android:layout_width=fill_parentEditText
 android:layout_width=wrap_content
 android:layout_height=wrap_content android:text= 
 android:minWidth=55px android:id=@+id/edtICAO1/EditTextButton
 android:layout_width=wrap_content
 android:layout_height=wrap_content android:text=Brief!
 android:id=@+id/btnBrief1 android:onClick=btnBriefClick/
 ButtonButton android:layout_width=wrap_content
 android:layout_height=wrap_content android:id=@+id/btnHome1
 android:text=Home android:clickable=true
 android:onClick=btnHomeClick/Button/LinearLayoutTextView
 android:layout_width=wrap_content
 android:layout_height=wrap_content android:text=Metar :
 android:id=@+id/txtMetar/TextViewTextView
 android:layout_width=wrap_content
 android:layout_height=wrap_content android:text=TAF : android:id=@
 +id/txtTAF/TextView/LinearLayout
 LinearLayout android:layout_height=wrap_content
 android:layout_width=fill_parent android:id=@+id/layNotam
 android:orientation=verticalLinearLayout android:id=@+id/
 LinearLayout02 android:layout_height=wrap_content
 android:orientation=horizontal
 android:layout_width=fill_parentEditText
 android:layout_width=wrap_content
 android:layout_height=wrap_content android:id=@+id/edtICAO
 android:text=  android:minWidth=55px/EditTextButton
 android:layout_width=wrap_content
 android:layout_height=wrap_content android:text=Brief!
 android:id=@+id/btnBrief android:onClick=btnBriefClick/
 ButtonButton android:layout_width=wrap_content
 android:layout_height=wrap_content android:id=@+id/btnHome
 android:text=Home android:clickable=true
 android:onClick=btnHomeClick/Button/
 LinearLayout
                ScrollView android:layout_width=fill_parent
 android:fillViewport=true android:isScrollContainer=false
 android:scrollbarAlwaysDrawHorizontalTrack=true
 android:scrollbarAlwaysDrawVerticalTrack=true
 android:scrollbars=horizontal|vertical android:visibility=visible
 android:layout_height=fill_parent android:id=@+id/scrNotam
                  TextView android:id=@+id/txtNotam
 android:text=NOTAM :  android:layout_height=fill_parent
 android:layout_width=fill_parent /TextView
                

Re: [android-developers] Problem while installing my android app

2011-05-23 Thread B Lyon
What is in your logcat log?

On Mon, May 23, 2011 at 7:16 PM, TreKing treking...@gmail.com wrote:
 On Sat, May 21, 2011 at 5:36 AM, sohaib rahman sohaibrahma...@gmail.com
 wrote:

 Why is it so?

 Your app is crashing.


 Please help me

 Please debug your app. Or at least post stacktrace of the crash.

 -
 TreKing - Chicago transit tracking app for Android-powered devices

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

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


Re: [android-developers] HashMap failed

2011-05-23 Thread B Lyon
What do you see in with logcat?

On Sun, May 22, 2011 at 11:40 AM, giels gassenni...@gmail.com wrote:
 I have som problem with this code,
 my application failed since i start it.

 I notice that my setListAdapater is a main problem.
 Helps me please :

 my code :

 public class main extends Activity {
        /** Called when the activity is first created. */

        boolean onOff=true;//Bonton onOff de la lampe

        // I use HashMap arraList which takes objects
    private ArrayList HashMapObject, Object myList;
    private static final String IMAGE = atImag;
    private static final String NAME = nom;
    private static final String ATTRIBUT1 = attribut1;
        private static final String ATTRIBUT2 = attribut2;
    private static final String ATTRIBUT3 = attribut3;
        private static final String PLUS = plus;
    private static final String MOINS = moins;
        private static final String ON = on;

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

    public void menu() // fonction du menu
    {
        ListView listView = (ListView)findViewById(R.id.listlist);
        myList = new ArrayListHashMapObject,Object();
        HashMapObject, Object listAtt;

      //With the help of HashMap add Key, Values of Book, like
 name,price and icon path
        listAtt = new HashMapObject, Object();
        listAtt.put(IMAGE,R.drawable.lamp);
        listAtt.put(NAME, lampe 1);
        listAtt.put(ATTRIBUT1, 100 kW/h);
        listAtt.put(ATTRIBUT2, 24 °C);
        listAtt.put(ATTRIBUT3, 25%);
        myList.add(listAtt);

        listAtt = new HashMapObject, Object();
        listAtt.put(IMAGE,R.drawable.lamp0);
        listAtt.put(NAME, lampe 2);
        listAtt.put(ATTRIBUT1, 300 kW/h);
        listAtt.put(ATTRIBUT2, 30°C);
        listAtt.put(ATTRIBUT3, 75%);
        myList.add(listAtt);

        listView.setAdapter(new myListAdapter(myList,this));
        listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);

    }

    private class myListAdapter extends BaseAdapter{


                class ViewHolder {
                    ImageView atImag;
                        TextView nom;
                        TextView attribut1;
                        TextView attribut2;
                        TextView attribut3;
                        ImageButton plus;
                        ImageButton moins;
                        ToggleButton on;
                }

                private ArrayListHashMapObject, Object Liste;
                private LayoutInflater mInflater;

                public myListAdapter(ArrayListHashMapObject, Object
 list, Context context)
                        {
                        Liste= list;
                    mInflater = LayoutInflater.from(context);
                }

                public int getCount()
                        {
                    // TODO Auto-generated method stub
                    return Liste.size();
                }

                @Override
                public Object getItem(int position) {
                    // TODO Auto-generated method stub
                    return Liste.get(position);
                }
                @Override
                public long getItemId(int position) {
                    // TODO Auto-generated method stub
                    return position;
                }
                @Override
                public View getView(int position, View convertView,
 ViewGroup parent)
                {
                    // TODO Auto-generated method stub
                    // A ViewHolder keeps references to children views to
 avoid unneccessary calls
                    // to findViewById() on each row.
                    ViewHolder holder;
                    // When convertView is not null, we can reuse it
 directly, there is no need
                    // to reinflate it. We only inflate a new View when
 the convertView supplied
                    // by ListView is null
                     if (convertView == null)
                     {
                         convertView =
 mInflater.inflate(R.layout.listview1, null);
                         // Creates a ViewHolder and store references to
 the two children views
                         // we want to bind data to.
                         holder = new ViewHolder();

 holder.atImag=(ImageView)convertView.findViewById(R.id.image);
                         holder.nom =
 (TextView)convertView.findViewById(R.id.txt1);
                         holder.attribut1=
 (TextView)convertView.findViewById(R.id.txt2);
                         holder.attribut2=
 (TextView)convertView.findViewById(R.id.txt3);
                         holder.attribut3=
 (TextView)convertView.findViewById(R.id.txt4);
                         holder.plus = (ImageButton)
 convertView.findViewById(R.id.but1);
                         holder.moins =
 

Re: [android-developers] ACTION_UP never seen by app

2011-05-23 Thread B Lyon
did you mess with the GestureDetector stuff?  it handles some of the
determination of whether something is a scroll or fling, etc..

On Mon, May 23, 2011 at 11:39 PM, Spooky spooky1...@gmail.com wrote:
 As determined as I was to solve this without having to ask
 for help, I am now officially confused beyond all hope.

 I've been digging, and digging, and diggin, through searches and
 sample code, trying to find out how to change images (next or
 previous) in an ImageView that displays one of many images at a
 time with just a swipe of my finger, either to the left (next) or
 right (previous).  After finding a tutorial that appeared to do
 close to what I was looking for, I adapted it, and came up with
 the following (indentation trimmed for readability):


 // NOTE:  This is inside of the ImageView

 private float startx = 0;
 private float endx = 0;

   public boolean onTouchEvent(MotionEvent event) {
      switch (event.getAction()) {
         case MotionEvent.ACTION_DOWN:
            // Remember our initial down event location.
            startx = event.getRawX();
            break;
         case MotionEvent.ACTION_MOVE:
            endx = event.getRawX();
            // Handle (next)
            if (endx  startx)
               mCurrentPhotoIndex = (mCurrentPhotoIndex + 1)
                  % mPhotoIds.length;
            // Handle (prev)
               if (endx  startx) {
                  mCurrentPhotoIndex = (mCurrentPhotoIndex - 1);
                  if (mCurrentPhotoIndex  0)
                     mCurrentPhotoIndex = mPhotoIds.length - 1;
               showPhoto(mCurrentPhotoIndex);
               break;
               }
            }
         return true;
      }

 Obviously (well, it is NOW...), this resulted in each minute
 touch of the screen advancing (or going backwards) by a seemingly
 random number of images...as while I was still moving my finger
 across the image, it was constantly seeing more movement, and
 that triggered the MotionEvent again, and again, and again, and
 again, and ... {ad nauseum}.  So I started looking for a way to
 tame this monster and get it under control.

 After reading more, and verifying something I thought I'd seen
 (ACTION_UP), I arrived at this:

 // NOTE:  This is inside of the ImageView

 private float startx = 0;
 private float endx = 0;

   public boolean onTouchEvent(MotionEvent event) {
      switch (event.getAction()) {
         case MotionEvent.ACTION_DOWN:
            // Remember our initial down event location.
            startx = event.getRawX();
            return true; // first mod, this was still break;
         case MotionEvent.ACTION_MOVE:
            endx = event.getRawX();
            return true; // first mod, this was still break;
 // ADDED:  wait for ACTION_UP, and THEN handle the event
         case MotionEvent.ACTION_UP:
            // Handle (next)
            if (endx  startx)
               mCurrentPhotoIndex = (mCurrentPhotoIndex + 1)
                  % mPhotoIds.length;
            // Handle (prev)
               if (endx  startx) {
                  mCurrentPhotoIndex = (mCurrentPhotoIndex - 1);
                  if (mCurrentPhotoIndex  0)
                     mCurrentPhotoIndex = mPhotoIds.length - 1;
               showPhoto(mCurrentPhotoIndex);
               return true; // first mod, this was still break;
               }
            }
         return true;
      }

 Note the comments saying that on the first modification, each
 of the return true; statements in the switch statement were
 still left as break; ... and later changed to return true;.
 It didn't change the behavior, but for the sake of completeness,
 I'm including that bit of info.

 Only one problem.  ACTION_UP is apparently never caught.  I even
 put in a test that bypasses the two if statements (btw, is there
 an else statement?  how would I use it?) and advanced the image
 index by 10 ... nothing happened.  No change.

 So at this point, while I'm not happy about not being able to
 solve this on my own, I am asking for help.

 Later,
   --jim

 --
 73 DE N5IAL (/4)   Running FreeBSD 7.0 
 ICBM / Hurricane: 30.44406N 86.59909W

 No, try rm -rf /
 As your life flashes before your eyes, in
 the unit of time known as an ohnosecond
      (alt.sysadmin.recovery)

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

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

Re: [android-developers] Re: Giant Android Device seen at I/O

2011-05-19 Thread B Lyon
very cool

On Thu, May 19, 2011 at 10:14 PM, Dianne Hackborn hack...@android.com wrote:
 It probably also has a working touch screen.  I don't know about that
 particular one, but the ones being build I know of had a touch screen.

 On Thu, May 19, 2011 at 7:11 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 LOL.  I'd say it's just a TV with a fancy surround and it's mirroring
 the device's display via HDMI.

 On May 19, 9:05 pm, SteveKeinath skein...@gmail.com wrote:
  I was at Google I/O and used the giant Android
  devicehttp://goo.gl/photos/U5SiuUOHUR
 
  Is there any way to buy/get one of these for my classroom?  I teach
  mobile App/Game development and would LOVE to be able to use this in
  my class.
 
  -Steve

 --
 You received this message because you are subscribed to the Google
 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

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


Re: [android-developers] How to get class file from APK

2011-05-19 Thread B Lyon
pretty sure it's just a zip file, so that should get you going

On Thu, May 19, 2011 at 1:58 AM, Mr RAM hariram1...@gmail.com wrote:
 Is it possible to get class file from APK.??

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

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


Re: [android-developers] Re: How to debug NPE when stack trace does not show any reference to my app code?

2011-05-17 Thread B Lyon
that line in 2.2 of ViewGroup.java is

if ((child.mViewFlags  VISIBILITY_MASK) == VISIBLE ||
child.getAnimation() != null)

so it would imply that one of the child views in the ViewGroup is
null.  Are you doing stuff with dynamically adding/deleting any views?
 I'm not sure why it would not know about one getting removed in the
first place... SurfaceView is cranking away in its own thread, too, so
not sure if something happened because of some weird interaction going
on (I was learning first hand about that this past weekend).  I think
you might be getting a warning/error in logcat if you were doing this,
though.

On Tue, May 17, 2011 at 5:50 PM, snpe snp...@gmail.com wrote:
 You could attach the source code to your android.jar (see
 http://code.google.com/p/adt-addons/, chapter Android Sources)
 and set a conditional breakpoint to the ViewGroup.dispatchDraw method.
 Review different SDK versions because it could be a bug in some SDK.

 Regards,
 Peco

 On May 3, 8:55 pm, vatsee vat...@gmail.com wrote:
 Hi gurus,

 I am working on an app that supports bidirectional audio-video
 communication. As part of that, the video GUI screen uses
 MediaRecorder for recording outgoing video  uses two surfaceView
 subclasses to display preview  incoming video.

 During the video call, I am seeing a (random) NPE. This trace (listed
 below) does not show any of my app code.
 I am not sure how to debug this issue.

 Has anybody seen anything similar to this? Appreciate if I can get
 some pointers on how to debug this issue.

 java.lang.NullPointerException
         at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1366)
         at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
         at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
         at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
         at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
         at android.view.View.draw(View.java:6743)
         at android.widget.FrameLayout.draw(FrameLayout.java:352)
         at com.android.internal.policy.impl.PhoneWindow
 $DecorView.draw(PhoneWindow.java:2058)
         at android.view.ViewRoot.draw(ViewRoot.java:1432)
         at android.view.ViewRoot.performTraversals(ViewRoot.java:1174)
         at android.view.ViewRoot.handleMessage(ViewRoot.java:1752)
         at android.os.Handler.dispatchMessage(Handler.java:99)
         at android.os.Looper.loop(Looper.java:123)
         at android.app.ActivityThread.main(ActivityThread.java:4627)
         at java.lang.reflect.Method.invokeNative(Native Method)
         at java.lang.reflect.Method.invoke(Method.java:521)
         at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:858)
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
         at dalvik.system.NativeStart.main(Native Method)

 Many thanks!

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

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


Re: [android-developers] Logcat filter with wildcards

2011-05-17 Thread B Lyon
yeah, it would be nice.  If you're on *nix, you can grep stuff out as
it flies by to your heart's content.

On Tue, May 17, 2011 at 11:36 PM, TreKing treking...@gmail.com wrote:
 On Mon, May 16, 2011 at 10:39 PM, Matt Connolly matt.connolly...@gmail.com
 wrote:

 I haven't yet found where to report this as a bug/feature request.
 Any ideas?

 http://tools.android.com/feedback
 -
 TreKing - Chicago transit tracking app for Android-powered devices

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

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


Re: [android-developers] Progress circle (NOT indeterminate!)

2011-05-13 Thread B Lyon
may be overkill, but can't you use a paint with the right stroke
width, etc., and then do canvas.drawArc or whatever?  don't know if
it's easier to muck with one of the progress widgets that comes with
android, though

On Fri, May 13, 2011 at 11:58 AM, Serdel adam.lichwierow...@gmail.com wrote:
 As mentioned in the topic i do NOT want an indeterminate wheel.
 Instead I would like to animate a circle progress bard that actually
 shows how much time is left for a process (e.g. download) to finish. I
 saw something similar in soundhoud application. I am wondering how to
 make this - using an png.gif animation? It seems a little bit hard to
 do make the animation so it could 'increase' fluently with the
 progress. I was looking for some open source projects with similar
 animation but no luck so far :/

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

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


Re: [android-developers] Re: help with TextView

2011-05-13 Thread B Lyon
cool - had you already tried cleaning the project in eclipse before
you did that?


On Fri, May 13, 2011 at 2:36 PM, cmt chrismt...@gmail.com wrote:
 FIXED IT.  I am not sure exactly how I fixed it, but I just deleted
 the TextView from the XML file, then re-added it. Now it works!

 Thanks!


 On May 13, 11:33 am, Brill Pappin br...@pappin.ca wrote:
 Based on what you and others have posted for this thread, my gut feeling is
 that your layout is hiding the TextView somehow.
 This could be a colour problem (black text on black background) or a layout
 problem where it's squashed or covered by another component.

 Try this:
 add android:text=Here i am to your TextView tag and see if it shows up
 without programatically setting a value on it. If it does, then you have
 another problem, but if you can't see it, you have a layout/colour problem.

 - Brill Pappin

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

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


Re: [android-developers] Re: Replay monkey execution

2011-05-13 Thread B Lyon
When I first read about the monkey runner, I thought I could use it
for all kinds of stuff, but after learning a little more I'm not sure
you would want to use it for controlled tests (like regression checks,
functional tests).  Maybe great to throw a bunch of random stuff at
your app (and it's fun to watch it go), and it might do something that
hits a bug you might never have found cause of the bizarre sequence it
went through, but not sure about how much you can do with it.  I kind
of hope I'm wrong, so someone correct me if I am not giving the monkey
its due.

On Fri, May 13, 2011 at 4:01 PM, Dianne Hackborn hack...@android.com wrote:
 Again, monkeys are NOT deterministic.

 On Fri, May 13, 2011 at 7:52 PM, avi avinanku...@gmail.com wrote:

 Hi Diego,

 Thank you for your post..I tried the exact same steps..Running monkey
 with verbose option and post processed the file to replay Monkey...but
 there was slight deviation from the original run..If you have tried
 it, could you please share your solution with me?

 Thanks again

 On May 8, 10:52 pm, Diego Torres Milano dtmil...@gmail.com wrote:
  I haven't tried this but it seems possible.
 
  Step #1: Increase monkey verbosity (-v -v -v)
 
  Step #2: Run the script and collect the output
 
  Step #3: Parse the output to regenerate a monkey script (optionally
  you can modify monkey to spit a valid monkey script)
 
  Step #4: Run the script
 
  On May 7, 2:20 pm, Bob Kerns r...@acm.org wrote:
 
   True enough, but the difficulty generally comes between step #1 and
   step #2,
   in this sort of scenario of a rare, hard-to-reproduce crash.
 
   Often you have to figure out everything you need to know to do step #3
   (fix
   the bug) before you can do step #2.
 
   Even so, do it in this order. Write the test case before fixing it, so
   you
   can do step #4 -- verify that you fixed it.
 
  --
  Have you read my blog ?http://dtmilano.blogspot.com
  android junit tests ui linux cult thin clients

 --
 You received this message because you are subscribed to the Google
 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

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


Re: [android-developers] Progress circle (NOT indeterminate!)

2011-05-13 Thread B Lyon
Yeah that looks slick

On Friday, May 13, 2011, Brill Pappin br...@pappin.ca wrote:
 Ahh, thats a nice clean solution :)
 I'd go for Romain's solution as it'll be easier to maintain than a series of 
 9patch files.
 - Brill



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

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


Re: [android-developers] EditText causes app to crash

2011-05-12 Thread B Lyon
I don't know anything about HTC, but wanted to ditto Justin's
gratefulness to the android developers for the information they
provide via this forum, especially Dianne.

On Thu, May 12, 2011 at 7:38 PM, Justin Anderson magouyaw...@gmail.com wrote:
 Dianne,
 I added a quick after-post stating that Google does more than HTC because
 HTC does not have any sort of forum for the developers like this...
 I have defended Google and developers like yourself on several occasions
 because of the support you do provide and am very grateful for your
 contributions to the platform and this forum.
 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, May 12, 2011 at 5:31 PM, Dianne Hackborn hack...@android.com
 wrote:

 On Thu, May 12, 2011 at 11:27 PM, Justin Anderson magouyaw...@gmail.com
 wrote:

  Try HTC support forums - maybe it's their bug.
 Good luck with that... In my experience they provide as much support for
 developers as Google does.

 I increasingly get tempted to stop posting on this forum.  It would sure
 give me time to do other stuff to improve the platform.
 --
 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

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

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


Re: [android-developers] Transition from solid to transparent

2011-05-12 Thread B Lyon
it's not something as simple as an alphaanimation from 1 to 0, is it?
or does that not apply in your case?

On Thu, May 12, 2011 at 10:40 AM, crios crios8...@gmail.com wrote:
 Good day,
 As the title suggests, I would like to know if there is any way to
 make a transition from a solid drawable to a transparent one. It only
 seems to work from the transparent one to the solid one and not vice-
 versa... I need it for the background of a text cell, so any advice,
 even without transition drawable, on how to obtain a similar effect
 would be greatly appreciated.

 Short story:
 Basically I need to set the background of a text cell transparent
 after awhile without timers... so any ideas are welcomed.

 Thanks,
 crios

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

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


Re: [android-developers] error when trying to compile project from Learning Android

2011-05-11 Thread B Lyon
I'd check for two different jars containing the same class.  I didn't
get that specific error before about json, but I seem to remember the
dalvik message.

Not sure if it would help, but I am curious what the entries are of
your .classpath file in the project folder. You'll probably have the
src/gen as src folders, but what, if any, lib entries do you have?


On Wed, May 11, 2011 at 8:45 AM, Spooky spooky1...@gmail.com wrote:
 I'm getting the following when trying to build the Yamba project
 from the Learning Android book (I'm in the middle
 of Chapter 6 right now).  I'm using Eclipse version 3.5 (Galileo) and
 release 11 (just updated yesterday, no change in error
 messages from release 10) of the Android SDK on windows XP.  No errors
 show up in any of the source in Eclipse, but
 when I try to build the project, I get the following:

 UNEXPECTED TOP-LEVEL EXCEPTION:
 java.lang.IllegalArgumentException: already added: Lorg/json/
 JSONArray;
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.dex.file.ClassDefsSection.add(Class DefsSection.java:
 123)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.dex.file.DexFile.add(DexFile.java:1 43)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.command.dexer.Main.processClass(Mai n.java:372)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.command.dexer.Main.processFileBytes (Main.java:346)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.command.dexer.Main.access$400(Main. java:59)
 [2011-05-09 23:32:11 - Yamba] Dx at com.android.dx.command.dexer.Main
 $1.processFileByt es(Main.java:294)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.cf.direct.ClassPathOpener.processAr
 chive(ClassPathOpener.java:244)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.cf.direct.ClassPathOpener.processOn
 e(ClassPathOpener.java:130)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.cf.direct.ClassPathOpener.process(C lassPathOpener.java:
 108)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.command.dexer.Main.processOne(Main. java:313)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.command.dexer.Main.processAllFiles( Main.java:233)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.dx.command.dexer.Main.run(Main.java:18 5)
 [2011-05-09 23:32:11 - Yamba] Dx at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
 [2011-05-09 23:32:11 - Yamba] Dx at
 sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
 [2011-05-09 23:32:11 - Yamba] Dx at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
 [2011-05-09 23:32:11 - Yamba] Dx at
 java.lang.reflect.Method.invoke(Unknown Source)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.ide.eclipse.adt.internal.build.DexWrap
 per.run(DexWrapper.java:179)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.ide.eclipse.adt.internal.build.BuildHe
 lper.executeDx(BuildHelper.java:585)
 [2011-05-09 23:32:11 - Yamba] Dx at
 com.android.ide.eclipse.adt.internal.build.builder
 s.PostCompilerBuilder.build(PostCompilerBuilder.ja va:490)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.events.BuildManager$2.ru n(BuildManager.java:
 627)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.events.BuildManager.basi
 cBuild(BuildManager.java:170)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.events.BuildManager.basi
 cBuild(BuildManager.java:201)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.events.BuildManager$1.ru n(BuildManager.java:
 253)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.events.BuildManager.basi
 cBuild(BuildManager.java:256)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.events.BuildManager.basi
 cBuildLoop(BuildManager.java:309)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.events.BuildManager.buil d(BuildManager.java:
 341)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.resources.Workspace.buil d(Workspace.java:
 330)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.ui.actions.GlobalBuildAction$1.run(Glo balBuildAction.java:
 178)
 [2011-05-09 23:32:11 - Yamba] Dx at
 org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:55)
 [2011-05-09 23:32:11 - Yamba] Dx 1 error; aborting
 [2011-05-09 23:32:11 - Yamba] Conversion to Dalvik format failed with
 error 1


 Can anyone translate this and point me to either the problem or TFM
 for me to 'R/ead?

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

-- 
You received this message because 

Re: [android-developers] Re: error when trying to compile project from Learning Android

2011-05-11 Thread B Lyon
well, org.json.JSONArray is apparently in both jtwitter.jar and
android.jar, which can confuse things, I think.  I've yet to mess with
the twitter stuff.  It looks like there's a twitter library that is
android-ready called twitter4j you might want to try if you're just
wanting to learn stuff, anyway.  Or there might be others. Not sure if
it will help you or cause more problems :)


On Wed, May 11, 2011 at 10:46 PM, Spooky spooky1...@gmail.com wrote:
 Ok, just to be safe, I'm posting the whole .classpath file:

 ?xml version=1.0 encoding=UTF-8?
 classpath
        classpathentry kind=src path=src/
        classpathentry kind=src path=gen/
        classpathentry kind=con
 path=com.android.ide.eclipse.adt.ANDROID_FRAMEWORK/
        classpathentry kind=lib path=C:/Android/workspace/Yamba/
 jtwitter.jar/
        classpathentry kind=lib path=C:/Android/android-sdk/platforms/
 android-8/android.jar
                attributes
                        attribute name=javadoc_location 
 value=file:/C:/Program Files/
 Android/android-sdk/docs/reference/
                /attributes
                accessrules
                        accessrule kind=nonaccessible 
 pattern=com/android/internal/**/

                /accessrules
        /classpathentry
        classpathentry kind=output path=bin/
 /classpath

 See anything wrong?

 Thanks,
   --jim

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

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


Re: [android-developers] Re: error when trying to compile project from Learning Android

2011-05-11 Thread B Lyon
I don't know.  I could way off base.  It seems weird if it's an
example in the book (but it's a very new book, it looks like).  I've
only hit weird errors when the same class is in two places.  Maybe
sometimes you can get lucky and the classloader misses the issue
somehow based on other things.

You see that the author modified the twitter jarfile and released a
different version Apr 3 of the twitter jar (which is a 3rd party thing
to him as well) to fix some other issue?

http://examples.oreilly.com/0636920010883/README-JTwitter-Library.txt

That one still contains the JSONArray, but you might want to try it
out... and I'd contact the author, too.


On Wed, May 11, 2011 at 11:13 PM, Spooky spooky1...@gmail.com wrote:


 On May 11, 10:03 pm, B Lyon bradfl...@gmail.com wrote:
 well, org.json.JSONArray is apparently in both jtwitter.jar and
 android.jar, which can confuse things, I think.  I've yet to mess with
 the twitter stuff.  It looks like there's a twitter library that is
 android-ready called twitter4j you might want to try if you're just
 wanting to learn stuff, anyway.  Or there might be others. Not sure if
 it will help you or cause more problems :)

 Thing is, I'm working on learning Android programming from the
 O'Reilly
 book, Learning Android.  If I switch to another twitter.jar variant,
 it's
 going to throw everything off.  Btw, personally, I don't give a rat's
 backside
 about twitter, but it's the project that's built on throughout the
 book, so..

 So, if that might be the problem, how would I test it?  Is there a way
 a
 newbie like me can easily remove one of the above org.json.JSONArray
 values?

 Many, MANY thanks for the help with this!
   --jim

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

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


Re: [android-developers] Re: Button in a ListView cell

2011-05-06 Thread B Lyon
Did you play with descendantFocusibility at all?

On Fri, May 6, 2011 at 1:24 PM, B Lyon bradfl...@gmail.com wrote:
 hey

 well, I'm really curious what is going on.  I've got some extra
 buttons/imagebuttons and a text view inserted into the row and they
 don't interfere with each other, but that is not the case you are
 looking at (and you obviously already know how to do that).  Looks
 like there is a trackball mode on the emulator I can play with if
 you've got a snippet to play with.   I might be able to try to
 implement what you're doing in something I have.



 On Fri, May 6, 2011 at 1:14 PM, Eric e...@alum.mit.edu wrote:
 I am going to surmise it is safe to assume there is no way to achieve
 this in Android, due to lack of responses and being unable to find
 anyone else who has been able to do it?

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


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


Re: [android-developers] Re: Button in a ListView cell

2011-05-06 Thread B Lyon
I take it you looked through this

http://developer.android.com/resources/articles/touch-mode.html

(which was new to me)

On Fri, May 6, 2011 at 1:59 PM, Eric e...@alum.mit.edu wrote:


 On May 6, 1:38 pm, B Lyon bradfl...@gmail.com wrote:
 Did you play with descendantFocusibility at all?

 Not yet.  I would like to avoid an time-consuming and arbitrary number
 of tag permutation changes if I can find the proper solution up-
 front.  descendantFocusibility does seem to look promising, but I'm
 not convince it will work in all of the 6 cases I specified above.

 The problem with using the 'normal' ListView OnItemClickedListener()
 is that if you have a clickable-button in the list view item, the
 ListView item no longer respond to click events at all.
 descendantFocusibility may indeed be the answer, but it would be nice
 to hear from someone who has all this working.  It should be
 completely possible, I am not asking for much here -- just
 functionality that you would expect from the list view in the first
 place.

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

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


Re: [android-developers] Button in a ListView cell

2011-05-05 Thread B Lyon
So you were able to get everything to work without the trackball case?

On Thu, May 5, 2011 at 6:37 PM, Eric e...@alum.mit.edu wrote:
 I have seen dozens of posts about people trying to put a clickable
 Button in a ListView cell, along with other text, and apparently
 nobody has been able to get it to work.

 Here is what I need to do:

 1. Have a couple of TextViews in a ListView cell, with a clickable
 Button on the right-side of the cell.

 2. When the user clicks in the cell outside of the button, I should
 receive the click in OnItemClicked (which will navigate me to another
 Activity).

 3.  When the user clicks on the Button in the cell, the Button's
 onClick() should be executed and some other operation will be
 performed.

 4. This has to work for both Touch input, and trackball/D-pad input.

 5. This cannot interfere with the ListViews selector highlighting such
 that when I use the trackball-DPad to navigate the ListView, the
 selected cell should be highlighted.

 I just can't get this to work.  I've tried many permutations of many
 approaches, but one of the above items stops working in each of the
 cases.  Can anyone please tell me the best/correct way to achieve
 this?

 - Eric

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

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


Re: [android-developers] Re: Button in a ListView cell

2011-05-05 Thread B Lyon
I've recently added extra buttons to each row of a listactivity that
can then do whatever, but your case sounds a little more involved.

On Thu, May 5, 2011 at 7:20 PM, Eric e...@alum.mit.edu wrote:


 On May 5, 7:11 pm, B Lyon bradfl...@gmail.com wrote:
 So you were able to get everything to work without the trackball case?

 It depends on what you mean by 'work'.  I was able to hack things to
 work.  The ListView steals focus from the inner-widgets if you set an
 OnItemClickListener.  So I had to set an OnClickListener() on the
 ListView item View, and a separate OnClickListener() for the child
 button.  That works in so much as touch-clicks work, but the trackball/
 D-pad is broken for clicks.  Furthermore, I still haven't been able to
 figure out how to get the trackball to be able to focus into the
 Button instead of the entire list view cell.

 So, no, I would not say I have things working to anywhere near my
 satisfaction.  I am hoping there is one solution that will allow
 everything to work as I would expect it to above, which is in my
 opinion that way the UI should function.

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

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


Re: [android-developers] Documentation for older Android SDK versions?

2011-04-30 Thread B Lyon
I think there's a little option on the page to filter by api level in
the kind of upper right

On Sat, Apr 30, 2011 at 6:38 PM, Stefan at WPF
stefan.at@googlemail.com wrote:
 Hello,
 when browsing the Android SDK documentation, e.g.
 http://developer.android.com/reference/android/preference/PreferenceActivity.html,
 then this documentation is for the latest Android version (Android 3.0 r1 at
 the time of writing this).

 As I am developing for Android 2.2 it is very confusing for me to read the
 Android 3.0 documentation, e.g. it claims for addPreferencesFromResource(int
 preferencesResId):

 This method is deprecated. This function is not relevant for a modern
 fragment-based PreferenceActivity.

 Well, for Android 3.0 it might be, but seen from Android 2.2 it is probably
 not. So where can I find a documentation written from an Android 2.2
 perspective / the documentation written at the time of Android 2.2? On e.g.
 MSDN you can easily switch between the different documentation versions for
 e.g. .NET 3.5 and .NET 4.0, how about the Android documentation?

 Please note, that using the API Level Filter is not enough, even with API
 Level 1 (the lowest API Level where nothing can be deprecated) it claims
 that addPreferencesFromResource(int preferencesResId) is deprecated - the
 filter acts in a too simple way, just filtering out APIs with newer API
 Levels than the one specified for filtering.

 Thank you very much :-)

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

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


[android-developers] progressbar spin counterclockwise?

2011-04-23 Thread B Lyon
I was looking into a simple way to get the (small) ProgressBar to spin
counterclockwise, and it seems to come down to the class
AnimatedRotateDrawable, which looks to be hard-coded to spin clockwise
- it sets the angle increment to 360/framesCount, with no apparent
option to change the sign of the increment.  Most people probably have
come to expect that, I guess.

A lot about this (public) class AnimatedRotateDrawable seems to be
kind of hands-off - two of the attributes are private somehow
(framesCount and frameDuration), and I couldn't subclass it in a quick
attempt to see about trying to tweak this behavior (not that
subclassing would have worked).

In my case, if I am showing the spinning progress bar at all (which I
don't need to - I think that it's just a nice touch), then I need to
be able to flip the direction.  Before I get off of this little
distraction for the moment, I was wondering if any one else had played
with this before.  I guess I could just assimilate the class, add
assumed-to-be trivial changes for the flip option, and then change the
indeterminate drawable on the progressbar in the code, but I was
wondering if I'm missing some obviously simpler way.

thx

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


Re: [android-developers] progressbar spin counterclockwise?

2011-04-23 Thread B Lyon
thanks Dianne - yeah I expected someone asking that

custom seems to be where I need to go if this is to be messed with at
all, and that's what I needed to know

On Sat, Apr 23, 2011 at 1:45 PM, Dianne Hackborn hack...@android.com wrote:
 This is basically a special class for that progress spinner design.  Which
 is now old.  In HC the spinner looks different.  If you try to hack on
 whatever spinner you happen to get from the platform you are running on to
 do something different, you will probably fail in one way or another as you
 encounter a different platform with a different spinner.
 I can't imagine why you need to have it rotate in the other direction, but
 if you need something different you should just make your own spinner style
 that has nothing to do with whatever is in the platform.

 On Sat, Apr 23, 2011 at 9:51 AM, B Lyon bradfl...@gmail.com wrote:

 I was looking into a simple way to get the (small) ProgressBar to spin
 counterclockwise, and it seems to come down to the class
 AnimatedRotateDrawable, which looks to be hard-coded to spin clockwise
 - it sets the angle increment to 360/framesCount, with no apparent
 option to change the sign of the increment.  Most people probably have
 come to expect that, I guess.

 A lot about this (public) class AnimatedRotateDrawable seems to be
 kind of hands-off - two of the attributes are private somehow
 (framesCount and frameDuration), and I couldn't subclass it in a quick
 attempt to see about trying to tweak this behavior (not that
 subclassing would have worked).

 In my case, if I am showing the spinning progress bar at all (which I
 don't need to - I think that it's just a nice touch), then I need to
 be able to flip the direction.  Before I get off of this little
 distraction for the moment, I was wondering if any one else had played
 with this before.  I guess I could just assimilate the class, add
 assumed-to-be trivial changes for the flip option, and then change the
 indeterminate drawable on the progressbar in the code, but I was
 wondering if I'm missing some obviously simpler way.

 thx

 --
 You received this message because you are subscribed to the Google
 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

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


Re: [android-developers] progressbar spin counterclockwise?

2011-04-23 Thread B Lyon
thanks for the tips, Mark.  I'll play with it.  It might need to be an
animation list or whatever

btw - RotateDrawable would be a two-line way to do it (custom little
icon seems to get animated fine) to replace the indeterminate
drawable, but RotateDrawable seems to insist on rotating clockwise,
too... it sets toDegrees to max (fromDegrees, toDegrees), so you can't
specify it go from 360 to 0.

Dianne - in looking at your note again, I can't tell if you were
suggesting that the best thing to do (for someone want to do this in
the first place) would be to replace the progress bar functionality
wholesale (yes overkill).  Of course I want to avoid depending on
internals or anything else in the API susceptible to change.


On Sat, Apr 23, 2011 at 1:50 PM, B Lyon bradfl...@gmail.com wrote:
 thanks Dianne - yeah I expected someone asking that

 custom seems to be where I need to go if this is to be messed with at
 all, and that's what I needed to know

 On Sat, Apr 23, 2011 at 1:45 PM, Dianne Hackborn hack...@android.com wrote:
 This is basically a special class for that progress spinner design.  Which
 is now old.  In HC the spinner looks different.  If you try to hack on
 whatever spinner you happen to get from the platform you are running on to
 do something different, you will probably fail in one way or another as you
 encounter a different platform with a different spinner.
 I can't imagine why you need to have it rotate in the other direction, but
 if you need something different you should just make your own spinner style
 that has nothing to do with whatever is in the platform.

 On Sat, Apr 23, 2011 at 9:51 AM, B Lyon bradfl...@gmail.com wrote:

 I was looking into a simple way to get the (small) ProgressBar to spin
 counterclockwise, and it seems to come down to the class
 AnimatedRotateDrawable, which looks to be hard-coded to spin clockwise
 - it sets the angle increment to 360/framesCount, with no apparent
 option to change the sign of the increment.  Most people probably have
 come to expect that, I guess.

 A lot about this (public) class AnimatedRotateDrawable seems to be
 kind of hands-off - two of the attributes are private somehow
 (framesCount and frameDuration), and I couldn't subclass it in a quick
 attempt to see about trying to tweak this behavior (not that
 subclassing would have worked).

 In my case, if I am showing the spinning progress bar at all (which I
 don't need to - I think that it's just a nice touch), then I need to
 be able to flip the direction.  Before I get off of this little
 distraction for the moment, I was wondering if any one else had played
 with this before.  I guess I could just assimilate the class, add
 assumed-to-be trivial changes for the flip option, and then change the
 indeterminate drawable on the progressbar in the code, but I was
 wondering if I'm missing some obviously simpler way.

 thx

 --
 You received this message because you are subscribed to the Google
 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


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


Re: [android-developers] progressbar spin counterclockwise?

2011-04-23 Thread B Lyon
Diane

it does have a public setIndeterminateDrawable - I can set it with a
RotateDrawable and it works to spin whatever I want there... which is
cool and easy... it just apparently does it clockwise only... I just
need to replace it with something that can spin stuff backwards
and I need to learn the other stuff anyway.

On Sat, Apr 23, 2011 at 3:59 PM, Dianne Hackborn hack...@android.com wrote:
 I don't know off-hand if progress bar has an API to set the drawable.  If
 so, just use that.  If not you'll need to roll your own.  It would probably
 be easy to copy the code out of the framework.

 On Sat, Apr 23, 2011 at 12:52 PM, B Lyon bradfl...@gmail.com wrote:

 thanks for the tips, Mark.  I'll play with it.  It might need to be an
 animation list or whatever

 btw - RotateDrawable would be a two-line way to do it (custom little
 icon seems to get animated fine) to replace the indeterminate
 drawable, but RotateDrawable seems to insist on rotating clockwise,
 too... it sets toDegrees to max (fromDegrees, toDegrees), so you can't
 specify it go from 360 to 0.

 Dianne - in looking at your note again, I can't tell if you were
 suggesting that the best thing to do (for someone want to do this in
 the first place) would be to replace the progress bar functionality
 wholesale (yes overkill).  Of course I want to avoid depending on
 internals or anything else in the API susceptible to change.


 On Sat, Apr 23, 2011 at 1:50 PM, B Lyon bradfl...@gmail.com wrote:
  thanks Dianne - yeah I expected someone asking that
 
  custom seems to be where I need to go if this is to be messed with at
  all, and that's what I needed to know
 
  On Sat, Apr 23, 2011 at 1:45 PM, Dianne Hackborn hack...@android.com
  wrote:
  This is basically a special class for that progress spinner design.
   Which
  is now old.  In HC the spinner looks different.  If you try to hack on
  whatever spinner you happen to get from the platform you are running on
  to
  do something different, you will probably fail in one way or another as
  you
  encounter a different platform with a different spinner.
  I can't imagine why you need to have it rotate in the other direction,
  but
  if you need something different you should just make your own spinner
  style
  that has nothing to do with whatever is in the platform.
 
  On Sat, Apr 23, 2011 at 9:51 AM, B Lyon bradfl...@gmail.com wrote:
 
  I was looking into a simple way to get the (small) ProgressBar to spin
  counterclockwise, and it seems to come down to the class
  AnimatedRotateDrawable, which looks to be hard-coded to spin clockwise
  - it sets the angle increment to 360/framesCount, with no apparent
  option to change the sign of the increment.  Most people probably have
  come to expect that, I guess.
 
  A lot about this (public) class AnimatedRotateDrawable seems to be
  kind of hands-off - two of the attributes are private somehow
  (framesCount and frameDuration), and I couldn't subclass it in a quick
  attempt to see about trying to tweak this behavior (not that
  subclassing would have worked).
 
  In my case, if I am showing the spinning progress bar at all (which I
  don't need to - I think that it's just a nice touch), then I need to
  be able to flip the direction.  Before I get off of this little
  distraction for the moment, I was wondering if any one else had played
  with this before.  I guess I could just assimilate the class, add
  assumed-to-be trivial changes for the flip option, and then change the
  indeterminate drawable on the progressbar in the code, but I was
  wondering if I'm missing some obviously simpler way.
 
  thx
 
  --
  You received this message because you are subscribed to the Google
  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
 

 --
 You received this message because you are subscribed to the Google
 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

Re: [android-developers] progressbar spin counterclockwise?

2011-04-23 Thread B Lyon
thx

Are you referring to the setScaleX/Y new in SDK 11, which seems to be
certainly the way to try there?


On Sat, Apr 23, 2011 at 6:23 PM, lbendlin l...@bendlin.us wrote:
 why not simply transform the view of the progressbar, with a scale transform
 along the center vertical?

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

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


Re: [android-developers] progressbar spin counterclockwise?

2011-04-23 Thread B Lyon
that is pretty simple and seemed to work (I needed to put it in an
overridden onDraw in this case)

well, there *was* a reason I was curious to see about getting it to go
counterclockwise -

and I am curious to go look at the HoneyComb one now

thx again all

On Sat, Apr 23, 2011 at 9:36 PM, lbendlin l...@bendlin.us wrote:
 Now who would commit such a user experience continuity* atrocity?

 * yes, I made that up.

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

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


Re: [android-developers] Re: MessageBox style Preference

2011-04-16 Thread B Lyon
 I just played with tailoring the preference stuff to add a both a
Reset All preference, as well as adding a little Reset button next
to the checkbox/whatever for the other preference types, so that you
can easily just reset a specific preference, with the Reset being
visible only if you're not using the default value.  You just need to
get a handle on the layout the preference itself is using for the
widget area (I think it's android.R.id.widget_frame - at least in 2.2)
and you can go to town... there may be reasons not to do it this way,
but so far it certainly seems like a comfortable thing from a
user-experience perspective.

On Sat, Apr 16, 2011 at 10:08 AM, Mark Murphy mmur...@commonsware.com wrote:
 On Sat, Apr 16, 2011 at 10:02 AM, James W jpbwebs...@gmail.com wrote:
 I didn't do it that way
 because in my experience Menu options are not typically used in a
 Preference activity, so I wanted my users to be able to easily find
 it.

 Yeah, I hear you.

 Yet another possibility is to use your own layout for the
 PreferenceActivity. On 1.x and 2.x, PreferenceActivity is just a
 ListActivity with a chocolate coating, so you can use your own layout
 if you want, following the ListActivity rules. Hence, if you want a
 Reset option without hiding it in the options menu, yet not as a
 Preference, use a custom layout and a Button. On 3.x, you may be able
 to use an actual options menu -- presumably, it'll show up in the
 action bar like any other options menu, meaning you could add it as a
 toolbar button if you wanted.

 BTW, nice to see that doing this via a regular Preference is not that
 hard -- I've only ever fussed with DialogPreference.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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

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


[android-developers] Small button that sets something to default - what should it look like?

2011-04-14 Thread B Lyon
I'm adding a small additional button to the *Preference things
(CheckBox, ColorPicker,Slider)  that will set that value to the
default.  I don't think there's enough room to put the word Default
on it.  Do you think that there's some image/icon that most folks
might realize means set back default'?  I guess I can try the shorter
word Reset... or is there some other best practice that you think
might be more appropriate?

thx

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


Re: [android-developers] Small button that sets something to default - what should it look like?

2011-04-14 Thread B Lyon
yeah - thx.  I guess I was curious about opinions because I hadn't
come across something that did not have a word in it - likeReset or
something - which isn't very big, I guess and can be readably squeezed
onto a small button just as easily as any kind of non-textual image.

Some kind of back arrow would probably be interpreted as a
navigation action initially (but it's subjective) ... and I think most
folks wouldn't know how to interpret a refresh thing, which is what
I was also initially considering.

Again - I'm thinking of the most blatant thing that is as unambiguous
as possible when someone is first seeing the screen, and the word
Reset is probably good enough for that for something very small...
and Default would be only two more characters anyway

or maybe that road sign on approach to Doxford International is the way to go


On Thu, Apr 14, 2011 at 10:52 PM, TreKing treking...@gmail.com wrote:
 On Thu, Apr 14, 2011 at 8:58 PM, B Lyon bradfl...@gmail.com wrote:

 Do you think that there's some image/icon that most folks might realize
 means set back default'?

 http://www.google.com/search?q=reset+iconhl=enprmd=ivnssource=lnmstbm=ischei=r7KnTcLtLo22tgfah4neBwsa=Xoi=mode_linkct=modecd=2ved=0CA4Q_AUoAQbiw=1223bih=1001

 -
 TreKing - Chicago transit tracking app for Android-powered devices

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

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


[android-developers] Smooth transition between scroll and fling

2011-04-08 Thread B Lyon
On 2.2, I've been playing with onFling to move a custom
horizontal-based view (basically a visually infinitely looped
marquee-type thing that is based on displaying the appropriate part of
a bitmap).  I've been using HorizontalScrollView as a reference, and
the default implementation of android.widget.Scroller.   What I am
having trouble with is the transition between a scroll and when the
user does the fling.  Sometimes it's ok, but sometimes there's too
much scroll between the first and second scrolls of the fling - the
first scroll of the fling is too small, relative to the general
pattern of non-fling scrolls that proceeded it, and to the subsequent
scrolls of the fling.  This sometimes results in a small jump on the
first scroll of the fling that I want to avoid.   Now, it's not as
simple as the last scroll is what to use for the first fling, because
sometimes there may be one or two small scrolls that occur right
before the fling is noticed.

I could be doing something wrong in putzing with this, so my basic
question is should this be a problem that has to be handled in a
tedious way - carefully analyzing the most recent scrolls leading up
to the fling or whatever - or should it work without having to mess
with any of that?


thx

-- 
You received this message because you are subscribed to the Google
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] Do folks code against this?

2011-04-01 Thread B Lyon
I was playing around with the SharedPreferences thing (2.2 in this
case), with the idea of centralizing the definition of the keys so
that they could be referenced by both the stuff in preferences.xml for
the preference activity and in code via R.string.blah.

I'm loading the preferences for the preference activity via
addPreferencesFromResource

In playing around with this, exploring how to get an xml-defined
TextEditPreference to do whatever validation for a number it can do,
an int element was inserted for the relevant key into the apps
preferences.xml in /data/data/app... Probably because I was
envisioning the value as an int, despite the fact that the
TextEditPreference was hooked into it, and so I maybe had done a
putInt or something (I'm new here).   This now apparently completely
breaks the inflation of the preference activity via
addPreferencesFromResource because the TextEditPreference will only
read in string things.

Do folks mess with trying to code against this? By that I mean perhaps
catching the potential ClassCastException in
addPreferencesFromResource and then - I guess - going one-by-one
through the keys finding out which one is causing the problem so it
can be deleted (and the default value reloaded).  I guess this
shouldn't happen in general, but the fact that it did for me and so
completely hoses the app is a tad unnerving.  I mean, what if you had
an old putInt somewhere that somehow survived some refactoring
somewhere, and then it gets called...  Of course, I could be
misinterpreting what I've seen so far...

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


Re: [android-developers] findViewById returning NULL

2011-03-26 Thread B Lyon
pretty weird

eclipse didn't insert an import to (something I forgot).R.* did it?
Seems like it will do that sometimes.  Of course, you can do a
Project--Clean, but it may come back anyway in this case

let me know when you figure it out what it is

On Sat, Mar 26, 2011 at 8:19 AM, New Developer secur...@isscp.com wrote:
 Thanks

 No I only have a single landscape layout.
 The biggest baffle is that is works and then does not work

 All I do is re-type the  findViewByID part  and in the layout xml re-type the 
  android:id  line
 and 95% that fixes it.  But this case where it does and does not work, while 
 I am working on another section is frustrating to say the least

 Thanks again


 On Mar 25, 2011, at 3:13 PM, B Lyon wrote:

 Not sure if it applies in your case, but do you have a separate
 layouts for landscape and portrait and that view is defined in only
 one of them?  I think the eclipse android plugin might not catch this
 kind of thing, and so you wouldn't find out until runtime that it
 wasn't in both layouts.


 On Fri, Mar 25, 2011 at 2:56 PM, New Developer secur...@isscp.com wrote:

 Sometimes not always the following line
 final ExpandableListView  menuView    = (ExpandableListView)
 findViewById(R.id.menuListing);
 may or may not return null and thus aborts with a NullExceptionError
 Any ideas how to fix this permanently to always return a valid
 thanks in advance

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

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

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

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


Re: [android-developers] findViewById returning NULL

2011-03-25 Thread B Lyon
Not sure if it applies in your case, but do you have a separate
layouts for landscape and portrait and that view is defined in only
one of them?  I think the eclipse android plugin might not catch this
kind of thing, and so you wouldn't find out until runtime that it
wasn't in both layouts.


On Fri, Mar 25, 2011 at 2:56 PM, New Developer secur...@isscp.com wrote:

 Sometimes not always the following line
 final ExpandableListView  menuView    = (ExpandableListView)
 findViewById(R.id.menuListing);
 may or may not return null and thus aborts with a NullExceptionError
 Any ideas how to fix this permanently to always return a valid
 thanks in advance

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

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


Re: [android-developers] Using view.invalidate

2011-03-22 Thread B Lyon
I could be wrong, but I thought Chris Pruett discussed this in his
talk about developing Replica Island (it's one of the google io
talks).  I can't remember what he did, but it seems like he mentioned
something along the same lines and he dealt with it somehow.

On Tue, Mar 22, 2011 at 10:04 PM, John Gaby jg...@gabysoft.com wrote:
 I have a custom view that changes when the use moves his finger over
 it.  Each time I receive a move event, I call invalidate to invalidate
 the view, and then it is redrawn on a subsequent onDraw.  I have a
 relatively slow device, where it takes about 0.2 seconds to paint the
 view.  I am finding, on this device, that as I move my finger around,
 all of the move events are queued up and I seem to get an onDraw event
 for each one, so after I pick up my finger, the display continues to
 change as all the move events are processed.

 What I want is to NOT queue up move events while processing the onDraw
 method.  How can I accomplish this (or am I not doing something right,
 in the first place?)

 Thanks

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

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


Re: [android-developers] Re: org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean

2011-03-20 Thread B Lyon
thanks for the update - that could save me some time sometime if I see
that kind of weirdness

On Sun, Mar 20, 2011 at 7:16 PM, siliconeagle rrmu...@gmail.com wrote:
 thanks for the tip.
 the prefs file was
 ?xml version='1.0' encoding='utf-8' standalone='yes' ?
 map
 boolean value=false /
 boolean name=initialised value=true /
 boolean name=upd.auto value=true /
 long name=backup.last value=1300662039054 /
 string name=msg.read0.995.18Beta/string
 /map

 turns out i was writing a null preference name to the prefs - so the
 error was correct - though I don't think the API should let you do
 that since the prefs cant be read after that.

 anyways, a bit of a schoolboy error, but got there ...


 thanks for the quick reply,
 rob
 On Mar 21, 12:34 am, Spiral123 cumis...@gmail.com wrote:
 im sure someone knows the answer to this off the top of their head,
 but I don't.

 My first suggestion would be to install your app on an Emulator
 instance then copy the created SharedPreferences XML file for the app
 to your local computer and inspect it manually to see if it looks like
 you expect.

 On Mar 20, 8:17 am, siliconeagle rrmu...@gmail.com wrote:







  I am trying to figure out the cause of this error it occurs on startup
  when i try to get the shared preferences for the app. the code is
  just:

  settings = this.getSharedPreferences(Globals.PREFS_NAME, 0)

  Seems like a corruption, but the bug is in the app as i have installed
  it on multiple devices and the same error occurs. I have uninstalled
  the app and re-installed it to no avail. also did a fully clean build.
  I googled the error and dont seem to be able to find anything on it.

  I was previously working fine. so I am a rather stumped. Any leads
  would be *very* highly appreciated ...

  regards,
  rob
  
  W/ApplicationContext( 1541): getSharedPreferences
  W/ApplicationContext( 1541): org.xmlpull.v1.XmlPullParserException:
  Map value without name attribute: boolean
  W/ApplicationContext( 1541):    at
  com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521)
  W/ApplicationContext( 1541):    at
  com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733)
  W/ApplicationContext( 1541):    at
  com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667)
  W/ApplicationContext( 1541):    at
  com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470)
  W/ApplicationContext( 1541):    at
  android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376)
  W/ApplicationContext( 1541):    at
  android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:
  146)
  W/ApplicationContext( 1541):    at
  net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java:
  160)
  W/ApplicationContext( 1541):    at
  net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java:
  25)
  W/ApplicationContext( 1541):    at
  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
  1047)
  W/ApplicationContext( 1541):    at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
  1611)
  W/ApplicationContext( 1541):    at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
  1663)
  W/ApplicationContext( 1541):    at android.app.ActivityThread.access
  $1500(ActivityThread.java:117)
  W/ApplicationContext( 1541):    at android.app.ActivityThread
  $H.handleMessage(ActivityThread.java:931)
  W/ApplicationContext( 1541):    at
  android.os.Handler.dispatchMessage(Handler.java:99)
  W/ApplicationContext( 1541):    at android.os.Looper.loop(Looper.java:
  123)
  W/ApplicationContext( 1541):    at
  android.app.ActivityThread.main(ActivityThread.java:3683)
  W/ApplicationContext( 1541):    at
  java.lang.reflect.Method.invokeNative(Native Method)
  W/ApplicationContext( 1541):    at
  java.lang.reflect.Method.invoke(Method.java:507)
  W/ApplicationContext( 1541):    at com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:839)
  W/ApplicationContext( 1541):    at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  W/ApplicationContext( 1541):    at dalvik.system.NativeStart.main(Native
  Method)

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

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


[android-developers] Using bitmap data to copy pixels to a new bitmap

2010-02-01 Thread lyon
In ActionScript development, there are two classes, Bitmap, and
BitmapData. Bitmap uses information from BitmapData to create a
Bitmap. Is there an equivalent to BitmapData in the android API? I did
some digging and BitmapFactory seems to be the closest, however, I'm
facing problems with it.

I tried

Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.buster);

As that was what I was seeing in most of the examples I came across,
but it is telling me that the method getResources is undefined. I'm
not really sure what is causing this as in another tutorial I did,
getResources didn't cause any problems.

I'm not looking to simply draw a bitmap to the screen, I want to copy
a section of the bitmap and place it on a new bitmap. In ActionScript,
the method is bitmapData.copyPixels(), and I'm looking for a similar
method in the Android API. The closest thing I could find was
copyPixelsToBuffer(), but I'm not really sure if that does what I
think it does.

Any help is greatly appreciated

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