[android-developers] Re: help me to link up all of my activities

2019-07-17 Thread stephen Yeary
On Thursday, January 17, 2013 at 4:07:42 PM UTC-6, bob wrote:
> You probably want to focus on the startActivityForResult method:
> 
> 
> public void startActivityForResult (Intent intent, int requestCode, Bundle 
> options)
> Added in API level 16
> Launch an activity for which you would like a result when it finished. When 
> this activity exits, your onActivityResult() method will be called with the 
> given requestCode. Using a negative requestCode is the same as calling 
> startActivity(Intent) (the activity is not launched as a sub-activity).
> Note that this method should only be used with Intent protocols that are 
> defined to return a result. In other protocols (such asACTION_MAIN or 
> ACTION_VIEW), you may not get the result when you expect. For example, if the 
> activity you are launching uses the singleTask launch mode, it will not run 
> in your task and thus you will immediately receive a cancel result.
> As a special case, if you call startActivityForResult() with a requestCode >= 
> 0 during the initial onCreate(Bundle savedInstanceState)/onResume() of your 
> activity, then your window will not be displayed until a result is returned 
> back from the started activity. This is to avoid visible flickering when 
> redirecting to another activity.
> This method throws ActivityNotFoundException if there was no Activity found 
> to run the given Intent.
> Parameters
> intent
> The intent to start.
> requestCode
> If >= 0, this code will be returned in onActivityResult() when the activity 
> exits.
> options
> Additional options for how the Activity should be started. See 
> Context.startActivity(Intent, Bundle) for more details.
> Throws
> 
> 
> android.content.ActivityNotFoundException
> See Also
>   startActivity(Intent)
> 
> 
> On Thursday, January 17, 2013 9:27:56 AM UTC-6, Prabu Siabuabu wrote:hi 
> everyone! i was wonder is it possible to make an app like this? -> 
> http://i1193.photobucket.com/albums/aa344/hiatus1/wireframe_zps9e434b1b.jpg 
> and if yes, how can i do that?? i'm stuck on to link up all of my activites 
> to main activities.. anyone here can help me please?? thanks in advance.
> 
> 
> Regards, 
> 
> 
> Prabu

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


Re: [android-developers] Exclusive Hot Requirements (Java Engineer,UI Engineer)

2018-05-01 Thread Nick stephen
Hello,

I have attached the resume of my Java consultant, contact details are
mentioned in profile, please take some time in reviewing the resume from
your busy schedule and have a word with my consultant regarding the
requirement, I really appreciate your help. Looking forward to work with
you for better business prospects.

Thank you :)


*Thanks,*

Nick Stephen

Sr. Technical Recruiter

Talent Matrix Inc.

Ph.: 317-704-4513

A: 333 N Alabama St, Suite 350, Indianapolis, IN 46204

W: *www.talentmatrixinc.com <http://www.talentmatrixinc.com/>*  e:
*n...@talentmatrixinc.com
<n...@talentmatrixinc.com>*


This e-mail, including attachments, is intended for the exclusive use of
the person or entity to which it is addressed and may contain confidential
or privileged information. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you are not the Intended Recipient, please contact the
sender by reply e-mail and destroy all copies of the original message. Do
not print, copy or forward.





On Tue, May 1, 2018 at 11:42 AM, <prabhuektha...@gmail.com> wrote:

> Please Forward the Profiles to pra...@ekthasol.com
>
> We need two strong Java engineers for Gap, SFO.
>
> Job Title 1: Java Engineer
>
> Work Location: SFO, CA
>
> Contract duration: 12+ Months
>
> Job Details:
>
> Must Have Skills:
>
> 1. Java Stack / REST / Spring Boot
> 2. Cloud Services
> 3. JMS Services
> 4. Oracle/ Postgress / HBase
> 5. Micro services
>
> Job Title 2: UI Engineer
>
> Work Location: SFO, CA
>
> Contract duration: 12+ Months
>
> Job Details:
>
> Must Have Skills:
>
> Javascripts,
> Node JS,
> React JS,
> Angular .
> Micro services.
>
> Please can I have the below details !..
>
> Full Name:
>
> Email:
>
> Phone number :
>
> Rate:
>
> Current Location with Zip code:
>
> Availability:
>
> Relocation:
>
> Skype ID:
>
> LinkedIn Id:
>
>
>
> Two Professional Reference:
>
> Contact Name:
>
> Email:
>
>
>
> Contact Name:
>
> Email:
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/a187fe1b-85e8-4626-b691-
> 42ae46e0c389%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/a187fe1b-85e8-4626-b691-42ae46e0c389%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


VishalKiranM_Resume (1).docx
Description: MS-Word 2007 document


Re: [android-developers] Sr. Java Developer Position at McLean, VA

2018-04-30 Thread Nick stephen
Hello,

I have attached the resume of my Java consultant, contact details are
mentioned in profile, please take some time in reviewing the resume from
your busy schedule and have a word with my consultant regarding the
requirement, I really appreciate your help. Looking forward to work with
you for better business prospects.

Thank you :)


*Thanks,*

Nick Stephen

Sr. Technical Recruiter

Talent Matrix Inc.

Ph.: 317-704-4513

A: 333 N Alabama St, Suite 350, Indianapolis, IN 46204

W: *www.talentmatrixinc.com <http://www.talentmatrixinc.com/>*  e:
*n...@talentmatrixinc.com
<n...@talentmatrixinc.com>*


This e-mail, including attachments, is intended for the exclusive use of
the person or entity to which it is addressed and may contain confidential
or privileged information. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you are not the Intended Recipient, please contact the
sender by reply e-mail and destroy all copies of the original message. Do
not print, copy or forward.





On Mon, Apr 30, 2018 at 10:31 AM, Lucky Yetcherla <luckyyetche...@gmail.com>
wrote:

> Greetings for the day,
>
>
>
> This is Lucky  from Gallega Software Solutions.
>
>
>
> Please let me know if you have any profiles for the position below which
> is an immediate need. Reply to recrui...@mygallega.com with copy of
> updated resume & best contact Information ASAP.
>
>
>
> *Position : Sr. Java Developer*
>
> *Location : McLean, VA*
>
> *Duration:  Long-Term*
>
> *Visa : H1b,GC,US*
>
>
>
> *Required skills:*
>
>  Java, UNIX Shell Scripting, Apache tomcat
>
> Should have extensive experience in Upgrade / Migration projects
>
>
>
> *Job Discription:*
>
>  8+ years of Java/J2EE development experience with at least 3+ years in
> UNIX environment
>
> Extensive experience in handling migration/upgrade projects
>
> 3+ years of UNIX shell scripting experience, PERL experience
>
> 5+ years of weblogic application development with hands on deployment
> experience
>
> Atleast 2 years’ experience with UDB, Sybase, SQL Server & Oracle
>
> Experience with Apache & TomCat
>
> Good Knowledge of database concepts with working knowledge of SQL, Stored
> Procedures, XQUery & XML Query
>
> Hands on experience with GIT, Jenkins, Artifactory and teamforge
>
> Hands on experience with build and deployment tools like ANY, Maven, Shell
> Script, ClearCase
>
> Must have good problem solving skills, attention to detail & strong
> interpersonal skills
>
> Proactive in nature, proven ability to work & deliver independently, with
> client satisfaction as primary goal
>
>
>
>
>
> *Lucky | **Sr. Recruiter | Gallega Software Solutions Inc.*
>
> *Tel: 678-922-8027 **| Fax:  215-827-5699*
>
> *Mail: **recrui...@mygallega.com* <recrui...@mygallega.com> *| Web: *
> *www.gallegasoft.com* <http://www.gallegasoft.com/>
> * Address: **625 Union Hill Road, Alpharetta , GA 30004.*
>
> *A NMSDC/GMSDC Certified Company*
>
> * A Georgia Minority Corporation*
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/d149030e-31e8-412b-b694-
> d0e5c3b83c57%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/d149030e-31e8-412b-b694-d0e5c3b83c57%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


VishalKiranM_Resume (1).docx
Description: MS-Word 2007 document


[android-developers] nfc tag and phone compatibility?

2016-07-18 Thread Stephen Kramer
I am developing a toy that will have an active NFC board in it 
communicating with a microcontroller.  I need to know which phones will be 
able to communicate with the NFC tag through an android app.  

The initial tag choice is ST25TA02K-P by STMicro.  The tag description from 
the datasheet is:  "NFC Forum Type 4 Tag IC with 2-Kbit EEPROM and General 
Purpose Digital Output".   I have not worked with nfc before, but I intend 
to make a simple Android app to communicate with the tag.  How can I 
determine if most phones will be able to communicate with this tag?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/34234f6e-19df-4b0c-a9be-0066dbbfc23f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Avoid copying allocation to buffer (Renderscript)

2016-06-10 Thread 'Stephen Hines' via Android Developers
You must still do the copy, even (especially) if you are using 
USAGE_SHARED. It is not guaranteed to actually share memory for the 
bitmaps, so you are indeed not doing the necessary copies on the Nexux 6.

Steve

On Friday, June 10, 2016 at 3:18:32 AM UTC-7, Ruppesh Nalwaya wrote:
>
> Hi
> I started exploring the HelloComputeNDK example that uses Renderscript in 
> C++ to change the saturation of an image, converting it to gray image. I 
> noticed that after running the script on allocations, the output alloc is 
> copied to the outputPtr buffer, which is very "*time consuming operation"*. 
> I also noticed that the allocations are created with 
> RS_ALLOCATION_USAGE_SHARED 
> flag (I understand from this that buffer and allocation are sharing 
> memory). So I skipped the copying statements
>
> //inputAlloc->copy2DRangeFrom(0, 0, X, Y, inputPtr);
>
> //outputAlloc->copy2DRangeTo(0, 0, X, Y, outputPtr);
>
>
> This reduces the time of execution. This works on samsung galaxy s6. But on 
> nexus 6 phone, this *does not work*. I get a a blank image in case of nexus 
> 6. What is going wrong here. What is the proper way to avoid copying the 
> allocation to buffer and reduce the execution time.
>
>
> Thanks
>
> Ruppesh
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/727d6b21-beb6-4080-8d4a-136296335dbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: RenderScript Only Runs On Rooted Device ?

2013-04-23 Thread Stephen Hines
On Monday, April 22, 2013 12:22:18 AM UTC-7, Bo Zhou wrote:

 Hi folks,

 I'm dealing with a strange problem about RenderScript. I made several 
 simple RenderScript module for computation, and all of them could be 
 executed on emulator and rooted device except unrooted 4.2 device, a mobile 
 phone, the LogCat showed the following info (modified),

 Adreno200-EGL|Reconstruction Branch:
 RenderScript|rsContextCreate dev=0x67994f38
 RenderScript|0x6798e078 Launching threads, CPU(2)
 ScriptC|Create script for resource = rgbtoyuv
 bcc|CPU is krait2
 *bcc|Unable to open 
 /data/data/com.example.rgbtoyuv/cache/com.example.rgbtoyuv/rgbtoyuv.o in 
 read mode. (reason: No such file or directory)*

 This cache directory looks peculiar to me, since the part after /cache/ 
should be com.android.renderscript.cache and not your 
com.example.rgbtoyuv again.

 RenderScript|ScriptC sym lookup failed


This indicates that it couldn't find a function that you called. Did you 
declare something extern and not define it in your .rs file? It is also 
possible that this unrooted device has bugs where it is missing a core 
component of the Renderscript runtime/math libraries. Without knowing what 
device this is and seeing your actual .rs code, it is going to be hard for 
me to give you any extra information. I can tell you for a fact that 
rooting does nothing different for Renderscript, so that is purely a red 
herring in this case.

Steve

bcc|Unable to compile
 bcc LLVM error message: Failed to load emitted ELF relocatable file


 Why the bcc said it could not load the .o file in unrooted device ? And I 
 also tested the program on a real rooted Nexus 7 it works fine, so is there 
 anyway we can solve this problem ? Thanks a lot ! 


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




[android-developers] Re: Refund

2013-02-19 Thread Stephen Lebed
My apps are paid apps and I don't use in-app purchasing at all.  I don't 
think there is a way to disable an app if I refund a customers money.  At 
least the way things are set up now.  Am I wrong about this?  Is there a 
better way?

Thanks,
Stephen  

On Sunday, February 17, 2013 1:19:49 PM UTC-8, John Coryat wrote:

 Wow! That's crazy!

 We use in-app billing unmanaged items and handle it ourselves. When a user 
 gets a refund, our server is notified of the transaction by Google Play and 
 automatically shuts down the premium version for the user. As my 4 year old 
 daughter would say Easy peasy.

 -John Coryat


 On Sunday, February 17, 2013 1:13:32 PM UTC-6, Stephen Lebed wrote:

 As far as I know, there isn't a way remove an app after you issue a 
 refund.  I wish there was.  It would be great to go into my dev account, 
 find the user I'm refunding the money to, and click a deactivate button or 
 something.

 For now, I try to discourage refunds by trying to work with the user to 
 address their problem.  If I can't then I will refund their money, but 
 there isn't a way for me to have the app not run on their account.  It 
 basically the honor system.  You hope they will not use the program after 
 they've gotten their money back.

 Best,
 Stephen


 On Sunday, February 17, 2013 8:57:37 AM UTC-8, Patrick wrote:

 Hello,
 If I refund an app, will it be uninstalled from the customer's device?
 Or will it continue to work and to be updated with new releases?
 Thanks,
 Patrick



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




[android-developers] Re: Android Canvas development

2013-02-19 Thread Stephen Lebed
I highly recommend this book Beginning Android Games by Mario Zechner. 
 He explains things very well and if you're new to Android, this is the 
book to get, even if your not planning on writing games.  It will answer 
all your questions.

Best,
Stephen

On Tuesday, February 19, 2013 6:40:29 AM UTC-8, janvi wrote:

 Hello all

 Iam new to canvas android development.I  want to develop an android app 
 using canvas,but how to give support to diiferent devices(hdpi,ldpi,mdpi) 
 is bothering me alot.

 Any suggestions would be appreciated plz help me out thank you 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Refund

2013-02-17 Thread Stephen Lebed
As far as I know, there isn't a way remove an app after you issue a refund. 
 I wish there was.  It would be great to go into my dev account, find the 
user I'm refunding the money to, and click a deactivate button or something.

For now, I try to discourage refunds by trying to work with the user to 
address their problem.  If I can't then I will refund their money, but 
there isn't a way for me to have the app not run on their account.  It 
basically the honor system.  You hope they will not use the program after 
they've gotten their money back.

Best,
Stephen


On Sunday, February 17, 2013 8:57:37 AM UTC-8, Patrick wrote:

 Hello,
 If I refund an app, will it be uninstalled from the customer's device?
 Or will it continue to work and to be updated with new releases?
 Thanks,
 Patrick



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




[android-developers] Re: Problems of dynamic loading downloaded precompiled renderscript source files

2013-01-17 Thread Stephen Hines
Unfortunately there is no way to dynamically download, compile, and execute 
Renderscript bitcode in Android. Even with a small fix I made to the 
reflected ScriptC constructors (allowing you to eliminate the res/raw + 
filename, and only pass the first argument), you still need to have the 
bitcode files in the raw resources for the apk.

Steve

On Wednesday, January 9, 2013 3:32:20 PM UTC-8, wave wrote:

 I have a problem on dynamic loading pre-compiled renderscript source 
 files (.bc, Script_.java) which are downloaded from web. I want to 
 load pre-compiled renderscript source files (.bc, Script_.java)  at 
 runtime by dynamic class loading. However,ScriptC(RenderScript rs, 
 Resources resources, int resourceID), the constructor of ScriptC requires a 
 resource ID. As the renderscript source files are downloaded, there are no 
 ways to provide resource ID to constructor. Is there any other solutions I 
 could find to solve this problem? Thanks.



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

[android-developers] Google App Engine, Authentication from Android, ClientLogin officially deprecated but OAuth 2.0, not supported yet.

2013-01-07 Thread Stephen Friend
I am writing a project in Google App Engine,  GAE and  need to authenticate 
from Android 

On the GAE server in a servlet  I use
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
  This prints the current user, and shows I am authenticated

To achieve this, I used the Client Login method, as described in this 
excellent blog

http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app

This works, and I can call servlets  on my Google App Engine server
The servlets know who I am,   hence the Android device is authenticated, 
and Servlet code in Google App engine knows who 
the current user is.

However,  Client Login, is now officially ,deprecatedsee
https://developers.google.com/accounts/docs/AuthForInstalledApps

and they recommend switching to OAuth 
2.0https://developers.google.com/accounts/docs/OAuth2#IA
, 
But, I read else where, that OAuth 
2.0https://developers.google.com/accounts/docs/OAuth2#IA, 
 is not supported by Google App Engine

Questions
1. What is the recommended method for Authenticating Android with Google 
App Engine ?
2. Is there  example code to do this anywhere  (ideally a rework of the 
example 
http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app,
 
would be ideal)
When is  OAuth 2.0 https://developers.google.com/accounts/docs/OAuth2#IA, 
  available on Google App Engine  ?

It seems existing methods are marked as deprecated ,  before the new 
methods are ready.

Please 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

[android-developers] Re: Question about AccountManager and OAuth authentication with Google App Engine

2013-01-07 Thread Stephen Friend

When will  OAuth 2.0 be available ?
Client login, as described in 
  
http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app
is deprecated ,  see 
  https://developers.google.com/accounts/docs/AuthForInstalledApp

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

2012-09-04 Thread Stephen Shaw
On Tue, Sep 4, 2012 at 8:46 AM, Larry Meadors larry.mead...@gmail.com wrote:
 Are there any open source media players for Android?

 I know the guts are all there to roll my own, and that you can use
 intents to play media.

 But I have some requirements that I don't think the built-in player
 app supports and I'd prefer to start with an existing one and extend
 it to meet my needs rather than starting from MediaPlayer mp = new
 MediaPlayer();.

 Larry

I haven't used it before on android, but there is vlc.
Here is the source: http://git.videolan.org/?p=vlc-ports/android.git;a=summary
play link: 
https://play.google.com/store/apps/details?id=org.videolan.vlc.betav7neon

Cheers,
Stephen

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

2012-08-30 Thread Stephen Shaw
On Wed, Aug 29, 2012 at 9:47 AM, TreKing treking...@gmail.com wrote:
 On Wed, Aug 29, 2012 at 3:00 AM, Filipe filipe.ma...@gmail.com wrote:

 I would really prefer to access the MyActivityB class public variables.


 If you explain why you want to do things this way, someone can probably
 suggest a better alternative.


I'd say generally speaking, if what you are trying to do seems like
its being forced you are probably doing it wrong.  Usually there is a
much better approach that should be taken.

Cheers,
Stephen Shaw

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


[android-developers] Re: Is Android Speech recognition only available for english?

2012-08-19 Thread Stephen Barratt
I tried this and it doesnt work. I noticed that when I change the language on 
the handset to French the recogniserIntent came back with a dialogue asking if 
I wanted to accept google voice-search in French. So if you know how to set 
google voice search language setting from within the App I'd be grateful

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


[android-developers] Re: ADT plugin disappeared from Eclipse after update

2012-07-11 Thread Stephen Wright
I've just upgraded today (11-July-2012) and the same has happened. 
ADT Plugin - http://dl-ssl.google.com/android/eclipse was used as the 
available software location for the Eclipse plugin but, although the ADT 
appears to be installed, it is not available from the Eclipse Platform.

I'm also using Ubuntu 12.04 (64-bit) with Eclipse 3.7.2

Has anyone found a way to reactivate the ADT with this release?

Regards,

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

[android-developers] Re: ADT plugin disappeared from Eclipse after update

2012-07-11 Thread Stephen Wright
From the command line you should be able to execute the program android  
which will bring up the Android SDK Manager. 
Here I found that the *Android SDK Platform-tools* for the rev 20 were not 
installed.
Install whatever is missing and then the ADT should work fine again.

An alternative to update all platforms and walk away for a while is to 
execute:   
android-sdk-linux/tools/android update sdk --no-ui

Regards,

Steve

--

On Sunday, 1 July 2012 09:25:59 UTC+1, Arul Govindaraj wrote:

 The ADT Eclipse just disappeared after the latest update, I guess Rev. 
 20. Its not there in the new project wizard, perspectives, preference, 
 etc. It was just fine till yesterday. Could someone help me resolve.

 My OS: Ubuntu 12.04
 With Eclipse Version: 3.7.2

 When I try to install again it says, its already installed. Error details 
 below:
 Cannot complete the request.  See the error log for details.
 Android Development Tools will be ignored because it is already 
 installed.

 Thanks


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

[android-developers] Re: Developer Options on Galaxy Nexus!?

2012-03-06 Thread stephen
I quite agree. I just found this post after weeks of trying to get to
bottom of an issue with my app, and it's exactly the same cause. What
a huge waste of time (not to mention the refunds and cancelled
orders).

There are far more Android handsets in the hands of normal users than
developers, so exposing options like this to all comers is simply
asking for trouble.

(BTW, this option breaks some of Google's own apps: e.g. MyTracks
stops displaying overlays at higher zoom levels.)

Stephen

On Feb 5, 10:26 am, guruk ilovesi...@gmail.com wrote:
 hi there,
 the experimental developer options on the new Galaxy Nexus cause
 lots of confusion and problems with my users (as the FORCE CPU
 RENDERING) do not work with my app (and as i heard from lots of other
 developers, even has probs with their apps.
 Will this feature even be available in the next Firmwares. i hope
 not.. it should only be available for Developers.
 thx
 chris

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


[android-developers] Re: Cannot publish application today (02/22/2012)

2012-02-23 Thread Stephen Erickson
I'm having the same issue...ever since late last night, around 11 pm.

I've seen others are having the same issue...so it might be an issue
on Googles side of things.

On Feb 22, 4:13 am, LSDsl gls...@gmail.com wrote:
 I cannot publish application today (02/22/2012). Is it only my problem? Or
 it is some updates on server?

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

2012-02-11 Thread stephen
I've had two reports (confirmed with screen shots) from users on
Android 4/Galaxy Nexus that map overlays go missing in my app as the
zoom level is increased. The same code works fine on my own Galaxy
Nexus (and in other devices/OS versions).

Interestingly, both users report that tracks recorded in the Google
MyTracks app also disappear at higher zoom levels on their devices.

The overlay simply draws lines on the map as shown below:

private void drawLine(Canvas canvas, GeoPoint fromGeoPoint, GeoPoint
toGeoPoint, Projection projection, Paint paint) {

Point startPoint = new Point();
projection.toPixels(fromGeoPoint, startPoint);
Point endPoint = new Point();
projection.toPixels(toGeoPoint, endPoint);

Path path = new Path();
path.moveTo(startPoint.x, startPoint.y);
path.lineTo(endPoint.x, endPoint.y);
canvas.drawPath(path, paint);
}

Does anyone have any ideas what might cause this behaviour for some
users but not others?

Many thanks,

Stephen

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


[android-developers] Re: SoundPool problem (SDK 4.0.x) int loop any value other than zero causes crash

2012-01-30 Thread Stephen Farnsworth
Did you ever figure this out?  I am having the same problem debugging on my 
LG G2x from an Ubuntu 11.04 box using eclipse and adk plugin.  My sound 
files are even shorter, though.

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

[android-developers] Re: Anyone else notice that WebKit in ICS has some serious bugs?

2011-12-22 Thread Stephen Williams
We're seeing similar errors (Unknown chromium error: -6, CSS or .json
files not loading in an embedded webview, text misaligned or missing,
etc.) on 4.0.2 that rolled out to Samsung Galaxy Nexus.  However,
everything works fine in the 4.0.3 emulator and also now for a Galaxy
Nexus S that just received an update.  And all of this HTML/CSS/
Javascript gets tested on desktop browsers.

The ported 4.0.2 version, that is marked 4.0.3, for the Sprint
Galaxy Nexus S 4G works better than the Galaxy Nexus 4.0.2 but still
has some major problems.

We're trying to get access to a Nexus S that _is_ having problems.  It
is apparently a problem on UK devices.  We've so far determined that
the Galaxy Nexus 4.0.2 version is hopelessly broken in this way and
cannot be worked around.  Hopefully a fully working 4.0.3 build will
be pushed out soon.  My current impression is that some 4.0.3 builds
work perfectly while others are completely broken for embedded
webviews.

This involves code used by many millions of users on most prior
versions of Android, any of which could be trying to go to ICS.

Stephen

On Oct 31, 7:29 am, John jsp...@gmail.com wrote:
 I've found numerous (show stopping) bugs in the new version ofWebKit
 shipped withICS:

 Basic usage 
 produceserrors:http://code.google.com/p/android/issues/detail?id=21177

 (note the above has the D/chromium(2735): Unknown chromium error: -6
 explanation as well...not sure if I should open a separate bug on
 that)

 Basic CSS (that works fine on previous versions) 
 produceserrors:http://code.google.com/p/android/issues/detail?id=21305

 Thread local memory leaks on the resource loader 
 thread:http://code.google.com/p/android/issues/detail?id=21355

 Core dumps when using 
 WebView.loadDataWithBaseURL()http://code.google.com/p/android/issues/detail?id=21266

 Anyone else find anything else? Given the lack of src (and NDK with a
 copy of gdb) any tips for debugging?

 Kinda alarming that it's in such a state

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


[android-developers] Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??

2011-12-19 Thread Stephen Williams

On Mon Dec 19 06:50:53 2011, Streets Of Boston wrote:

See my answer in 'android-developers' group.
Please, don't cross-post.



A) I'd already answered essentially the same thing, but doesn't hurt to 
say it again in a different way.

B) You mean the message that you cross-posted?

Date: Mon, 19 Dec 2011 06:49:21 -0800 (PST)
From: Streets Of Boston flyingdutc...@gmail.com
Reply-To: android-...@googlegroups.com
To: android-developers@googlegroups.com
Cc: android-...@googlegroups.com, android-disc...@googlegroups.com
Message-ID: 
23786539.1588.1324306161440.JavaMail.geo-discussion-forums@vbxw7
In-Reply-To: 
CALwa49tNdJaeu0-ef4PvfMSdwfHX6gkoud8DLj4r7A+WNVw9=w...@mail.gmail.com
References: 
CALwa49tNdJaeu0-ef4PvfMSdwfHX6gkoud8DLj4r7A+WNVw9=w...@mail.gmail.com
Subject: Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI 
to

Android code...plzzz help...Not a Noob , Am i??

Problems in 'fill_plasma':

  1. The raw data of the *pxl*-array can not contain JPEG encoded 
data.
  Instead it must be encoded as RGB_565, each 2 bytes having 5 bits of 
red, 6

  bits of green and 5 bits of blue.
  2. You can not assign the bitmap's raw-data array address (*pxl*) to 
  your compressed buffer-address. Instead, you'll have to copy each 
  individual pixel from '*buf*' into '*pxl*'. Use a for-loop and copy 
each

  byte from the *buf*-array into *pxl*-array.
  
;-)


sdw

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


[android-developers] Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??

2011-12-18 Thread Stephen Williams

http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap%28android.graphics.Bitmap,%20int,%20int,%20boolean%29

Many things in Java, especially graphics operations, are implemented 
mainly by native code.  I've traced 2D graphics calls all the way down 
to very specific JNI calls for particular transformations or bitblit or 
whatever.  So, there's often little point in writing your own native 
code to implement something that the libraries already do since often 
they are well optimized.  If you want to do something not already 
included, then it can make sense to go native.


sdw

On Sun Dec 18 21:27:02 2011, s.rawat wrote:

Hi Stephen, thanks for the reply,
Can you Plz elaborate the methods and this in your last sentence -- There are *fast built-in methods* to do *this* well, 
but basically you create a pixel from a weighted average in color space of the pixels that the resulting pixel overlaps

a ltmgfy link will be great !!!
Rgds,
Saurabh

..pain is temporary.quitting lasts forever..



On Sun, Dec 18, 2011 at 3:07 AM, Stephen Williams stephendwilli...@gmail.com 
mailto:stephendwilli...@gmail.com wrote:

There are fast built-in methods to do this well, but basically you create a 
pixel from a weighted average in color space
of the pixels that the resulting pixel overlaps.





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

2011-12-17 Thread Stephen Lee
How does Matrix.translateM work? I'm trying to use it to translate a
strip of triangles but it seems to be rotating the triangles in
unexpected ways on my device. I've tried all possible matrix
multiplications to make sure they are not the problem, and still it
will not work. Is their anyway to easily alter the vertex data inside
the float buffer, instead of translation through matrices?

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


[android-developers] Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??

2011-12-17 Thread Stephen Williams

This line gives you a pointer to the pixel buffer in the Bitmap:
if ((ret = AndroidBitmap_lockPixels(env, bitmap, pixels))  0) {

Then you pass it into your drawing method:
fill_plasma(info, pixels );

void fill_plasma( AndroidBitmapInfo*  info, unsigned char*  pxl )

Then you allocate, at the C level, a completely different buffer:
unsigned char* buf = (unsigned char* )malloc(pvideoBuff-framesizeIn);

Then you compress your capture buffer into jpeg data (a compressed image 
format, not a bitmap buffer) into that temporary buffer:
compress_yuyv_to_jpeg(pvideoBuff, buf, pvideoBuff-framesizeIn, 80, pvideoBuff-formatIn); //method to convert raw data 
into jpeg format- Quiet popular code on the


Then you overwrite the temporary parameter variable pxl with the address of the 
resulting buffer.

You never got around to changing the bytes in the Bitmap buffer that you locked and unlocked.  And even if you had, you were 
working with Jpeg compressed data that would have been garbage as a Bitmap.  Bitmaps are simple arrays of bytes representing 
uncompressed pixels.  Additionally, malloc() allocated data is not something you pass back to Java to manage.  You should copy 
into Java-allocated buffers.


If the capture buffer is the same size as the bitmap, you simply need to map each pixel using yuv-RGB formulas.  If they are 
different sizes, you need to resize the image too.  There are fast built-in methods to do this well, but basically you create a 
pixel from a weighted average in color space of the pixels that the resulting pixel overlaps.


sdw

On 12/17/11 10:59 AM, s.rawat wrote:

HI,
I have been trying hard from past four nights to get this thing work but so far not able to do that.I have taken and modified 
few of the code from the ndk-sample(in the samples directory in the ndk r7) for plasma -sample for passing and mapping the 
bitmap from the JNI.

Following is my code snippet :


*Android : *

#this code is running in a thread

   Bitmap   mBitmap = Bitmap.createBitmap(320,240, Bitmap.Config.RGB_565);
   renderPlasma(mBitmap);

#this code is running in a thread

*Native : *

Java_my_package_name_DrawCanvas_renderPlasma(JNIEnv * env, jobject  obj, 
jobject bitmap)
{
AndroidBitmapInfo  info;
unsigned char**pixels;
intret =10;


if ((ret = AndroidBitmap_getInfo(env, bitmap, info))  0) {

return;
}

if (info.format != ANDROID_BITMAP_FORMAT_RGB_565) {

return;
}

if ((ret = AndroidBitmap_lockPixels(env, bitmap, pixels))  0) {
return;

}


/* Now fill the values with a nice little plasma */
fill_plasma(info, pixels );

AndroidBitmap_unlockPixels(env, bitmap);//i am hoping that the bitmap has been mapped to the contents of pixel at this 
point.


}

struct vdIn *pvideoBuff = 0;//v4l2 structure which contains the raw YUV data
void fill_plasma( AndroidBitmapInfo*  info, unsigned char*  pxl )
{
unsigned char* buf = (unsigned char* )malloc(pvideoBuff-framesizeIn);
uvc_startCapture(pvideoBuff);//v4l2 function which returns the raw yuc data 
form the uvc compliant webcamera
compress_yuyv_to_jpeg(pvideoBuff, buf, pvideoBuff-framesizeIn, 80, pvideoBuff-formatIn); //method to convert raw data 
into jpeg format- Quiet popular code on the web

pxl = buf;//i am thinking the pxl will have now all the contents of the 
jpeg converted buffer

}

//the bitmap being returned from the native code has to be drawn on the bitmap 
continuously.
canvas.drawBitmap(mBitmap, 0,0, null);

I suspect that pixel being a 2D array , I have to assisgn each array elements from the buf.Plz correct me or slap a rockstar 
reply to this problem.

Best Rgds and Thanks in advance
Softy


..pain is temporary.quitting lasts forever..

--
You received this message because you are subscribed to the Google Groups 
android-ndk group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to 
android-ndk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/android-ndk?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=enimage/gif

[android-developers] QVGA devices not getting filtered?

2011-12-01 Thread Stephen Lebed
Hi All,

I have a bit of a dilemma.  I've created a few apps where I
specifically don't support small screens (ie. QVGA), but for some
reason people who own the HTC Wildfire are able to see and install my
app on their devices.  I've set smallScreens to false in my manifest,
so I'm not sure where the problem is.  Can anyone shed some light?  I
need to resolve this before too many people end up buying my app.

Here is what is in my manifest:

 supports-screens
android:anyDensity=true
android:largeScreens=true
android:normalScreens=true
android:smallScreens=false /

uses-permission android:name=android.permission.CAMERA 
/uses-permission
uses-permission android:name=com.android.vending.CHECK_LICENSE /


uses-sdk android:minSdkVersion=8 /

uses-feature android:name=android.hardware.touchscreen /
uses-feature android:name=android.hardware.sensor.compass /
uses-feature
android:name=android.hardware.sensor.accelerometer /

uses-permission android:name=android.permission.INTERNET 
/uses-permission
uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE 
/uses-permission

Thanks in advance,

Stephen Lebed


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


[android-developers] Re: QVGA devices not getting filtered?

2011-12-01 Thread Stephen Lebed
Well, that's is a good question?  The person who contacted me sent me
a screenshot showing my app running on their device.  He said it was
the HTC Wildfire.  I wouldn't think that someone who would steal my
app would write me for tech support!


On Dec 1, 9:32 am, Mark Murphy mmur...@commonsware.com wrote:
 Are you sure that they're getting it from the Android Market?









 On Thu, Dec 1, 2011 at 12:29 PM, Stephen Lebed srle...@gmail.com wrote:
  Hi All,

  I have a bit of a dilemma.  I've created a few apps where I
  specifically don't support small screens (ie. QVGA), but for some
  reason people who own the HTC Wildfire are able to see and install my
  app on their devices.  I've set smallScreens to false in my manifest,
  so I'm not sure where the problem is.  Can anyone shed some light?  I
  need to resolve this before too many people end up buying my app.

  Here is what is in my manifest:

   supports-screens
         android:anyDensity=true
         android:largeScreens=true
         android:normalScreens=true
         android:smallScreens=false /

     uses-permission android:name=android.permission.CAMERA 
     /uses-permission
     uses-permission android:name=com.android.vending.CHECK_LICENSE /

     uses-sdk android:minSdkVersion=8 /

     uses-feature android:name=android.hardware.touchscreen /
     uses-feature android:name=android.hardware.sensor.compass /
     uses-feature
  android:name=android.hardware.sensor.accelerometer /

     uses-permission android:name=android.permission.INTERNET 
     /uses-permission
     uses-permission
  android:name=android.permission.WRITE_EXTERNAL_STORAGE 
     /uses-permission

  Thanks in advance,

  Stephen Lebed

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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://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


[android-developers] QHD display issue in emulator

2011-11-24 Thread Stephen Lebed
Hi All,

I'm trying find out if this is a bug or not.

I've created two AVD's for a qHD device with a resolution of 960x540,
and a density of 220 and 240.  In both cases
DisplayMetrics.widthPixels reports 720 and DisplayMetrics.heightPixels
is reporting 480.  Is there another settings that I'm missing when
creating the AVD or is this a bug?  Can someone test this out and see
if they are getting the same thing?

Thanks,
Stephen Lebed

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

2011-11-22 Thread Stephen Lee
When my emulator (API 14.0) is running, I can go through API Demos and
select BasicGLSurfaceView (OpenGLES2), the app runs and a triangle
spins. When I load the project into Eclipse and build, the same
program stops working in the emulator as soon as I unlock the phone
and let it load, or load it from list of apps. For this reason, I'm
90% sure the problem is Eclipse building it. I've already spent 2 days
trying to resolve this and it's frustrating. I've reinstalled already
and have everything properly installed. This seems to be the only
problem of its kind- Ive googled for hours, so probably a stupid error

Heres what I get from running the untouched sample into Eclipse

Logcat at crash-
11-19 21:35:52.887: E/AndroidRuntime(556): FATAL EXCEPTION: GLThread
75
11-19 21:35:52.887: E/AndroidRuntime(556):
java.lang.IllegalArgumentException: No configs match configSpec
11-19 21:35:52.887: E/AndroidRuntime(556): at
android.opengl.GLSurfaceView$BaseConfigChooser.cho
oseConfig(GLSurfaceView.java:825)
11-19 21:35:52.887: E/AndroidRuntime(556): at
android.opengl.GLSurfaceView$EglHelper.start(GLSur faceView.java:981)
11-19 21:35:52.887: E/AndroidRuntime(556): at
android.opengl.GLSurfaceView$GLThread.guardedRun(G LSurfaceView.java:
1335)
11-19 21:35:52.887: E/AndroidRuntime(556): at
android.opengl.GLSurfaceView$GLThread.run(GLSurfac eView.java:1189)
Console--
[2011-11-19 21:34:40 - BasicGLSurfaceView] New emulator found:
emulator-5554
[2011-11-19 21:34:40 - BasicGLSurfaceView] Waiting for
HOME('android.process.acore') to be launched...
[2011-11-19 21:35:16 - BasicGLSurfaceView] WARNING: Application does
not specify an API level requirement!
[2011-11-19 21:35:16 - BasicGLSurfaceView] Device API version is 14
(Android 4.0.1)
[2011-11-19 21:35:16 - BasicGLSurfaceView] HOME is up on device
'emulator-5554'
[2011-11-19 21:35:16 - BasicGLSurfaceView] Uploading
BasicGLSurfaceView.apk onto device 'emulator-5554'
[2011-11-19 21:35:16 - BasicGLSurfaceView] Installing
BasicGLSurfaceView.apk...
[2011-11-19 21:35:49 - BasicGLSurfaceView] Success!
[2011-11-19 21:35:50 - BasicGLSurfaceView] Starting activity
com.example.android.basicglsurfaceview.BasicGLSurf aceViewActivity on
device emulator-5554
[2011-11-19 21:35:52 - BasicGLSurfaceView] ActivityManager: Starting:
Intent { act=...

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


[android-developers] Re: OpenGL doesnt work- not even sample

2011-11-22 Thread Stephen Lee
Thank you for your posts. I guess the emulator just isnt capable of
opengl es 2, but the demos are very misleading. You can go to api
demosgraphicsopengl es 2 and it will run. If you see the code in the
sdk samples folder, it is opengl es 2. I will try to run the sample on
my phone asap

On Nov 22, 11:53 am, Christopher Van Kirk
christopher.vank...@gmail.com wrote:
 Sorry, I'll solve your problem as well.

 The reason you're getting that error is that you've requested an EGL
 configuration that your device doesn't support for whatever reason, so
 the EGL configuration chooser factory is ending with no 'valid'
 configuration. That throws an exception that the GLSurfaceView is not
 particularly friendly about dealing with because it gets thrown into the
 render thread, which can't easily be caught by your activity (that I
 know of).

 What you need to do is loosen your constraints a bit so that you can get
 a valid configuration, or do some investigation about what EGL settings
 the device does support.

 Cheers,

 Chris...

 On 11/23/2011 12:45 AM, Stephen Lee wrote:







  When my emulator (API 14.0) is running, I can go through API Demos and
  select BasicGLSurfaceView (OpenGLES2), the app runs and a triangle
  spins. When I load the project into Eclipse and build, the same
  program stops working in the emulator as soon as I unlock the phone
  and let it load, or load it from list of apps. For this reason, I'm
  90% sure the problem is Eclipse building it. I've already spent 2 days
  trying to resolve this and it's frustrating. I've reinstalled already
  and have everything properly installed. This seems to be the only
  problem of its kind- Ive googled for hours, so probably a stupid error

  Heres what I get from running the untouched sample into Eclipse

  Logcat at crash-
  11-19 21:35:52.887: E/AndroidRuntime(556): FATAL EXCEPTION: GLThread
  75
  11-19 21:35:52.887: E/AndroidRuntime(556):
  java.lang.IllegalArgumentException: No configs match configSpec
  11-19 21:35:52.887: E/AndroidRuntime(556): at
  android.opengl.GLSurfaceView$BaseConfigChooser.cho
  oseConfig(GLSurfaceView.java:825)
  11-19 21:35:52.887: E/AndroidRuntime(556): at
  android.opengl.GLSurfaceView$EglHelper.start(GLSur faceView.java:981)
  11-19 21:35:52.887: E/AndroidRuntime(556): at
  android.opengl.GLSurfaceView$GLThread.guardedRun(G LSurfaceView.java:
  1335)
  11-19 21:35:52.887: E/AndroidRuntime(556): at
  android.opengl.GLSurfaceView$GLThread.run(GLSurfac eView.java:1189)
  Console--
  [2011-11-19 21:34:40 - BasicGLSurfaceView] New emulator found:
  emulator-5554
  [2011-11-19 21:34:40 - BasicGLSurfaceView] Waiting for
  HOME('android.process.acore') to be launched...
  [2011-11-19 21:35:16 - BasicGLSurfaceView] WARNING: Application does
  not specify an API level requirement!
  [2011-11-19 21:35:16 - BasicGLSurfaceView] Device API version is 14
  (Android 4.0.1)
  [2011-11-19 21:35:16 - BasicGLSurfaceView] HOME is up on device
  'emulator-5554'
  [2011-11-19 21:35:16 - BasicGLSurfaceView] Uploading
  BasicGLSurfaceView.apk onto device 'emulator-5554'
  [2011-11-19 21:35:16 - BasicGLSurfaceView] Installing
  BasicGLSurfaceView.apk...
  [2011-11-19 21:35:49 - BasicGLSurfaceView] Success!
  [2011-11-19 21:35:50 - BasicGLSurfaceView] Starting activity
  com.example.android.basicglsurfaceview.BasicGLSurf aceViewActivity on
  device emulator-5554
  [2011-11-19 21:35:52 - BasicGLSurfaceView] ActivityManager: Starting:
  Intent { act=...

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

2011-11-20 Thread Stephen Lebed
Hi,

I'm trying to add support for a layout for the Samsung Galaxy Tab 7
device.  I can't seem to find a way to specify a layout config that it
will pull the layout xml from.  It keeps using the resource from the
Normal screen/High Density folder, which makes sense, but the layout
is small and centered in the middle of the screen.  I was hoping to
use the newer layout-sw600dpi folder config, but it never pulls from
the folder.  I've set my min api to 4 and target api to 14.

Does the Support Library offer a backward compatible means to use the
newer qualifiers in 3.2 in older api's?  (I'm hoping this is the
solution!)

Is there a way to code my app to identity a devices resolution and
direct the system to use a particle layout?

Will using Fragments in anyway help with older apis?

I know that there is a huge debate about resolutions and densities and
I should create a layout that hard codes sizes, but that is what my
app requires.  I've done everything I can to keep it resolution
independent and have created several layout to address a range to
display sizes, but the Samsung 7 device falls through the cracks.

I've search everywhere I could find and have read and reread to sdk
docs, but I haven't found an answer.

Any help would be appreciated.

Thanks,
Stephen Lebed

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Standalone interactive logcat viewer/inspector (free)

2011-11-11 Thread Stephen Uhler
For the app I was working on, I needed better/different highlighting and
filtering than what DDMS
provided, so I build something that served my purpose at the time, and
thought I'd share it in case others find it useful.  I often use DDMS as
well, depending on the type of output I need.


On Thu, Nov 10, 2011 at 12:42 PM, TreKing treking...@gmail.com wrote:

 On Wed, Nov 9, 2011 at 2:31 PM, Stephen Uhler suh...@google.com wrote:

 I got frustrated one day inspecting logcat output when I couldn't get
 eclipse to start, so I wrote a stand-alone logcat inspector (in Tcl/Tk),
 which I now use in preference to the one in eclipse.


 Any reason you didn't just use DDMS?


 -
 TreKing http://sites.google.com/site/rezmobileapps/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] Standalone interactive logcat viewer/inspector (free)

2011-11-09 Thread Stephen Uhler
I got frustrated one day inspecting logcat output when I couldn't get
eclipse to start, so I wrote a stand-alone logcat inspector (in Tcl/Tk),
which I now use in preference to the one in eclipse.  Feel free to download
it and try it out, it should work on Mac/Linux/Windows

http://code.google.com/p/tk-logcat-viewer/

(Sorry if this is the wrong group to post this to)

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

[android-developers] Re: Custom compass image bounds in subclassed MyLocationOverlay

2011-10-16 Thread stephen
OK - so the answer isn't canvas.scale (that scales up the bitmaps).
How can the canvas be manipulated to increase its size (i.e. provide
more room to draw my images)?

Thanks,

Stephen

On Oct 11, 9:23 am, stephen stephen.trai...@gmail.com wrote:
 Makes sense. So something like:

 canvas.save
 canvas.scale
 // do drawing...
 canvas.restore

 ?

 Or is there some other way to increase the canvas bounds that I should
 be using?

 Thanks,

 Stephen

 On Oct 11, 6:15 am, TreKing treking...@gmail.com wrote:







  On Mon, Oct 10, 2011 at 11:13 PM, stephen stephen.trai...@gmail.com wrote:
   How do you set the bounds of the custom imagery so that calls
   to drawCompass set the required bounds on the canvas object?

  You could try saving the current state of the Canvas, doing your drawing,
  then restoring it.

  --- 
  --
  TreKing http://sites.google.com/site/rezmobileapps/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


[android-developers] Re: Custom compass image bounds in subclassed MyLocationOverlay

2011-10-11 Thread stephen
Makes sense. So something like:

canvas.save
canvas.scale
// do drawing...
canvas.restore

?

Or is there some other way to increase the canvas bounds that I should
be using?

Thanks,

Stephen

On Oct 11, 6:15 am, TreKing treking...@gmail.com wrote:
 On Mon, Oct 10, 2011 at 11:13 PM, stephen stephen.trai...@gmail.com wrote:
  How do you set the bounds of the custom imagery so that calls
  to drawCompass set the required bounds on the canvas object?

 You could try saving the current state of the Canvas, doing your drawing,
 then restoring it.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/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


[android-developers] Custom compass image bounds in subclassed MyLocationOverlay

2011-10-10 Thread stephen
I'd like to draw my own compass image on a MapView by subclassing
MyLocationOverlay. The custom image needs to be larger than the
default image shown by MyLocationOverlay. I override drawCompass and
use my own drawables (bitmaps) to draw the compass, however the bounds
of the canvas normally presented to drawCompass are too small:

@Override
protected void drawCompass(Canvas canvas, float bearing) {

Rect bounds = canvas.getClipBounds();
// usual result: bottom=98, left=10, right=90, top=18

// draw something custom here...

// Don't want default compass image:
//super.drawCompass(canvas, bearing);

}

How do you set the bounds of the custom imagery so that calls to
drawCompass set the required bounds on the canvas object? I'm guessing
that the bounds I'm seeing are those applicable to the default
imagery.

(drawCompass appears to be called from MyLocationOverlay.draw() - I
can override that, but am still unsure how to change the ClipBounds on
the canvas object).

Thanks for any help!

Stephen

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


[android-developers] Re: Viewpager's current item

2011-09-12 Thread stephen
Grant,

I think the reason might be that you can't rely on a one-to-one
correspondence between the item ordering in the ViewPager's collection
and order of your pages. Check out your PagerAdapter implementation
and look to see how your page items are added to the collection in
instantiateItem.

An alternative approach might be to define an id on the root element
of each page root view and call findViewById on your ViewPager object,
instead of getChildAt.

Cheers,

Stephen

On Sep 6, 11:01 am, Grant Thomas jgranttho...@gmail.com wrote:
 Hi all,
 any insights into how you might get the current focused item in a
 viewpager.  I've found that the index received in my
 OnPageChangeListener is not a good argument to pass along to
 ViewPager's getChildAt method (i.e.,  the view I reference seems not
 to always be the one it ought to be, could be one of the views that's
 not currently visible etc...).

 Any insights?

 I'm interested mostly in having the current visible view attempt to
 handle touches before my viewpager tries.  The best I can do right now
 is to have both the focused view and the pager handle the touch event,
 which is resulting in some less than ideal behavior.  If it's not
 simple to get the current view, I'd settle for having my views catch
 touch events before the pager and pass them along in the case that
 they ought to.

 Thanks,
 Grant

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

2011-08-04 Thread stephen miller
The tabs at the bottom stop working once I click on the second tab.
Could anyone please help?

Here is some code.


// Main Activity

public class MainTabActivity extends TabActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

/** TabHost will have Tabs */
TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);

/** TabSpec used to create a new tab.
 * By using TabSpec only we can able to setContent to the tab.
 * By using TabSpec setIndicator() we can set name to tab. */

/** tid1 is firstTabSpec Id. Its used to access outside. */
TabSpec firstTabSpec = tabHost.newTabSpec(tid1);
TabSpec secondTabSpec = tabHost.newTabSpec(tid1);

/** TabSpec setIndicator() is used to set name for the tab. */
/** TabSpec setContent() is used to set content for a particular
tab. */
firstTabSpec.setIndicator(View Map).setContent(new
Intent(this,FirstTab.class));
secondTabSpec.setIndicator(Route Information).setContent(new
Intent(this,SecondTab.class));

/** Add tabSpec to the TabHost to display. */
tabHost.addTab(firstTabSpec);
tabHost.addTab(secondTabSpec);

}
}


// First Tab Activity

public class FirstTab extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

/* First Tab Content */
TextView textView = new TextView(this);
textView.setText(First Tab);
setContentView(textView);

}
}


// Second Tab Activity with ListView

public class SecondTab extends ListActivity{
/** Called when the activity is first created. */

static final String[] stops = new String[] {
Odegard, Memorial Union};

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);


setListAdapter(new ArrayAdapterString(this,
R.layout.second_tab_layout, stops));

ListView lv = getListView();
lv.setTextFilterEnabled(true);


lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View 
view,
int position, long id) {
// When clicked, show a toast with the TextView 
text
Toast.makeText(getApplicationContext(), 
((TextView)
view).getText(),
Toast.LENGTH_SHORT).show();
}
});


}


// Second tab activity xml layout file

?xml version=1.0 encoding=utf-8?
TextView xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent
android:padding=10dp
android:textSize=16sp 
/TextView


//First activity xml layout file


?xml version=1.0 encoding=utf-8?

TabHost android:layout_width=fill_parent
android:layout_height=fill_parent xmlns:android=http://
schemas.android.com/apk/res/android
android:id=@android:id/tabhost
RelativeLayout android:id=@+id/LinearLayout01
android:orientation=vertical 
android:layout_height=fill_parent
android:layout_width=fill_parent
TabWidget android:id=@android:id/tabs
android:layout_height=wrap_content
android:layout_width=fill_parent
android:layout_alignParentBottom=true/TabWidget
FrameLayout android:id=@android:id/tabcontent
android:layout_height=fill_parent
android:layout_width=fill_parent/FrameLayout
/RelativeLayout

/TabHost


// xml manifest file

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.und.shuttleRoute6
  android:versionCode=1
  android:versionName=1.0
uses-sdk android:minSdkVersion=7 /

application android:icon=@drawable/icon android:label=@string/
app_name
activity android:label=@string/app_name
android:name=.MainTabActivity android:theme=@android:style/
Theme.NoTitleBar
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity android:name=.FirstTab /
activity android:name=.SecondTab /
/application
/manifest



Thanks for any help!

-- 
You 

Re: [android-developers] Re: Install % not updating?

2011-06-29 Thread Stephen Damm

Just repeating this link:
https://www.google.com/support/androidmarket/developer/bin/static.py?page=known_issues.cs

They have it in the known issues for June 29th, click a button and it 
reports it for you.  We can sign up for notification when it is fixed.  
Pretty slick I'd have to say.



Stephen

On 11-06-29 09:27 PM, albnok wrote:

I've reported it from 3 publisher accounts already. Let's crank up the
heat on them - I'm hoping they have a priority list based on
complaints.


On Jun 30, 7:36 am, William Fergusonwilliam.ferguson...@gmail.com
wrote:

Thanks for the link Michael.

It's been demoralizing seeing my active install percentage fall by 18%
in the last 10 days.
If I didn't have 3rd party indicators to tell me otherwise it would
have been devastating.
Here's hoping things get back to normal sometime soon.

On Jun 29, 5:20 pm, Michael Schollmeyermich...@mictale.com  wrote:










Anyway, the email contains a link and I would encourage everybody to click
open the sections and click on report for every issue that applies.
Hopefully they get these counters right this time.
Here is the link:
https://www.google.com/support/androidmarket/developer/bin/static.py?...


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

2011-06-25 Thread Stephen Damm

On 11-06-25 07:31 PM, Zsolt Vasvari wrote:

I have had links in my app to my Google Groups, Twitter and Facebook
pages.

A month ago (May 20th), I changed my URLs to proxy through goo.gl so I
can get some tracking going.

Smart, very good idea.

Here are my total # of clicks in the last month for each with about
5000 active installs:

Google Groups:  46
Twitter: 9
Facebook: 1(!!)
I am not surprised at this.  Customers rarely go above and beyond the 
install button.  The fact they take the time to comment is surprising.



So I'd say, Google Groups is a good idea, Twitter and FB are a waste
of time.  At least it's true for my more mature demographics.



On Jun 26, 9:21 am, Halsafarshinhalsa...@gmail.com  wrote:

My email address and messages about emailing me are all over the
description.  From my apps it is super easy to get to my website and
therefore facebook, etc.  You are assuming users will take this extra
step.  Why would they when Google says make your statement here as a
comment.

You would be surprised how many users don't even understand they can
get a refund from Google within 15minutes of purchases.  These same
users don't understand that developers can't reply to their comments.
A lot of users think comments is the way to spark up conversation with
the developer.  I have no expectation to educate all users on these
facts.  Instead it should be very clear on the market pages.  This is
not a problem of not using enough external services.  I think Google
needs to make it more clear that the comments/rating is just that and
no further conversation can happen.  Users have no clue that
developers can't reply to them.

So my solution is to track their email down via the merchant reports
and start chatting with them, which I proactively do.  However when
the users name doesn't match the credit card name then it is
impossible to track them down and solve their issue.

On Jun 25, 6:20 pm, Mark Murphymmur...@commonsware.com  wrote:




On Sat, Jun 25, 2011 at 8:04 PM, Halsafarshinhalsa...@gmail.com  wrote:

How on earth does a developer contact a user who makes a comment about
their app?

On an individual basis, you don't. The Android Market certainly should
be doing more in this area -- that dead horse has been beaten to a
pulp by now.

Is there anyway for us as developers to even talk to our customers?

Twitter. Blog. Facebook and other social media. Web site. Email
newsletter. Get Satisfaction or other outsourced support engines.
Google Group or other discussion board. Chat room/IRC. If you have
sufficient numbers, use Meetups/user groups. If you're so inclined,
use handwritten letters or phone calls. And so on.
IOW, use the same mechanisms that the rest of the planet uses for
talking to their customers, when distributors are involved in the
sales channel. This is not new -- plenty of businesses in plenty of
markets have used plenty of techniques to get past this problem. This
problem has existed since the introduction of the middle man, which
I think was a few centuries ago.
--
Mark Murphy (a Commons 
Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
_Android Programming Tutorials_ Version 3.5 Available!- Hide quoted text -

- Show quoted text -


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


[android-developers] Display two camera previews in one window

2011-06-15 Thread stephen cathcart
Hi, I am required by the app I am working on now to be able to display
two camera previews on one page side by side, the effect I am after is
sort of like a video call where you can see the person you are
speaking to as well as yourself using the back and front camera
simultaneously. I know that the camera display preview requires a
surfaceview to display it so my first thought was to use two
surfaceviews each half the size of the screen, one displaying the back
camera and the other the front however, I have read that isn't a great
idea using multiple surfaceviews. If anyone could give me some tips
how to achieve this effect it would be much appreciated.

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


Re: [android-developers] Re: Market total # of downloads stuck?

2011-06-09 Thread Stephen Damm

On 6/9/2011 10:48 AM, Mike wrote:

yes, I have one at 133%

On Jun 9, 8:09 am, Adam Ratanaadam.rat...@gmail.com  wrote:

Has anyone else notice the total # of downloads has been stuck the last few
days in the market stats?  


Mine has stayed the same for my apps, while the # of active installs has
increased.  For example, for one app, the # of active installs is now  than
the total # of downloads and the active install% is 101%.


Mine is stuck as well over the last week.

I'm expecting the numbers to flood in eventually with a flood of comments...

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


[android-developers] Re: FragmentPager component?

2011-05-21 Thread Stephen
Is any information available on the relative advantages/disadvantages/
differences between the mentioned FragmentPager and the Workspace
widget in the IO2011 app (source here:
http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/Workspace.java
)?

I haven't tried using the Workspace code yet but planned to use it
parenting fragments into the child views it displays.

Thanks for all the help you provide Dianne,

Stephen



On May 20, 5:16 pm, Dianne Hackborn hack...@android.com wrote:
 It is something I have been working on.  I don't know when it will be out to
 be used, but it will likely still be quite rough at that point.  The code is
 not used by anything released at this point.  It lets you do interactions
 like the swiping between panels in the news and weather app...  though it
 won't include the tab part any time soon.









 On Fri, May 20, 2011 at 7:34 AM, Scythe scythe...@gmail.com wrote:
  During the Android 3.0 UI design talk on IO 2011, it was mentioned
  that we'll get a FragmentPager component soon. I'd like to know a
  bit more about this component, when'll this be released and what'll it
  be able to do? I'm quite curious, because it awfully sounds something
  that I'm working on right now. Is it about some kind of left-to-right
  fragment paging mechanism that's used in the Honeycomb Gmail app?

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


Re: [android-developers] How to load resources like texture images sound files in native code?

2011-05-19 Thread Stephen Damm

On 11-05-19 12:50 AM, Atul Prakash wrote:

Dear Friends,

I am trying to load resources(e.g. texture images, sound files) in my
native .CPP file. As I have to use the resources like texture images
in native code, this why I am looking for any method to add them in my
native code itself.

Is this possible to add resources in my JAVA file and access these
resources in my native code? If yes then how?

Please guide me.

Atul Prakash Singh

You can load the PNG for example into a Bitmap Java side.  The standard 
way you normally would in Android using AssetManager.  Then fetch the 
pixels into an array and then read from native side.  Example here:

http://lol.zoy.org/blog/2011/3/2/load-pngs-using-android-ndk

The alternative is to use libzip and unzip the apk (yes they are really 
just a zip, even after signed and zipalign this still works).  Once you 
have used libzip to get a handle to the archive you can start reading 
files.  This is definitely a lot more work but depending your needs it 
might be a necessity.  Example here:

http://androgeek.info/?p=275


Stephen Damm

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Developer sign up is account registered to credit card owner

2011-05-19 Thread Stephen Damm
I took your advice and went along with it.  It does appear that the 
credit card does not bind in some special way.  When I get my own I can 
remove it.  The only stipulation is at least one card always has to be 
on the account.  Everything else has been under my name, number, email, etc.


Thanks!


On 11-05-19 07:00 AM, Francisco Dalla Rosa soares wrote:

I have your same problem and did just what you want to do.
The credit card info is registered to your checkout account. the 
payment goes to your significant other but the Market account 
registered is yours.
When you get your own credit card you can just go to your google 
checkout account, add your new CC info and remove the other person's 
info from there (just checked and it's possible to remove the CC info)



2011/5/19 Stephen Damm shinhalsa...@gmail.com 
mailto:shinhalsa...@gmail.com


Fixed subject.

As well, it appears from what I can tell if I accept


I agree and I
am willing to associate my credit card and account registration above
with the Android Market Developer Distribution Agreement.

With the credit card from someone else then the developer side of
the account will be forever locked to that person.  It just feels
wrong that the credit card is used for anything more than just
payment.



On 11-05-18 06:04 PM, Halsafar wrote:

I am creating an android developer account to put an app I
made on the
market.  I was an unwise teenager with my financial self many
years
ago and thus do not have a credit card.  My significant other
was more
than willing to help out.  However it appears that by signing
up under
my Google account but using her cc it seems to want to
register the
account in her name.  It might just be deceiving but after
submitting
payment I get to the screen asking me to accept this: I agree
and I
am willing to associate my credit card and account
registration above
with the Android Market Developer Distribution Agreement.
 However in
the box above it says Registered To: XXX where XXX is my
significant
others name.  I'd like everything to remain in my name and use
my bank
account but for the credit card payment I'm getting outside
help.  It
seems Google does not support this or am I reading all this
wrong?  It
also turns out I might have a cc of my own in 2-3 weeks but would
prefer not to wait that long.  So if in the future I can
change the
credit card associated that would work too.  I do not want to
screw
this up since I'd prefer not to lose $25.


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


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


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Developer sign up is account registered to credit card owner

2011-05-18 Thread Stephen Damm

Fixed subject.

As well, it appears from what I can tell if I accept

I agree and I
am willing to associate my credit card and account registration above
with the Android Market Developer Distribution Agreement.

With the credit card from someone else then the developer side of the 
account will be forever locked to that person.  It just feels wrong that 
the credit card is used for anything more than just payment.



On 11-05-18 06:04 PM, Halsafar wrote:

I am creating an android developer account to put an app I made on the
market.  I was an unwise teenager with my financial self many years
ago and thus do not have a credit card.  My significant other was more
than willing to help out.  However it appears that by signing up under
my Google account but using her cc it seems to want to register the
account in her name.  It might just be deceiving but after submitting
payment I get to the screen asking me to accept this: I agree and I
am willing to associate my credit card and account registration above
with the Android Market Developer Distribution Agreement.  However in
the box above it says Registered To: XXX where XXX is my significant
others name.  I'd like everything to remain in my name and use my bank
account but for the credit card payment I'm getting outside help.  It
seems Google does not support this or am I reading all this wrong?  It
also turns out I might have a cc of my own in 2-3 weeks but would
prefer not to wait that long.  So if in the future I can change the
credit card associated that would work too.  I do not want to screw
this up since I'd prefer not to lose $25.


Thanks!


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


[android-developers] Re: Android version doubts

2011-05-08 Thread Stephen
Personally I try to compile my apps with the latest version of the SDK
but set the minimum sdk level to whatever is the lowest level I want
to support.  At the moment, that's usually target 11, minimum 3 or 7.
This is done in the manifest file in the uses-sdk section as described
here: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

If anyone's got a good reason to compile with a lower version of the
SDK please let me know but I figure you're going to gain any
optimisations by using the latest version.

Stephen




On May 8, 8:32 am, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
 It is always better to create an application on version 2.1 that will
 support above api levels and works fine
 for almost all android phones in market.

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







 On Sun, May 8, 2011 at 12:21 PM, Jumana jumanamaj...@gmail.com wrote:
  On which version is it best recommended for an android app to be
  worked upon?

  If I develop an app, say on 2.3 and i have say, the checklistdemo
  (from Busy coder's guide ...) on the app market, people with devices
  having versions less than 2.3 will not be able to view my app, is that
  correct?

  If I have a list with multipleChoice mode in my app,  it doesn't seem
  to work correctly on virtual devices with lesser versions, say 1.5.
  why is that?

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

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


[android-developers] Re: Android version doubts

2011-05-08 Thread Stephen
 If I have a list with multipleChoice mode in my app,  it doesn't seem
 to work correctly on virtual devices with lesser versions, say 1.5.
 why is that?

Also worth noting is that all the documentation has API levels noted
in it, so for example the multipleChoice thing you mention, is listed
here in the docs:

http://developer.android.com/reference/android/widget/AbsListView.html#CHOICE_MODE_MULTIPLE

It's been there since API level 1 so you can use it on any device.  If
however, you're wanting to use CHOICE_MODE_MULTIPLE_MODAL which is
right below it, that's only been available since API level 11 and so
will only work on Android 3.0 or above.

Hope it helps.

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


[android-developers] Re: how to test activity in portrait orientation - honeycomb

2011-05-06 Thread Stephen
Assuming you're using the emulator, you can rotate it by pressing Ctrl-
F11 (or Ctrl-Fn-F11 on a mac)
Once it's in portrait mode, activities should run with their portrait
configurations, no coding required...

Stephen


On May 5, 9:45 am, jjoe64 g.jjo...@googlemail.com wrote:
 Hello.

 I would like to unit test my app in portrait orientation. (For
 honeycomb the default orientation is landscape.)

 First I set the orientation to portrait by calling the method
 getActivity().setRequestedOrientation(...)
 So far so good.

 Now I simulate a click on a button and then a new activity will open
 (by a intent). This activity is only used in portrait orientation.
 The problem is: The new activity starts in the (default) landscape
 orientation.

 So what must be done, that the new activity starts in the portrait
 orientation?

 Thanks,
 Jonas

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

2011-05-02 Thread Stephen
Having read the post here: http://goo.gl/6xYBD (Android 3.0-Tabhost)
and based on the lack of a TabFragment it appears that the way to do
things in 3.0 (and I guess above) is to use tabs in the action bar.

My issue is that I'm writing an app that has the fairly standard
'listview on left, content on right' layout, and I'd like my content
on the right to have tabs.  I know I can change the right fragment
using the tabs in the action bar, but from a UI perspective, it just
looks wrong.  The tabs in the action bar look like they preside over
the *whole* application as they are above the left ListView as well.
For example, in the HoneycombGallery app, the Android/Balloons/
Bikes tabs change both the ListView fragment and the content
fragment.  Mine would only change which aspect of the content you're
looking at.

I tried inflating a TabHost into the fragment but I get
NullPointerExceptions when I run TabSpec.setContent (that may be me
doing something wrong - I'll have another run at debugging it but
figured I'd ask this anyway).

I hope that all makes sense.  If I need to explain better please let
me know.  I'm very interested in how others are solving this problem
since I think the 'listview | content' style is quite common.  At the
moment, my alternatives are either to fake tabs with buttons
(something I'd rather avoid) or to present menu buttons in the action
bar to change what you're looking at.

Thank you,

Stephen

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


[android-developers] Re: Why did you chose this OS platform over other ones?

2011-05-02 Thread Stephen
I agree with all of Nikolay's reasons.  I looked at iPhone development
and maybe it would've given me a bigger market, but I'd have to say
writing for Android has been great.  There's a lot more documentation
out there on Java.

As far as your question about courses and learning, I'd suggest
downloading Eclipse and finding a few Java tutorials on the web.
Write a Hello World program first.

Once you're even slightly acquanted with Java, install the Android SDK
and looking through the samples.  A lot of them are very complicated
so don't be scared if you don't understand them first time round.
Google for simple apps that show you how to use things like
ListViews.  You'll get the hang of it pretty quickly.

Stephen



On May 2, 11:07 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Mon, May 2, 2011 at 6:21 PM, Theo Sam soccerw...@gmail.com wrote:
  Thanks for your advice is there anyone else that can give me their opinion??

 Here are some reasons for Android in no particular order:

 * uses a mainstream language (Java) with normal syntax
 * I've been doing Java forever :)
 * easy/cheap to get started: don't need to pay for the SDK,
 pretty much any machine/OS will do for development, you
 can get an Android phone for cheap as well
 * easy/cheap to publish on the Android market: $25 and no
 review process (it has other flaws though)
 * it's Linux, so most things you know about *nix hold
 * it's (mostly) open source, so you can get under the
 hood if you need to

 As for the others, Blackberry is pretty much dead as far
 as apps go, Windows phone's future is uncertain, but
 the app review process is said to be ridiculous. Apple
 is here to stay, so it's a safe bet. If you want to be
 serious about mobile development , you can't ignore it.
 On the other hand the app store has been around for
 a relatively long time, so it's harder to get in.

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


[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
Thanks for the quick response Dianne.  Please find below the stack
trace, the fragment class' code and the layout XML.  I've tried using
either the default tabhost ID (android.R.id.tabhost) or an @+ ID.
Both result in the NullPointerException.

I'm sure it's a schoolboy error somewhere but if you (or anyone else)
can help I'd much appreciate it.

Stephen



-= Stack Trace =-

05-02 17:18:43.193: ERROR/AndroidRuntime(2446): FATAL EXCEPTION: main
05-02 17:18:43.193: ERROR/AndroidRuntime(2446):
java.lang.NullPointerException
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:615)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:610)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.widget.TabHost$TabSpec.setContent(TabHost.java:464)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
uk.co.esstec.android.fragmenttabtest.ContentPaneFragment.onCreateView(ContentPaneFragment.java:
20)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:730)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:921)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.BackStackRecord.run(BackStackRecord.java:578)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:
1221)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.FragmentManagerImpl$1.run(FragmentManager.java:375)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.os.Handler.handleCallback(Handler.java:587)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.os.Handler.dispatchMessage(Handler.java:92)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.os.Looper.loop(Looper.java:126)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
android.app.ActivityThread.main(ActivityThread.java:3997)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
java.lang.reflect.Method.invokeNative(Native Method)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
java.lang.reflect.Method.invoke(Method.java:491)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:841)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
05-02 17:18:43.193: ERROR/AndroidRuntime(2446): at
dalvik.system.NativeStart.main(Native Method)

-= Layout XML =-

?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/testtabhost1 android:layout_width=fill_parent
android:layout_height=fill_parent
LinearLayout android:orientation=vertical
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 /
FrameLayout android:id=@android:id/tabcontent
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView android:id=@+id/textview1
android:layout_width=fill_parent
android:layout_height=fill_parent 
android:text=this is a tab /

TextView android:id=@+id/textview2
android:layout_width=fill_parent
android:layout_height=fill_parent 
android:text=this is another
tab /
TextView android:id=@+id/textview3
android:layout_width=fill_parent
android:layout_height=fill_parent 
android:text=this is a third
tab /
/FrameLayout
/LinearLayout
/TabHost

-= Fragment Class Code =-

package com.test.fragtest;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TabHost;

public class ContentPaneFragment extends Fragment {

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup
container,
Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);

View v = inflater.inflate(R.layout.content_pane, container, 
false);

TabHost mTabHost = (TabHost) v.findViewById(R.id.testtabhost1);


mTabHost.addTab(mTabHost.newTabSpec(tab_test1).setIndicator(TAB
1).setContent(R.id.textview1));

mTabHost.addTab(mTabHost.newTabSpec(tab_test2).setIndicator(TAB
2).setContent(R.id.textview2));

mTabHost.addTab(mTabHost.newTabSpec(tab_test3).setIndicator(TAB
3).setContent(R.id.textview3

[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
(Please ignore the 'package com.test.fragtest' line.  I changed that
to paste it up here and just realised the actual packagename is in the
stack trace anyway)

On May 2, 5:50 pm, Stephen stephen.wil...@gmail.com wrote:
 Thanks for the quick response Dianne.  Please find below the stack
 trace, the fragment class' code and the layout XML.  I've tried using
 either the default tabhost ID (android.R.id.tabhost) or an @+ ID.
 Both result in the NullPointerException.

 I'm sure it's a schoolboy error somewhere but if you (or anyone else)
 can help I'd much appreciate it.

 Stephen

 -= Stack Trace =-

 05-02 17:18:43.193: ERROR/AndroidRuntime(2446): FATAL EXCEPTION: main
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):
 java.lang.NullPointerException
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:615)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:610)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.widget.TabHost$TabSpec.setContent(TabHost.java:464)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 uk.co.esstec.android.fragmenttabtest.ContentPaneFragment.onCreateView(Conte 
 ntPaneFragment.java:
 20)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.moveToState(FragmentManager.java:730)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.moveToState(FragmentManager.java:921)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.BackStackRecord.run(BackStackRecord.java:578)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:
 1221)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.FragmentManagerImpl$1.run(FragmentManager.java:375)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Handler.handleCallback(Handler.java:587)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Handler.dispatchMessage(Handler.java:92)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.os.Looper.loop(Looper.java:126)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 android.app.ActivityThread.main(ActivityThread.java:3997)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 java.lang.reflect.Method.invoke(Method.java:491)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:841)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
 05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
 dalvik.system.NativeStart.main(Native Method)

 -= Layout XML =-

 ?xml version=1.0 encoding=utf-8?
 TabHost xmlns:android=http://schemas.android.com/apk/res/android;
         android:id=@+id/testtabhost1 android:layout_width=fill_parent
         android:layout_height=fill_parent
         LinearLayout android:orientation=vertical
                 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 /
                 FrameLayout android:id=@android:id/tabcontent
                         android:layout_width=fill_parent
 android:layout_height=fill_parent
                         TextView android:id=@+id/textview1
 android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
 android:text=this is a tab /

                         TextView android:id=@+id/textview2
 android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
 android:text=this is another
 tab /
                         TextView android:id=@+id/textview3
 android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
 android:text=this is a third
 tab /
                 /FrameLayout
         /LinearLayout
 /TabHost

 -= Fragment Class Code =-

 package com.test.fragtest;

 import android.app.Fragment;
 import android.os.Bundle;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.TabHost;

 public class ContentPaneFragment extends Fragment {

         @Override
         public View onCreateView(LayoutInflater inflater, ViewGroup
 container,
                         Bundle savedInstanceState) {
                 super.onCreateView(inflater, container, savedInstanceState);

                 View v = inflater.inflate(R.layout.content_pane, container, 
 false);

                 TabHost mTabHost = (TabHost) 
 v.findViewById(R.id.testtabhost1);

                 
 mTabHost.addTab

[android-developers] Re: Tabs inside a fragment

2011-05-02 Thread Stephen
As I said, schoolboy error, especially since I've had to do
the .setup() call before.

Many thanks to both you and Dianne,

Stephen :-)



On May 2, 5:56 pm, Mark Murphy mmur...@commonsware.com wrote:
 You need to call setup() on the TabHost before using it, if you are
 not extending TabActivity. Do that before your first addTab() call.









 On Mon, May 2, 2011 at 12:50 PM, Stephen stephen.wil...@gmail.com wrote:
  Thanks for the quick response Dianne.  Please find below the stack
  trace, the fragment class' code and the layout XML.  I've tried using
  either the default tabhost ID (android.R.id.tabhost) or an @+ ID.
  Both result in the NullPointerException.

  I'm sure it's a schoolboy error somewhere but if you (or anyone else)
  can help I'd much appreciate it.

  Stephen

  -= Stack Trace =-

  05-02 17:18:43.193: ERROR/AndroidRuntime(2446): FATAL EXCEPTION: main
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):
  java.lang.NullPointerException
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:615)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.widget.TabHost$ViewIdContentStrategy.init(TabHost.java:610)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.widget.TabHost$TabSpec.setContent(TabHost.java:464)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  uk.co.esstec.android.fragmenttabtest.ContentPaneFragment.onCreateView(Conte 
  ntPaneFragment.java:
  20)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:730)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.FragmentManagerImpl.moveToState(FragmentManager.java:921)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.BackStackRecord.run(BackStackRecord.java:578)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:
  1221)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.FragmentManagerImpl$1.run(FragmentManager.java:375)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.os.Handler.handleCallback(Handler.java:587)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.os.Handler.dispatchMessage(Handler.java:92)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.os.Looper.loop(Looper.java:126)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  android.app.ActivityThread.main(ActivityThread.java:3997)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  java.lang.reflect.Method.invokeNative(Native Method)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  java.lang.reflect.Method.invoke(Method.java:491)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:841)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
  05-02 17:18:43.193: ERROR/AndroidRuntime(2446):     at
  dalvik.system.NativeStart.main(Native Method)

  -= Layout XML =-

  ?xml version=1.0 encoding=utf-8?
  TabHost xmlns:android=http://schemas.android.com/apk/res/android;
         android:id=@+id/testtabhost1 android:layout_width=fill_parent
         android:layout_height=fill_parent
         LinearLayout android:orientation=vertical
                 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 /
                 FrameLayout android:id=@android:id/tabcontent
                         android:layout_width=fill_parent
  android:layout_height=fill_parent
                         TextView android:id=@+id/textview1
  android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
  android:text=this is a tab /

                         TextView android:id=@+id/textview2
  android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
  android:text=this is another
  tab /
                         TextView android:id=@+id/textview3
  android:layout_width=fill_parent
                                 android:layout_height=fill_parent 
  android:text=this is a third
  tab /
                 /FrameLayout
         /LinearLayout
  /TabHost

  -= Fragment Class Code =-

  package com.test.fragtest;

  import android.app.Fragment;
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TabHost;

  public class ContentPaneFragment extends Fragment {

         @Override
         public View onCreateView(LayoutInflater inflater, ViewGroup
  container,
                         Bundle savedInstanceState

[android-developers] Gallery Displays Every Image File

2011-04-13 Thread Stephen
LG Optimus M v2.2.1
I Have two of them, both with very similar set-ups, including
applications but my wife's Gallery app displays every image file
that's on her phone or sd card, including fonts. This is her second LG
Optimus M in 2 months and the first one did this as well but we
insisted on the replacement for a different issue.

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


[android-developers] Re: Android Layouts Are Horrible

2011-04-04 Thread Stephen Lebed
I've actually been very happy with the progress Google has made to the
layout tools.  It took a little while to get used to, but now I'm
finding it very easy to arrange and rearrange design elements.

Best,
Stephen


On Apr 3, 10:01 pm, grndvl1 grnd...@gmail.com wrote:
 Why is it I spend more time dealing with the layout of items than the
 actual coding of the program?  The Eclipse Graphical Layout tool
 really blows as it has a ton of errors and can't handle simple things
 like italic text in textview, scrollviews...  The layout parameters
 seem to be a hodge-podge of stuff thrown in there as an after thought,
 seems it wasn't really planned out.  They should have taken a lesson
 from Java's crappy Gridbag layout  and used or at least analyzed how
 Miglayout fixed many issues with Java GUI's.  I won't use any other
 layout manager other than Miglayout.  Anyway just venting here as I
 spent the last 1hr fixing something that should be so simple in a
 Scrollview/TableLayout/TableRow with ImageView and TextView in each
 row.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SSX released: Super Simple XML DOM-like API with simple XPath

2011-04-04 Thread Stephen Williams
Needed a fast (on Android), simple, small XML parsing library with a
great Java API.  So I wrote one.
Documentation at: http://javaglue.com/ssx
Code: https://code.google.com/p/super-simple-xml/
License (from me and my client): Apache 2.0

Let me know if you use it or have questions.

If you want much more painless Java-C++, for Android or just native
Java, then check out JavaGlue:
http://javaglue.com
https://code.google.com/p/javaglue/

Thanks,
Stephen
--
Stephen D. Williams s...@lig.net stephendwilli...@gmail.com LinkedIn:
http://sdw.st/in
V:650-450-UNIX (8649) V:866.SDW.UNIX V:703.371.9362 F:703.995.0407
AIM:sdw Skype:StephenDWilliams Yahoo:sdwlignet Resume: http://sdw.st/gres
Personal: http://sdw.st facebook.com/sdwlig twitter.com/scienteer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SSX released: Super Simple XML DOM-like API with simple XPath

2011-04-04 Thread Stephen Williams
Needed a fast (on Android), simple, small XML parsing library with a
great Java API.  So I wrote one.
Documentation at: http://javaglue.com/ssx
Code: https://code.google.com/p/super-simple-xml/
License (from me and my client): Apache 2.0

Let me know if you use it or have questions.

If you want much more painless Java-C++, for Android or just native
Java, then check out JavaGlue:
http://javaglue.com
https://code.google.com/p/javaglue/

Thanks,
Stephen
--
Stephen D. Williams s...@lig.net stephendwilli...@gmail.com LinkedIn:
http://sdw.st/in
V:650-450-UNIX (8649) V:866.SDW.UNIX V:703.371.9362 F:703.995.0407
AIM:sdw Skype:StephenDWilliams Yahoo:sdwlignet Resume: http://sdw.st/gres
Personal: http://sdw.st facebook.com/sdwlig twitter.com/scienteer

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

2011-03-23 Thread Stephen Cox
How can I help with translation? I can do an afrikaans android.

-- 
Stephen Cox

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Menu button/icon not showing up in Honeycomb

2011-03-08 Thread Stephen Lebed
In my app I'm calling onCreateOptionsMenu() which works as expected on
pre 3.0 devices.  When I run the app on the Xoom there isn't a menu
button displayed at the bottom of the screen to allow access to the
menu options.  Does anyone know how to force it to be displayed, or is
there something special I need to do to get the menu button to appear?

Thanks,
Stephen

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


[android-developers] Re: Menu button/icon not showing up in Honeycomb

2011-03-08 Thread Stephen Lebed
Thanks Dianne, you're a godsend!  I was targetting API11, so I'll go
ahead and make that change.

On Mar 8, 3:21 pm, Dianne Hackborn hack...@android.com wrote:
 As long as you don't target HC (API 11), you will get the menu button.  If
 you do target HC, there will not be a menu button.

 And what do you mean by saying you are calling onCreateOptionsMenu()?  You
 don't call that; it is called for you.









 On Tue, Mar 8, 2011 at 3:04 PM, Mark Murphy mmur...@commonsware.com wrote:
  On Tue, Mar 8, 2011 at 6:00 PM, Stephen Lebed srle...@gmail.com wrote:
   In my app I'm calling onCreateOptionsMenu() which works as expected on
   pre 3.0 devices.  When I run the app on the Xoom there isn't a menu
   button displayed at the bottom of the screen to allow access to the
   menu options.

  Are you sure? It looks like a miniature six-item options menu. It will
  appear as the right-most button in the roster of soft buttons on the
  left of the system bar.

   Does anyone know how to force it to be displayed, or is
   there something special I need to do to get the menu button to appear?

  No, it pretty much just works. This sample app, for example, shows an
  options menu and works fine on the XOOM:

 https://github.com/commonsguy/cw-android/tree/master/Menus/Inflation

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

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

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

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

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

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


[android-developers] Re: Menu button/icon not showing up in Honeycomb

2011-03-08 Thread Stephen Lebed
I am running the app fullscreen with no titlebar.  The bottom bar is
still visible.  I think you're referring to the action bar.

Thanks,
Stephen


On Mar 8, 5:16 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 Also make sure you don't remove the title bar because if you do that,
 you won't have access to your menu items at all.

 On Mar 9, 7:21 am, Dianne Hackborn hack...@android.com wrote:







  As long as you don't target HC (API 11), you will get the menu button.  If
  you do target HC, there will not be a menu button.

  And what do you mean by saying you are calling onCreateOptionsMenu()?  You
  don't call that; it is called for you.

  On Tue, Mar 8, 2011 at 3:04 PM, Mark Murphy mmur...@commonsware.com wrote:
   On Tue, Mar 8, 2011 at 6:00 PM, Stephen Lebed srle...@gmail.com wrote:
In my app I'm calling onCreateOptionsMenu() which works as expected on
pre 3.0 devices.  When I run the app on the Xoom there isn't a menu
button displayed at the bottom of the screen to allow access to the
menu options.

   Are you sure? It looks like a miniature six-item options menu. It will
   appear as the right-most button in the roster of soft buttons on the
   left of the system bar.

Does anyone know how to force it to be displayed, or is
there something special I need to do to get the menu button to appear?

   No, it pretty much just works. This sample app, for example, shows an
   options menu and works fine on the XOOM:

  https://github.com/commonsguy/cw-android/tree/master/Menus/Inflation

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

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

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

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

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

  - Show quoted text -

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


Re: [android-developers] Offer link to particular app in the market from my app?

2011-03-07 Thread Stephen Lau
Fire off a VIEW intent for: 
market://search?q=pname:com.google.zxing.client.android
and it'll auto-open the Market app to that app with a one-click button 
to install for the user to hit.


Tobiah wrote:

I have an app that depends on Barcode Scanner to do its work.
Right now, my app force closes if the Barcode Scanner program
is not installed.  I'd like to have my program offer a path
to install the other app as easily as possible.  Is there
any way I can do this, other than maybe opening a webview
with a market: href?

Thanks,

Tobiah



--
stephen lau | st...@grommit.com | http://whacked.net | @stevel

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

[android-developers] Re: Creating separate versions of apps for tablets

2011-03-04 Thread Stephen Lebed
The Motorola Xoom isn't a xlarge display device from what I understand

Does anyone know of another way to limit an application to just target
tablets, or just target phone?

Any help is greatly appreciated!

Stephen


On Mar 4, 7:10 am, davemac davemac...@gmail.com wrote:
 Use screen size and the supports-screens tag in your
 AndroidManifest.xml file. For tablets, you'd support xlarge. The
 Market will filter based on the device and your values.

 - dave

 On Mar 4, 1:21 am, Zsolt Vasvari zvasv...@gmail.com wrote:







  For now, you could set the targetSDK to  11 for the phone version and
  the minSDK and targetSDK = 11 for the tablet version.

  In the future this won't work as presumably the SDKs will merge at
  some point and both the phones and tablets will run a version  11.

  On Mar 4, 1:16 pm, Stephen Lebed srle...@gmail.com wrote:

   I wanted to know if there is a way to differentiate apps on the market
   between tablets and phone-like devices.  On the Apple platform,
   developers can create an ipad version and charge more for it verses
   their iphone version.

   I'd like to be able to do the same.  Is there a way to do this?  I
   tried setting the max sdk version, but then read that its no longer
   read after os2.01.

   Thanks,
   Stephen

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Creating separate versions of apps for tablets

2011-03-03 Thread Stephen Lebed
I wanted to know if there is a way to differentiate apps on the market
between tablets and phone-like devices.  On the Apple platform,
developers can create an ipad version and charge more for it verses
their iphone version.

I'd like to be able to do the same.  Is there a way to do this?  I
tried setting the max sdk version, but then read that its no longer
read after os2.01.

Thanks,
Stephen

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


[android-developers] Re: getHorizontalViewAngle() Question ?

2011-03-02 Thread Stephen Lebed
Its not available below 2.2.  That's the main reason my app only
supports 2.2 and up.  For it to be available, the device makers would
need to provide that information to the operating system.

Stephen Lebed
http://apps.mechnology.com


On Feb 28, 7:48 am, Nehal Mahmoud eng.pi...@gmail.com wrote:
 Hi all,

 I want to know how to get the horizontal view angel of the camera in
 the android versions lower than 2.2 ?,
 as the method getHorizontalViewAngle() in only supported starting from
 version 2.2.

 Thanks in advance.

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


[android-developers] NmeaListener not working in 2.3.3

2011-03-01 Thread Stephen
Dear all,
   I just upgrade my nexus one to android 2.3.3 yesterday, however after 
update the NmeaListener is not working anymore. Did google remove this api 
in 2.3.3?
Regards,
Stephen

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

2011-02-23 Thread Stephen Jungels
Either that, or separate repositories.

The alternative would be to create a more monolithic project with its
project root one level up, so it includes both folders in question.
That seems klunky.

On Wed, Feb 23, 2011 at 6:05 AM, Indicator Veritatis mej1...@yahoo.com wrote:
 So then how would both the existing project, and the library project
 be placed under version control? As separate project roots in the
 repository?

 On Feb 22, 1:04 pm, Stephen Jungels sjung...@gmail.com wrote:
 Probably the right solution would be to import the src folder
 separately into a library project, and add a reference to the library
 project to your existing project.  This would mirror what the designer
 was doing in the preferred style of Eclipse + Android.

 On Thu, Feb 17, 2011 at 1:50 PM, decades-softw...@freenet.de







 decades-softw...@freenet.de wrote:
  Hi,
  I'm a newbie with Eclipse and Android. I have a legacy project from an
  SVN repository which I could import and use under Eclipse Helios. Also
  changes inside and outside Eclipse are synchronized fine with the SVN.

  Now the problem: The project structure consists of a root directory,
  referring to a src path, which exists outside the root (i.e. on the
  same level as the root of the project is). I guess this has been
  arranged by the designer, because the src part has been referenced
  from different java projects for different platforms. I think this is
  not such a bad idea.

  However: Whatever I do I can't make Eclipse and SVN synchronize
  changes on files located in this outer directory. What do I have to
  do in order to make both aware of the outer parts, w/o being forced to
  change the file/dir structure completely?

  Kind 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

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

2011-02-23 Thread Stephen Jungels
The Honeycomb emulator is faster on my dev system than the preview
was, but it is highly sensitive to the emulated hardware.  I am using
1024 megabytes of emulated RAM and a 256 meg vm heap size and I still
see out of memory errors when the launcher tries to load wallpaper.

The AVD refuses to go above 1.5G or so of emulated RAM.

I can't comment on Eclipse pegging the CPU, it is about the same as before.

On Wed, Feb 23, 2011 at 6:54 AM, Reuben Scratton
reuben.scrat...@gmail.com wrote:
 I suspect Honeycomb emulator's performance is being crippled by every last
 pixel now having to go through a pure software OpenGL pipeline. That will
 have far more stages than the old 2D renderer had.
 If you ever ran an OpenGL ES app on older emulators, you'd see similar
 slowness... there is far more computation involved per pixel.
 As for building and deploying, I am having a lot of trouble with the new
 tools too... Win32 Eclipse Galileo here. Still investigating.

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

2011-02-22 Thread Stephen Jungels
Probably the right solution would be to import the src folder
separately into a library project, and add a reference to the library
project to your existing project.  This would mirror what the designer
was doing in the preferred style of Eclipse + Android.



On Thu, Feb 17, 2011 at 1:50 PM, decades-softw...@freenet.de
decades-softw...@freenet.de wrote:
 Hi,
 I'm a newbie with Eclipse and Android. I have a legacy project from an
 SVN repository which I could import and use under Eclipse Helios. Also
 changes inside and outside Eclipse are synchronized fine with the SVN.

 Now the problem: The project structure consists of a root directory,
 referring to a src path, which exists outside the root (i.e. on the
 same level as the root of the project is). I guess this has been
 arranged by the designer, because the src part has been referenced
 from different java projects for different platforms. I think this is
 not such a bad idea.

 However: Whatever I do I can't make Eclipse and SVN synchronize
 changes on files located in this outer directory. What do I have to
 do in order to make both aware of the outer parts, w/o being forced to
 change the file/dir structure completely?

 Kind 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] What name would get more attention

2011-02-22 Thread Stephen Jungels
If you personally like the physics theme, it can work, but a game
needs to be more character based, for example Genius Bike, featuring
an absent-minded professor who is sucked into a wormhole while riding
his little bike to the Institute for Advanced Studies one morning...


On Mon, Feb 21, 2011 at 9:22 PM, brian purgert brianpurge...@gmail.com wrote:
 My game is called space bike and i put it out for a day and good good
 reviews but i took it down because of low active installs, i had a friend
 play it and realized it was to hard for the average user, so i fixed it up
 and added alot of things to make is easyer.

 In my game you control gravity and make your way through physics mazes, it
 doesent actually look like space. More of like a tron grid. You have a bike
 like mx moto but its alot more interactive.

 So basically my question is should i name my bike game;space bike which it
 is currently or physics bike, or something else, i want people to see the
 name and try is out of course

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Re: Android Developers Group in Los Angeles/Ventura Area

2011-02-22 Thread Stephen Lebed
I'm in the Los Angeles area and willing to meet if anyone wants to
form a group.

Stephen Lebed
Developer


On Feb 19, 12:22 pm, Jay jay.suttirutt...@gmail.com wrote:
 Does anybody have any information on android developers group
 (something similar to Java Users Group - for developers)  in Los
 Angeles or Ventura area? Thanks.

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


[android-developers] List issues with Android devices here

2011-02-13 Thread Stephen Lebed
Hi All,

I wanted to start this thread to list problems people have discovered
writing their apps on various devices.  There are so many devices that
Android runs on, and its getting harder to track down problems when
one particular device isn't performing as expected.  Hopefully this
will help save programmers time when they test out their code.  I'll
start this thread with my own contribution to the cause.  Please add
to this list.


HTC DESIRE HD - In the current devices
Camera.Parameters.getHorizontalViewAngle(), get.VerticalViewAngle(),
and .getFocalLength() report -1 instead of a real value form the
cameras lens.

MOTOROLA DROID - It doesn't seem possible to have a 'headless' Camera
preview.  In other words, being able to capture a camera preview
without the need for a dedicated surface as in
SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS.  It does work on current
Motorola devices and HTC devices like the TMobile G2.

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


[android-developers] Re: Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-13 Thread Stephen Lebed
Hi Kim,

I've started a thread to list problems with devices.  Please consider
adding your experience to the list.

http://groups.google.com/group/android-developers/browse_thread/thread/501b5195e0cbc3e2



On Feb 13, 8:22 am, Kim kimknap...@gmail.com wrote:
 I have found tht when the Streak 7 goes to sleep, the last thing it
 does is issue an onDestroy() followed by an onCreate() to my app and
 then pauses the cpu shortly later. A look at logcat shows me that this
 is caused by Dell deciding to change the orientation before going to
 sleep, apparently so that it wakes up in the landscape mode by
 default. I have orientation fixed to portrait in my activities, but
 the Streak is ignoring this.
 Thought others might want to be aware of this.
 If anyone has a way to over ride this, let me know. I tried Overriding
 onConfigurationChange, but it is not being called when this happens.

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


[android-developers] Re: Autofocus callback not happening on HTC Desire HD

2011-02-11 Thread Stephen Lebed
Hi Marco,

I've been dealing with other issues with the HTC Desire HD myself.
For instance, the Camera.getHorizontalViewAngle, and
Camera.getFocalLength return -1 instead of proper lens values.  I've
already informed HTC about the issue, but I think its fallen on deaf
ears there.  I think HTC was sloppy with the Android integration on
that device.

Sorry I can't help your particular issue.

Best,
Stephen Lebed



On Feb 6, 7:14 am, Marco Massarelli marco.massare...@gmail.com
wrote:
 Hi all,

 I'm facing a problem with a camera application. The problem is that
 after I call autoFocus(callBack), the device doesn't callback.

 In the debug logs it's clear that the command was successful and the
 autofocus has started:

 02-06 15:40:44.305: DEBUG/QualcommCameraHardware(1218): autoFocus E
 02-06 15:40:44.305: DEBUG/QualcommCameraHardware(1218): autoFocus X
 02-06 15:40:44.315: DEBUG/QualcommCameraHardware(1218): runAutoFocus E
 02-06 15:40:44.315: DEBUG/QualcommCameraHardware(1218): af start (fd
 54)
 02-06 15:40:44.535: INFO/CameraService(1218): [Camera KPI] 1st preview
 frame

 After af start (fd 54) the method set as callback is never called.

 This DOESN'T always happen, it happens just in some cases, mainly when
 I try my best to make the autofocus hard (by placing a finger on the
 camera and remove it before autofocus completes).

 Does anyone have a suggestion? My application depends on the callback
 to take the picture, if I don't get the callback it never takes the
 picture.

 Thank you all for your support,

 Marco

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


[android-developers] Re: Programmatically Update Flash Setting (or any Camera.Parameters)

2011-02-10 Thread Stephen Lebed
Unless I dont understand the question correctly,
Camera.setParameters() should do what you need.

Hope this helps.

Stephen Lebed
Developer
http://apps.mechnology.com


On Feb 10, 9:28 am, Joe McCann joseph.is...@gmail.com wrote:
 I'm trying to avoid having to rewrite the Android source for the
 native camera app (as it is a cluster***k of code), but am curious as
 to the proper, most efficient away of being able to update the Camera
 Parameters AFTER the SurfaceView of the Camera has been created and
 opened.

 For example, if you have a button that toggles the setting of On, Off,
 or Auto for the Flash, this initial parameter value is set when the
 Camera is initialized (let's say Auto by default, if, of course, the
 device supports it).  If you want to switch it to Off, WHILE the
 current view is the instance of the Camera/SurfaceView, you press the
 button and it sets the new parameter to the camera to OFF;
 however, the CURRENT instance of the camera does not update it's
 camera settings, meaning if you take the picture the Auto flash
 setting is still enabled.

 Now, if you say launch a new Activity, like a Preferences screen, and
 then go back to the Camera view, the camera now has the OFF
 setting.  This clearly has to do with the surfaceChanged() method as
 it is grabbing the NEW camera parameters and updating the camera
 settings to reflect that.

 In a nutshell, I'm wondering if there is a way inside to update the
 CURRENT instance of the Camera and what a preferred approach would be.

 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


Re: [android-developers] custom volume control slider with the MediaPlayer

2011-02-08 Thread Stephen Lau
You could just use a Seekbar and hook up the listeners to 
AudioManager.setStreamVolume():
http://developer.android.com/reference/android/media/AudioManager.html#setStreamVolume(int, 
int, int)





DanielleM mailto:dmurkerso...@gmail.com
February 8, 2011 10:00 AM


Hello all:

In my app I an using a MediaPlayer object to play some streaming
audio. I would like to be able to display on the screen a volume
control slider. Can someone point me in the right direction for this?
Perhaps there is some volume object I can call and just adjust the
foreground and background colors of the slider, or do I need to build
this from scratch?

I'm not really sure the best way to tackle this obstacle. I'm
providing a link to an image of what i would like the final product to
look like. Hopefully this will help to demonstrate what I'm asking
about.

http://www.wusf.usf.edu/images/android_screen/android_app_comp.jpg

Thanks in advance for any help,
DMurkerson



--
stephen lau | st...@grommit.com | http://whacked.net | @stevel

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

[android-developers] Requirement of a SIP Client for Android

2011-02-02 Thread Stephen Antony
I am looking for an experienced Mobile application developer who can develop
or provide a Mobile SIP Client for the BlackBerry and Android Platforms with
the below features


• Making and receiving SIP calls
...
• Contacts (Integrated address book with “search” option)
• Loudspeaker
• Balance information* ( should fetch it from an XML File )
• Destination, rate* * ( should fetch it from an XML File )
• Time, call status logs
• Last calls log
• Redial
• Digits Interception (Dialer pops up once dialing from the phone's “Dial
pad” or choosing a number from the phone's “Contact list”)
• Support for G711u, G711a and GSM codecs.
• Connectivity over WIFI, EDGE or UMTS.

Thanks

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

[android-developers] Motorola Camera issue

2011-01-27 Thread Stephen Lebed
Hi All,

I'm frustrated to find out that my app works exactly as expected on
HTC devices, but not on Motorola devices.  I have a program that is
capturing the camera preview so I can process it.

Simply put,  onPreviewFrame is not being called on the Moto Droid, or
Droid X devices but is on my G2.  Does anyone have any insight on what
may be the problem?  I'm using the addCallbackBuffer, and
setPreviewCallbackWithBuffer functions to grab the preview.  The
preview size doesn't seem to make a difference.

There is nothing in Logcat that I can find that is preventing the
preview from starting.

My G2 is running 2.2
The Droids are running 2.2.1

Any help would be 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


Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Stephen Jungels
I've been tempted to drop 1.5, partly because it tends to be installed
on low-end devices where people will not have a very good experience
of my app, but recently my percentage of 1.5 users has gone up instead
of down on some apps.

There's a big difference between dropping (loyal) 1.5 users and never
having them in the first place, so for new apps my default assumption
is I will target 1.6+ or even 2.1+.

SJ

On Mon, Jan 17, 2011 at 8:52 AM, TreKing treking...@gmail.com wrote:
 On Mon, Jan 17, 2011 at 7:07 AM, String sterling.ud...@googlemail.com
 wrote:

 For my own apps, I don't have a problem supporting 1.5, and I figure that
 an extra 5% is nothing to sneeze at. But then, I've yet to run into anything
 that was really problematic for me to support on 1.5. Some of the resource
 handling is kind of annoying, but not really a big deal.
 If I had some core feature that I just couldn't make backward-compatible,
 then yes, I'd drop 1.5 too. But probably not until then, or until the
 install percentage drops a few more points.

 This. (Thanks for writing my post for me :-) )

 -
 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: Will no longer support Android 1.5

2011-01-17 Thread Stephen Jungels
My stats are from Google Analytics. If you use it and explain what you
are doing in your terms of service or license agreement, you are
likely to get at least a few comments from users who think you are
spying on them, but in some cases it is worth it because you have a
better picture of how your app is being used.

SJ

On Mon, Jan 17, 2011 at 10:37 AM, Brill Pappin br...@pappin.ca wrote:
 Thats fine, but doesn't give you any stats on your own app, which is
 very important for maintaining customer loyalty.

 We intend to make the company a truste name (not just the apps) in the
 market with quality product, so we really want to know what *our*
 users are doing.

 - Brill Pappin

 On Jan 17, 10:19 am, Laks laks.pendy...@gmail.com wrote:
 Is this what you are looking for?

 http://developer.android.com/resources/dashboard/platform-versions.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] Can't find Activity error

2011-01-13 Thread Stephen Jungels
On Wed, Jan 12, 2011 at 8:37 PM, John Lussmyer johnlussm...@gmail.com wrote:
 Should they?
 And which ones are you talking about?


I was talking about the name elements of your service and activity
definitions. A technique much like this works in my own code and the
only thing that jumps out as different about your manifest file is the
lack of fully-qualified class names.

(Referring to this page, under the heading Declaring class names:)
http://developer.android.com/guide/topics/manifest/manifest-intro.html

SJ

 On Wed, Jan 12, 2011 at 5:22 PM, Stephen Jungels sjung...@gmail.com wrote:

 Unless your android:name elements are fully qualified, they should
 begin with a period, should they not?



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

2011-01-12 Thread Stephen Jungels
Unless your android:name elements are fully qualified, they should
begin with a period, should they not?

On Wed, Jan 12, 2011 at 8:05 PM, John Lussmyer johnlussm...@gmail.com wrote:
 Didn't help.

 On Wed, Jan 12, 2011 at 4:59 PM, Mark Murphy mmur...@commonsware.com
 wrote:

 I'd get rid of the setPackage() call.


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] bindService() instantiating a second Service instance

2011-01-11 Thread Stephen Jungels
On Tue, Jan 11, 2011 at 2:31 PM, Anm andrew.n.marsh...@gmail.com wrote:

 When memory profiling my app, I've noticed that multiple instances of
 the same local service class are getting instantiated.  This is not my
 expectation from my interpretation of the APIs and service example
 code in the SDKs.

 My app is designed such that the service represents a data layer,
 handling all databases, networking, and some potential background
 operations when the Activity is not in the foreground.  The Activity
 is responsible for starting the service by calling bindService(..)
 during onResume(..).
   context.bindService( new Intent( context,  MyService.class),
 service_connection, Context.BIND_AUTO_CREATE );

It's not shown explicitly in the examples, but I have had better
results binding to my service in the activity's onCreate method.


 To allow the memory allocations of the UI/Activity while the Service
 continues (for a limited amount of time), the Activity call
 unBindService(..):
   context.unbindService( service_connection );

Never tried anything like this.

 To be clear, the Service does not call selfStop() right away.  Instead
 it notes the time of the last unbind and effectively sets a timer.
 This part of the code is working just fine.

My reading of the docs suggests that a service started by binding to
it will shut itself down right after it's last bound activity unbinds.
If you want the manual stop self to be required, you should start the
service explicitly before binding to it.

 Now, when I go in and out of the application, I find I'm binding to a
 new instance every time I resume the activity.  I assumed I would bind
 to the same Service object each time as long the Service did not stop
 itself or the process was shutdown for memory reasons.  However, my
 logs and the memory profiler do not show this to be the case.

 How can I guarantee my process only has one instance of my Service
 class instanciated, and that the Activity will rebind to existing
 Service upon Resume?

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

2011-01-10 Thread Stephen Jungels
If the image is cached in a format that is understood by the browser
(ie JPEG, PNG), you should be able to create a content provider that
will feed the image to the browser via a custom scheme.

On the other hand this could end up wasting a lot of memory so is
there a need to cache the image, rather than letting the WebView
handle that?

SJ

On Mon, Jan 10, 2011 at 2:59 PM, Neilz neilhorn...@gmail.com wrote:
 Perhaps I need to save the Bitmap somewhere on the device prior to
 calling my img src in the webview?

 I wouldn't want to use the SD card though, it would need to be
 internal to the app... and how would I refer to it from the src tag?

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

2011-01-10 Thread Stephen Jungels
Well then it sounds more like an HTML problem.  Maybe write out the
dynamic HTML and take a look at it in a text editor or a desktop
browser?

SJ

On Mon, Jan 10, 2011 at 3:52 PM, Neilz neilhorn...@gmail.com wrote:
 Well the reason I'm looking for a way around this is:

 The WebView loads the textual content, then a second or so later the
 image loads from the given URL. But when the image loads into the
 WebView, it screws up the text that is already on display. For some
 reason it makes it all garbled and unreadable. So I'm trying to think
 of a way to have the image ready before the WebView loads.

 On Jan 10, 8:42 pm, Stephen Jungels sjung...@gmail.com wrote:
 If the image is cached in a format that is understood by the browser
 (ie JPEG, PNG), you should be able to create a content provider that
 will feed the image to the browser via a custom scheme.

 On the other hand this could end up wasting a lot of memory so is
 there a need to cache the image, rather than letting the WebView
 handle that?

 SJ

 On Mon, Jan 10, 2011 at 2:59 PM, Neilz neilhorn...@gmail.com wrote:
  Perhaps I need to save the Bitmap somewhere on the device prior to
  calling my img src in the webview?

  I wouldn't want to use the SD card though, it would need to be
  internal to the app... and how would I refer to it from the src tag?

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

2011-01-03 Thread Stephen Jungels
Apparently:
http://android-developers.blogspot.com/2010/10/five-steps-to-future-hardware-happiness.html

There are also (or will be) the Wifi-only Galaxy Tab, and Google TV.


On Sun, Jan 2, 2011 at 8:47 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 Before, the official position was that all apps on the Market could
 assume that there will be phone capabilities on the user's device.

 Is this assumption officially out the window with the availability of
 the Android Market on the Samsung Galaxy Player?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] zoom and drag code registering but not actually working...

2011-01-02 Thread Stephen Pengilley
Hi all,

I have followed the example of using multi touch which can be found
here..http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-
android-2/1747?tag=mantle_skin;content

I am pretty sure I have included, in my code, all of the required
elements but, although the dumpEvent log shows that my touch gestures
are being picked up, and accurately, I can't move my picture around or
zoom in.

The only difference I can see is that my picture is loaded from the SD
card whereas in the example the picture is a drawable...

Here is my code


package com.pengilleys.fishingsnapz;

import java.io.FileNotFoundException;
import java.io.IOException;

import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.ContentResolver;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.MediaStore;
import android.util.FloatMath;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;

public class ImagePreview extends Activity implements OnTouchListener{
static final int PROGRESS_DIALOG = 0;
ProgressDialog progressDialog;
private Bundle extras;
protected static Bitmap bm;
protected DBAdapter db = new DBAdapter(ImagePreview.this);
Long id;
GetHandler handler = new GetHandler();

//Touch gesture related variables
Matrix matrix = new Matrix();
Matrix savedMatrix = new Matrix();

// Remember some things for zooming
PointF start = new PointF();
PointF mid = new PointF();

float oldDist = 0;

// We can be in one of these 3 states
static final int NONE = 0;
static final int DRAG = 1;
static final int ZOOM = 2;
int mode = NONE;

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

try{
getImage();

//start a progressdialog
showDialog(PROGRESS_DIALOG);
extras = getIntent().getExtras();
id = (Long) extras.get(DBAdapter.KEY_ROWID);

db.open();

bm = getImage();


//Log.e(ONCREATE,setImageBitmap=+bm.toString());
ImageView imageV =
(ImageView)findViewById(R.id.image_preview);
imageV.setOnTouchListener(this);
imageV.setImageBitmap(bm);
dismissDialog(PROGRESS_DIALOG);


}catch(Exception e){
Log.e(ONCREATE,e.toString());
}finally{
db.close();
}

}

//setup the progressdialog
protected Dialog onCreateDialog(int id) {
switch(id) {
case PROGRESS_DIALOG:
try{
progressDialog = new ProgressDialog(this);
progressDialog.setMessage(Loading snap...);
progressDialog.setOwnerActivity(this);
return progressDialog;
}catch(Exception e){
Log.e(ONCREATEDIALOG,e.toString());
}
default:
return null;
}

}

private class GetHandler extends Handler{
public void handleMessage(Message message){
ImagePreview.this.getImage();
}
}

public Bitmap getImage(){
try {
Uri uri=null;

Cursor c = db.fetchUri(id);
uri =
Uri.parse(c.getString(c.getColumnIndexOrThrow(DBAdapter.KEY_URI)));

ContentResolver cr = getContentResolver();

Bitmap bitmap = 
MediaStore.Images.Media.getBitmap(cr,uri);

return bitmap;
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
Log.e(GETIMAGE,e.toString());
return null;
} catch (IOException e) {
// TODO Auto-generated catch block
Log.e(GETIMAGE,e.toString());
return null;
}catch(Exception e){
Log.e(GETIMAGE,e.toString());
return null;
}

};

@Override
public boolean onTouch(View v, MotionEvent event) {
final String TAG = Touch;
// TODO 

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Stephen Lau
More than likely you're seeing something where a vendor (i.e. 
manufacturer or carrier) wanted that behaviour, and passed through click 
handling events from the expanded notification tray to the underlying 
notification, and thus its widgets.  As Dianne mentioned, this isn't 
part of the standard Android platform behaviour.. which is probably why 
your buttons/widgets inside of the notification aren't getting the click 
event propagated to them.


cheers,
steve




Manoj Maurya mailto:manojk.mau...@gmail.com
December 27, 2010 11:08 AM


I understand that but custom expanded view is part of standard platform.
What I fail to understand is that how it can be device dependant if OS 
is same? I am not getting any exception or error. Simply, click on 
buttons in side notifications is not working on few devices.

It might be resolution dependant, just a guess.

Thanks
Manoj Kumar Maurya

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 mailto:hack...@android.com
December 27, 2010 11:03 AM


Buttons and other widgets inside of notifications aren't supported in 
the standard platform.  If it happens to work on a particular device, 
that is an extra feature there but not something you can count on 
working elsewhere.


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


mkmand mailto:manojk.mau...@gmail.com
December 26, 2010 8:19 PM


I am stuck with same problem but in a more weird way,
I am learning android by writing an app which will show a custom 
notification with buttons. Now, when I install this program on my HTC 
HD2 with Android 2.2, click on button on notification does the 
intended action but when I install same program on mytouch 3g with 
Android 2.2.1, it doesn't work i.e. click on notification works but 
not on individual buttons.


Could you solve the issue?

One thing to notice is that, on mytouch 3g,I see  a small area on 
right side of my custom layout in notification, which is extra i.e. 
this small area is not getting covered by by the custom layout of the 
notification. and that is the area which gets highlighted when i click 
the button or anywhere on the notification.


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


Pink mailto:sivareddy.j...@gmail.com
December 20, 2010 1:56 AM


After looking at logcat i came to conclsion that RadioGroup can't be
used in notifcation.

This time i am using buttons and those appearing in notication window.

I have registered pending intents for each button in my notification.

But when i click any button, contentintent being raissed but not
button pending

is raised.


Is there any thing needs to be done to listen to user actions
notification button

actions except from registering pending intents with RemoteViews?

Thanks in advance...






--
stephen lau | st...@grommit.com | http://whacked.net | @stevel

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

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Stephen Lau

Slow maybe.
Correct definitely. :)
I don't use the emulator for day to day development, but I still run 
sanity checks against it for correctness to ensure my app runs on as 
many platforms as possible.


The only time I've been bitten by this is when vendor customisations 
totally deviate from standard Android platform APIs, such as Motorola 
with its very broken Motoblur Contacts API behaviour.


cheers,
steve




Manoj Maurya mailto:manojk.mau...@gmail.com
December 27, 2010 11:31 AM


Thanks for replying. Unfortunately, emulator is too slow to start n 
respond. So, I do use my phone for testing etc.


Thanks
Manoj Kumar Maurya

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 mailto:hack...@android.com
December 27, 2010 11:28 AM


The expanded notification is standard.  Being able to have clickable 
widgets inside is *not*.  Just don't do that.  It is not supported.


Try it on the emulator.  Does it work?  If not, that is the expected 
behavior.


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


Manoj Maurya mailto:manojk.mau...@gmail.com
December 27, 2010 11:08 AM


I understand that but custom expanded view is part of standard platform.
What I fail to understand is that how it can be device dependant if OS 
is same? I am not getting any exception or error. Simply, click on 
buttons in side notifications is not working on few devices.

It might be resolution dependant, just a guess.

Thanks
Manoj Kumar Maurya

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 mailto:hack...@android.com
December 27, 2010 11:03 AM


Buttons and other widgets inside of notifications aren't supported in 
the standard platform.  If it happens to work on a particular device, 
that is an extra feature there but not something you can count on 
working elsewhere.


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


mkmand mailto:manojk.mau...@gmail.com
December 26, 2010 8:19 PM


I am stuck with same problem but in a more weird way,
I am learning android by writing an app which will show a custom 
notification with buttons. Now, when I install this program on my HTC 
HD2 with Android 2.2, click on button on notification does the 
intended action but when I install same program on mytouch 3g with 
Android 2.2.1, it doesn't work i.e. click on notification works but 
not on individual buttons.


Could you solve the issue?

One thing to notice is that, on mytouch 3g,I see  a small area on 
right side of my custom layout in notification, which is extra i.e. 
this small area is not getting covered by by the custom layout of the 
notification. and that is the area which gets highlighted when i click 
the button or anywhere on the notification.


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


--
stephen lau | st...@grommit.com | http://whacked.net | @stevel

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android

Re: [android-developers] Changing Media Player Proxy - RTSP

2010-12-27 Thread Stephen Lau

Hi Damien,
Our app is also getting bit by this.  I've been in contact with 
some folks at Sprint regarding it, but no solution yet.  I haven't been 
able to find a workaround; were you able to find anything?


cheers,
steve




Dml mailto:damien.le...@gmail.com
December 13, 2010 4:59 PM


Hi,

I'm trying to fix an issue related to Sprint carrier for a rtsp
application.
I found that they are puting a proxy server when using the MediaPlayer
for rtsp calls.

 The root cause appears to be that the Android MediaPlayer is being
forced to proxy through a Sprint server (rtsp.vog.sprintpcs.com), even
though the MediaPlayer is actually connecting to a socket listening on
the handset itself (the url is of the form rtsp://127.0.0.1:31245/
audio.aac). Predictably, rtsp.vog.sprintpcs.com cannot connect to
this url, and the playback fails. 


I know that there is some trick to fix the issue on the devices by
changing the RTSP proxy manually. However I can't stick to this
solution and I really need to find out a way to do that in my
application.

Do you have any idea how the problem can be fix ?

Best Regards

Damien






--
stephen lau | st...@grommit.com | http://whacked.net | @stevel

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

[android-developers] Re: Camera preview not restarting after picture taken

2010-12-24 Thread Stephen Lebed
Hi Mark,

I've looked at your code, thanks for the link.  In my app I'm using
the new addcallbackwithbuffer and setpreviewcallbackwithbuffer
methods.

I'm using them to capture preview frames and process them.  I think
there may be a bug because the camera take picture routine is
stalling.  I suspect memory issues, but nothing is obvious in logcat.
I'm testing on a tmo G2.

Best,
Stephen

On Dec 23, 12:12 pm, Mark Murphy mmur...@commonsware.com wrote:
 Here is a sample project that does not suffer from this issue:

 https://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture

 If you see the same symptoms with this project, let me know what your device 
 is.


Hi


 On Thu, Dec 23, 2010 at 3:10 PM, Stephen Lebed srle...@gmail.com wrote:
  Has anyone come across this and found a solution?  I'm calling
  camera.startPreview() after the picture is taken, but the preview is
  frozen.

  Best,
  Stephen

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

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

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

2010-12-23 Thread Stephen Lebed
Is there an efficient way to modify a texture map that is bound to an
object?  I would like to draw graphics on a bitmap texture that would
update on an object automatically.

Any insight would be appreciated.


Stephen

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Camera preview not restarting after picture taken

2010-12-23 Thread Stephen Lebed
Has anyone come across this and found a solution?  I'm calling
camera.startPreview() after the picture is taken, but the preview is
frozen.

Best,
Stephen

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


[android-developers] Re: Your apps

2010-12-21 Thread Stephen Lebed
Instead of just jumping into a project, you should plan what you want
your app to do and what features you want to give it.  Write it out on
paper.  Flesh out all the details.  Learn the basics of programming
because a game engine will only get you so far.  Start simple and
build from there.  Also please don't release an app until its ready.
Its not about being perfect, it about being functional.  Make sure you
test it as throughly as possible.

There are already too many poorly written apps on the market.  Spend
the time to learn how to write a good solid app.  If you release a
bad, unfinished, unpolished app, it tarnishes anything you release
later.

Just my .02

Best,
Stephen


On Dec 20, 5:22 pm, brian purgert brianpurge...@gmail.com wrote:
 So I have some questions for you guys:
 What's apps have you made or are working on?
 How long it is take and also how to thought of the idea?
 What was the hardest problem you have overcame? And what problems are you
 still facing facing? Also anyother additional information maybe hints or
 tricks...

 My app doodle bike:
 I've been working on an app for about about two months now and I had the
 idea about a month before that and I tried to learn java but I'm the kind of
 person who just jumps into things and it was a pretty bad idea. So the game
 the game is called doodle bike and its not out yet. I got the idea from the
 iphone, much like stunt stick biker. I'm using emini physics delux edition
 it cost 750 usd and came with a world builder. I think I went with it
 because  I was a novice at the time and box2d looked intimidating, also the
 world builder helps alot. My hardest problem was with screen densities, and
 finding art so I ended up subscribing to shutterstock. Also my computer just
 broke so Im working on a pretty bad computer.
 my tip for making apps is to create in in hvga first(if your using a canvas)
 and also release your app as soon as you can and don't worry about it being
 perfect.

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

2010-12-20 Thread Stephen Jungels
Don't get *too* happy.

When AppBrain reports (for example) your install base in Italy, what
it is really reporting is a combination of your install base in Italy,
and AppBrain's install base in Italy. AppBrain is itself an Android
App, and the detailed stats it reports pretty much have to be
collected from the sample of your users who are also AppBrain users.

If you really need to know these things, you will get more accurate
results by installing your own analytics solution like Fleury or
Google Analytics.

--SJ

On Mon, Dec 20, 2010 at 2:35 PM, Brill Pappin br...@pappin.ca wrote:
 I gotta' say, that I'm happy I read this thread!

 I've claimed my apps, and I can now get a lot of data that I was
 missing from the Market... for instance I can now see that 60% of my
 users are on Android 2.2 and that the next largest install base after
 English is Italian (I never would have guessed).

 This is important information for what I'm working on!

 - Brill Pappin

 On Dec 20, 2:50 am, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Dec 19, 2010 at 5:14 PM, String sterling.ud...@googlemail.com 
 wrote:
  AppBrain is somebody's vision of what the Market should be, and it's not a
  bad one. The basic app information (name, description, etc) is pirated

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Re: Camera picture taking memory error

2010-12-18 Thread Stephen Lebed
Bumping this thread to see if anyone has an answer for this.

Thanks,
s


On Dec 14, 2:14 pm, Stephen Lebed srle...@gmail.com wrote:
 In the app I'm working on, I'm using Camera.addCallbackBuffer and
 Camera.setPreviewCallbackWithBuffer to control the camera preview.
 BTW, this has been one of the best fixes in Froyo yet!  No more GC
 anymore!

 I'm trying to take a picture, and sometimes it works, saving the image
 to the sd card, and sometimes it doesn't.  When it doesn't work, the
 preview is frozen, but the app is still running.  For instance, I can
 still call up the menu. So its not locking up the app at all.  I've
 tracked it down to a memory allocation issue I believe.  It seems that
 the camera is using the buffers from the preview to store the picture
 data.  I could be wrong about this.  I've upped the memory buffers
 used in the addCallbackBuffer, and it seems it fix the problem, but
 shouldn't there be a seperate buffer for the snapped picture data?

 Is there a way to allocate a buffer for the Camera.takePictureCallback
 routine to store the data into?
 Is there a better way to make sure the Camera has enough memory to use
 the addCallbackBuffers and take a full size photo?
 Is anyone else experiencing this problem using the camera preview
 buffers and taking a full size picture?

 Any help is greatly appreciated.

 Best,
 Stephen Lebed
 Developer of 'On The Level' and 'SL DigiSlate'

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

2010-12-17 Thread Stephen Lau
The only way to catch it is to define an activity in your 
AndroidManifest and have it handle the following intent filter:


intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter

Note that the user will be prompted when they hit home to select between 
all the activities that are capable of handling the main intent (namely, 
the bundled launcher, your app, etc.)


cheers,
steve




tamal mailto:bhattacharya.ta...@gmail.com
December 16, 2010 2:32 AM


Hi All,

I found out from the forum that overrding the HOME key is not possible
in android. I need to have my application to have complete control
over the device.
So I tried to write a broadcast receiver to listen to the HOME intent
but was not successful. Still on presssing the HOME button the Home
screen would launch.

The manifest is like:

receiver android:name=StartupIntentReceiver
intent-filter
action android:name=android.intent.action.MAIN/
category android:name=android.intent.category.HOME /
/intent-filter
/receiver

Could some one please help with the feasibility of this?



--
stephen lau | st...@grommit.com | http://whacked.net | @stevel

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

[android-developers] Re: ADT 9.0.0 preview

2010-12-15 Thread Stephen Lebed
+1 Thanks for trying to keep us in the loop!

Stephen Lebed


On Dec 15, 9:08 pm, TreKing treking...@gmail.com wrote:
 I would just like to say that after dealing with the Android Market where
 there is zero communication or support despite never-ending issues and
 complaints from both users and developers, it's absolutely refreshing to see
 how hard you're working to improve the developer tools, resolve all the
 recent issues, and keep us informed.

 So THANK YOU and keep up the good work!

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/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


  1   2   3   >