[android-developers] Re: Android 2.2 and 7 inch development

2011-08-20 Thread Ash
Just had to read the information on SDK online. In case someone else runs in 
to this issue, you need to have the following in AndroidManifest.xml from
http://developer.android.com/guide/topics/manifest/supports-screens-element.html

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

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

[android-developers] Android adapter returning LinearLayout

2011-08-20 Thread Snowak
I have a custom adapter for ListView and I need to return LinearLayout
from getView(). The reason I'm doing it is that I have custom
component which extends LinearLayout and need to be created from code.
The problem is that if I return any LinearLayout from getView(), the
application crashes. How can I get it working? I can't inflate the
View from xml, everything has to be done via code.

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

2011-08-20 Thread Sivaprakash
Hi

I want to create a menu as if shown in the below image. Is it a context menu
or something special to attach along with the button which is clicked.




-- 
- Prakash.

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

[android-developers] Re: I need a simple android application that can view and create excel spreadsheets

2011-08-20 Thread martypantsROK
I use jxlapi - very easy to use.

On Aug 20, 1:56 pm, vineeshkc kcvine...@gmail.com wrote:
 hai

 I need a simple android application that can view and create excel
 spreadsheets

 any  idea or suggestion helpful to me pls

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


[android-developers] Android ebooks

2011-08-20 Thread Jupiterz
Hi everyone,

Can anyone share Android e books which i can download.

Many thanks

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


[android-developers] Re: Menu

2011-08-20 Thread skink


On Aug 20, 8:41 am, Sivaprakash sivaprakashshanmu...@gmail.com
wrote:
 Hi

 I want to create a menu as if shown in the below image. Is it a context menu
 or something special to attach along with the button which is clicked.

 --
 - Prakash.

  menu.png
 10KViewDownload


See:

http://developer.android.com/reference/android/widget/PopupWindow.html

pskink

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

2011-08-20 Thread vijayakumar M
hi

check this url
http://iamvijayakumar.blogspot.com/2011/01/android-tutorial-free-download-pdf.html


On Sat, Aug 20, 2011 at 12:32 PM, Jupiterz jupiterfo...@hotmail.com wrote:

 Hi everyone,

 Can anyone share Android e books which i can download.

 Many thanks

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




-- 




Nobody can go back and start a new beginning, but anyone can start today
and make a new ending
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/

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

[android-developers] Re: Android adapter returning LinearLayout

2011-08-20 Thread skink


Snowak wrote:
 I have a custom adapter for ListView and I need to return LinearLayout
 from getView(). The reason I'm doing it is that I have custom
 component which extends LinearLayout and need to be created from code.
 The problem is that if I return any LinearLayout from getView(), the
 application crashes. How can I get it working? I can't inflate the
 View from xml, everything has to be done via code.

 Thanks

logcat?

pskink

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

2011-08-20 Thread Appaholics
That book is by Mark Murphy. Don't use pirated links. Get it from him if you
want it.

On Sat, Aug 20, 2011 at 12:38 PM, vijayakumar M iamvijayaku...@gmail.comwrote:

 hi

 check this url

 http://iamvijayakumar.blogspot.com/2011/01/android-tutorial-free-download-pdf.html



 On Sat, Aug 20, 2011 at 12:32 PM, Jupiterz jupiterfo...@hotmail.comwrote:

 Hi everyone,

 Can anyone share Android e books which i can download.

 Many thanks

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




 --




 Nobody can go back and start a new beginning, but anyone can start today
 and make a new ending
 -
 Thanks,
 Regards,
 νιנαソαkum@r M
 BloG:http://iamvijayakumar.blogspot.com/





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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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

Re: [android-developers] Re: I need a simple android application that can view and create excel spreadsheets

2011-08-20 Thread vineeshkc
hi

thaks all of you for valuable response

actulaay i am trying to develop android applicaton
that  should be compatible with excel functions and include view,write,save
to folder, delete, click any cell to enter edit mode, and click to email as
attachment
thats my requirement



On Sat, Aug 20, 2011 at 12:23 PM, martypantsROK martyg...@gmail.com wrote:

 I use jxlapi - very easy to use.

 On Aug 20, 1:56 pm, vineeshkc kcvine...@gmail.com wrote:
  hai
 
  I need a simple android application that can view and create excel
  spreadsheets
 
  any  idea or suggestion helpful to me pls

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: I need a simple android application that can view and create excel spreadsheets

2011-08-20 Thread Appaholics
Then why don't you Google the bits and pieces to make your app? We can help
you with a specific problem, not write the entire app. (Unless you are
paying us.)

Thanks

On Sat, Aug 20, 2011 at 1:53 PM, vineeshkc kcvine...@gmail.com wrote:

 hi

 thaks all of you for valuable response

 actulaay i am trying to develop android applicaton
 that  should be compatible with excel functions and include view,write,save
 to folder, delete, click any cell to enter edit mode, and click to email as
 attachment
 thats my requirement



 On Sat, Aug 20, 2011 at 12:23 PM, martypantsROK martyg...@gmail.comwrote:

 I use jxlapi - very easy to use.

 On Aug 20, 1:56 pm, vineeshkc kcvine...@gmail.com wrote:
  hai
 
  I need a simple android application that can view and create excel
  spreadsheets
 
  any  idea or suggestion helpful to me pls

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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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

Re: [android-developers] Re: I need a simple android application that can view and create excel spreadsheets

2011-08-20 Thread vineeshkc
hai   Appaholics

i am not asking to develop the application

simply asked any Appaholics
is any api like jxl.jar is available


On Sat, Aug 20, 2011 at 2:05 PM, Appaholics raghavs...@appaholics.in wrote:

 Then why don't you Google the bits and pieces to make your app? We can help 
 you with a specific problem, not write the entire app. (Unless you are paying 
 us.)
 Thanks

 On Sat, Aug 20, 2011 at 1:53 PM, vineeshkc kcvine...@gmail.com wrote:

 hi

 thaks all of you for valuable response

 actulaay i am trying to develop android applicaton
 that  should be compatible with excel functions and include view,write,save 
 to folder, delete, click any cell to enter edit mode, and click to email as 
 attachment
 thats my requirement



 On Sat, Aug 20, 2011 at 12:23 PM, martypantsROK martyg...@gmail.com wrote:

 I use jxlapi - very easy to use.

 On Aug 20, 1:56 pm, vineeshkc kcvine...@gmail.com wrote:
  hai
 
  I need a simple android application that can view and create excel
  spreadsheets
 
  any  idea or suggestion helpful to me pls

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


 --
 --
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles 
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I need a simple android application that can view and create excel spreadsheets

2011-08-20 Thread Appaholics
http://www.vogella.de/articles/JavaExcel/article.html

On Sat, Aug 20, 2011 at 3:04 PM, vineeshkc kcvine...@gmail.com wrote:

 hai   Appaholics

 i am not asking to develop the application

 simply asked any Appaholics
 is any api like jxl.jar is available


 On Sat, Aug 20, 2011 at 2:05 PM, Appaholics raghavs...@appaholics.in
 wrote:
 
  Then why don't you Google the bits and pieces to make your app? We can
 help you with a specific problem, not write the entire app. (Unless you are
 paying us.)
  Thanks
 
  On Sat, Aug 20, 2011 at 1:53 PM, vineeshkc kcvine...@gmail.com wrote:
 
  hi
 
  thaks all of you for valuable response
 
  actulaay i am trying to develop android applicaton
  that  should be compatible with excel functions and include
 view,write,save to folder, delete, click any cell to enter edit mode, and
 click to email as attachment
  thats my requirement
 
 
 
  On Sat, Aug 20, 2011 at 12:23 PM, martypantsROK martyg...@gmail.com
 wrote:
 
  I use jxlapi - very easy to use.
 
  On Aug 20, 1:56 pm, vineeshkc kcvine...@gmail.com wrote:
   hai
  
   I need a simple android application that can view and create excel
   spreadsheets
  
   any  idea or suggestion helpful to me pls
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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
 
 
  --
  --
  Raghav Sood
  CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
  http://www.raghavsood.com/
  https://market.android.com/developer?pub=Appaholics
  http://www.appaholics.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

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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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] NaveenShrivastva wants to chat

2011-08-20 Thread NaveenShrivastva
---

NaveenShrivastva wants to stay in better touch using some of Google's
coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-47af872433-f815ac997e-Kz_xY2H8d_0E3xgOClAaTb2m6r8
You'll need to click this link to be able to chat with NaveenShrivastva.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with NaveenShrivastva, visit:
http://mail.google.com/mail/a-47af872433-f815ac997e-Kz_xY2H8d_0E3xgOClAaTb2m6r8

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: I need a simple android application that can view and create excel spreadsheets

2011-08-20 Thread vineeshkc
hi

thanks dear Appaholics

On Sat, Aug 20, 2011 at 3:08 PM, Appaholics raghavs...@appaholics.in wrote:
 http://www.vogella.de/articles/JavaExcel/article.html

 On Sat, Aug 20, 2011 at 3:04 PM, vineeshkc kcvine...@gmail.com wrote:

 hai   Appaholics

 i am not asking to develop the application

 simply asked any Appaholics
 is any api like jxl.jar is available


 On Sat, Aug 20, 2011 at 2:05 PM, Appaholics raghavs...@appaholics.in
 wrote:
 
  Then why don't you Google the bits and pieces to make your app? We can
  help you with a specific problem, not write the entire app. (Unless you are
  paying us.)
  Thanks
 
  On Sat, Aug 20, 2011 at 1:53 PM, vineeshkc kcvine...@gmail.com wrote:
 
  hi
 
  thaks all of you for valuable response
 
  actulaay i am trying to develop android applicaton
  that  should be compatible with excel functions and include
  view,write,save to folder, delete, click any cell to enter edit mode, and
  click to email as attachment
  thats my requirement
 
 
 
  On Sat, Aug 20, 2011 at 12:23 PM, martypantsROK martyg...@gmail.com
  wrote:
 
  I use jxlapi - very easy to use.
 
  On Aug 20, 1:56 pm, vineeshkc kcvine...@gmail.com wrote:
   hai
  
   I need a simple android application that can view and create excel
   spreadsheets
  
   any  idea or suggestion helpful to me pls
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
  android-developers@googlegroups.com
  To unsubscribe from this group, 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
 
 
  --
  --
  Raghav Sood
  CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
  required to have complete control)
  http://www.raghavsood.com/
  https://market.android.com/developer?pub=Appaholics
  http://www.appaholics.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

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


 --
 --
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.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

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

2011-08-20 Thread Mark Murphy
Those books are pirated (AFAIK), but neither the Sams' title nor _Pro
Android_ are mine.

Anyone can get free older copies of my books straight off my Web site:
http://commonsware.com. Click on a book title and choose the Four-to-Free
Guarantee tab.

On Sat, Aug 20, 2011 at 3:53 AM, Appaholics raghavs...@appaholics.inwrote:

 That book is by Mark Murphy. Don't use pirated links. Get it from him if
 you want it.


 On Sat, Aug 20, 2011 at 12:38 PM, vijayakumar M 
 iamvijayaku...@gmail.comwrote:

 hi

 check this url

 http://iamvijayakumar.blogspot.com/2011/01/android-tutorial-free-download-pdf.html



 On Sat, Aug 20, 2011 at 12:32 PM, Jupiterz jupiterfo...@hotmail.comwrote:

 Hi everyone,

 Can anyone share Android e books which i can download.

 Many thanks

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




 --




 Nobody can go back and start a new beginning, but anyone can start today
 and make a new ending
 -
 Thanks,
 Regards,
 νιנαソαkum@r M
 BloG:http://iamvijayakumar.blogspot.com/





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




 --
 --
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.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




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

_The Busy Coder's Guide to Android Development_ Version 3.6 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

Re: [android-developers] Android ebooks

2011-08-20 Thread Appaholics
Sorry I mixed up the two different eBook link threads that are recent. Meant
to post this on the other one.

Thanks

On Sat, Aug 20, 2011 at 3:27 PM, Mark Murphy mmur...@commonsware.comwrote:

 Those books are pirated (AFAIK), but neither the Sams' title nor _Pro
 Android_ are mine.

 Anyone can get free older copies of my books straight off my Web site:
 http://commonsware.com. Click on a book title and choose the Four-to-Free
 Guarantee tab.

 On Sat, Aug 20, 2011 at 3:53 AM, Appaholics raghavs...@appaholics.inwrote:

 That book is by Mark Murphy. Don't use pirated links. Get it from him if
 you want it.


 On Sat, Aug 20, 2011 at 12:38 PM, vijayakumar M iamvijayaku...@gmail.com
  wrote:

 hi

 check this url

 http://iamvijayakumar.blogspot.com/2011/01/android-tutorial-free-download-pdf.html



 On Sat, Aug 20, 2011 at 12:32 PM, Jupiterz jupiterfo...@hotmail.comwrote:

 Hi everyone,

 Can anyone share Android e books which i can download.

 Many thanks

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




 --




 Nobody can go back and start a new beginning, but anyone can start today
 and make a new ending
 -
 Thanks,
 Regards,
 νιנαソαkum@r M
 BloG:http://iamvijayakumar.blogspot.com/





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




 --
 --
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.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




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

 _The Busy Coder's Guide to Android Development_ Version 3.6 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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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: Dialog problems on orientation change

2011-08-20 Thread Snowak
Sorry for double posting, but there's one more thing that bothers me
regarding this problem. Dialog requires to pass Activity as a context,
but when changing screen orientation that activity is destroyed. How
can it use the cached dialog with invalid context? Is it setting it to
the new one?

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

2011-08-20 Thread Kostya Vasilyev
The actual dialog objects get destroyed, and re-created around the time 
of onRestoreInstanceState in the new activity instance (causing 
onCreateDialog / onPrepareDialog to be called).


http://www.google.com/codesearch#uX1GffpyOZk/core/java/android/app/Activity.javaq=Activity%20package:android%20lang:%5Ejava$type=csl=854 
http://www.google.com/codesearch#uX1GffpyOZk/core/java/android/app/Activity.javaq=Activity%20package:android%20lang:%5Ejava$type=csl=854


-- Kostya

20.08.2011 14:04, Snowak пишет:

Sorry for double posting, but there's one more thing that bothers me
regarding this problem. Dialog requires to pass Activity as a context,
but when changing screen orientation that activity is destroyed. How
can it use the cached dialog with invalid context? Is it setting it to
the new one?



--
Kostya Vasilyev

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

2011-08-20 Thread rajiv
The problem is
switch (e.getAction())
{
case MotionEvent.ACTION_DOWN:
x=e.getX();
y=e.getY();
requestRender();
break;
case MotionEvent.ACTION_UP:
a=e.getX();
b=e.getY();
requestRender();
break;
}


Here the value of X and y and a  b are same but when it is Action_up
the co-ordinate of X Y  ab  should be different  Please help me

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

2011-08-20 Thread rajiv


Hi I am facing a similar problem what i am doing in my application is
I am trying to move the disc from one place to another place

switch (e.getAction())
{
case MotionEvent.ACTION_DOWN:
x=e.getX();
y=e.getY();
requestRender();
break;
case MotionEvent.ACTION_UP:
a=e.getX();
b=e.getY();
requestRender();
break;
}


but the problem is the value of x y  a.b are equall so trhe disc is
not moving at all it is blinking and the disc is coming in the same
place please help me

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

2011-08-20 Thread Snowak
So why does the Drawable fail to repeat? Looks like the problem lies
in restoring the dialog before whole layout is initialized.. which is
quite weird. Is there a way to retrieve the list of opened dialogs
associated to current Activity?

On 20 Sie, 12:11, Kostya Vasilyev kmans...@gmail.com wrote:
 The actual dialog objects get destroyed, and re-created around the time
 of onRestoreInstanceState in the new activity instance (causing
 onCreateDialog / onPrepareDialog to be called).

 http://www.google.com/codesearch#uX1GffpyOZk/core/java/android/app/Ac...
 http://www.google.com/codesearch#uX1GffpyOZk/core/java/android/app/Ac...

 -- Kostya

 20.08.2011 14:04, Snowak пишет:

  Sorry for double posting, but there's one more thing that bothers me
  regarding this problem. Dialog requires to pass Activity as a context,
  but when changing screen orientation that activity is destroyed. How
  can it use the cached dialog with invalid context? Is it setting it to
  the new one?

 --
 Kostya Vasilyev

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


[android-developers] How to check for free RAM memory available

2011-08-20 Thread Pradeep
Hi All,

What is the best way to check for free RAM memory available for apps ?

adb shell top gives a much lesser value as it does not exclude the
memory being used for caching.

What is the free memory value that Advanced Task Manager gives ?

Regards,
Pradeep

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


[android-developers] Updating UI from external

2011-08-20 Thread Ash
Hi All,

I realize that this question of mine has already been asked before (probably 
not in the same context but similar). However, even after reading a number 
of forum threads and looking at online examples, I am still not clear. I 
hope one of you can guide me.

Here is the issue that I am facing. I have an activity which has a button. 
This button needs to be enabled/disabled depending on an external condition. 
We have a 3rd party library which has an observer class.

So basically in my android application, I have created a new class which 
extends this 3rd party observer class. Code snippet as follow:

class myObserver extends third.party.observer
{
@Override
public void onConnect()
{
// when this function is called I wish to enable the button on my 
UI.
}

@Override
public void onDisconnect()
{
// when this function is called I wish to disable the button on my 
UI.
}
} 

In my activity class, I create a new myObserver object and register it for 
events from our third party library as follow:
public class myActivity extends Activity
{
private static myObserver tester = new myObserver()

@Override
public void onCreate(Bundle savedInstanceState)
{


third_party_registerObserverFunction(tester)
}
}

My question is how can use myObserver class to update the button in 
'myActivity'.
The function 'onConnect' and 'onDisconnect' can be called at any time and I 
don't wish to implement polling (or timer) to check for variable status.

Please advice.

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] Updating UI from external

2011-08-20 Thread Mark Murphy
On Sat, Aug 20, 2011 at 7:15 AM, Ash anan...@gmail.com wrote:
 My question is how can use myObserver class to update the button in
 'myActivity'.

Step #1: have MyObserver hold onto an instance of MyActivity

Step #2: have MyObserver call methods on the MyActivity instance

 The function 'onConnect' and 'onDisconnect' can be called at any time and I
 don't wish to implement polling (or timer) to check for variable status.

If there are concerns about those methods being called on background
threads, use runOnUiThread on MyActivity to force the UI update work
to be done on the main application thread.

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

_The Busy Coder's Guide to Android Development_ Version 3.6 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


Re: [android-developers] Updating UI from external

2011-08-20 Thread Ash
Hi Mark,
Thanks for the prompt reply. 
The onConnect and onDisconnect method will be called by background threads 
(running in the third party library). Hence I will have to take the 
runOnUIThread approach. 

I will try to look for examples in this. If you know of any site that gives 
an example of runOnUIThread and you can share that link it will be much 
appreciated.

Thanks

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

Re: [android-developers] Updating UI from external

2011-08-20 Thread Ash
Assuming runOnUIThread is equivalent to AsyncTasks
http://developer.android.com/reference/android/os/AsyncTask.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

Re: [android-developers] Updating UI from external

2011-08-20 Thread Mark Murphy
On Sat, Aug 20, 2011 at 7:38 AM, Ash anan...@gmail.com wrote:
 Assuming runOnUIThread is equivalent to AsyncTasks
 http://developer.android.com/reference/android/os/AsyncTask.html

AsyncTask is a class. runOnUiThread() is a method. You pass a Runnable
to runOnUiThread(), and if you are on a background thread, the
Runnable is posted to the main application thread's work queue for
eventual processing. Whatever is inside the run() method of the
Runnable is guaranteed to run on the main application thread.

For example, here is a listener from an AIDL-defined remote service
that uses runOnUiThread() to ensure that the events are passed to the
activity on the main application thread:

private final IScriptResult.Stub callback=new IScriptResult.Stub() {
public void success(final String result) {
  runOnUiThread(new Runnable() {
public void run() {
  successImpl(result);
}
  });
}

public void failure(final String error) {
  runOnUiThread(new Runnable() {
public void run() {
  failureImpl(error);
}
  });
}
  };

This is an instance of an anonymous inner class of the activity
itself, so successImpl() and failureImpl() are methods on the
activity.

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

_The Busy Coder's Guide to Android Development_ Version 3.6 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] No accelerated colorspace conversion found from %s to %s. FFMpeg android

2011-08-20 Thread Naveen
No accelerated colorspace conversion found from %s to %s. facing this
issue in  FFMpeg android.please help me.

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

2011-08-20 Thread Goutom
Hi Treking
This is not the answer.


On Fri, Aug 19, 2011 at 5:45 PM, TreKing treking...@gmail.com wrote:

 On Fri, Aug 19, 2011 at 7:41 PM, Goutom goutom.sust@gmail.com wrote:

 Any help?


 Use the adapter that backs the listview.


 -
 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

Re: [android-developers] ListView items

2011-08-20 Thread Mark Murphy
On Fri, Aug 19, 2011 at 8:41 PM, Goutom goutom.sust@gmail.com wrote:
 I want to get all child of a listview.

Why?

                 int count = listview.getAdapter().getCount();

This is not the number of children of the ListView. getChildCount() on
ListView is the number of children of the ListView.

 for (int i = 0; i  count; ++i) {
 View row = (View) listview.getChildAt(i); // this line return null when
 the view is not in focus is listview.
 CheckBox check = (CheckBox) row.findViewById(R.id.AppCheckBox);
 if (check.isChecked()) {
 // some code
 } else
 // some code
 }
 I have 10 row in listview, 8 in focus.

No, you have 8 rows in your ListView. Your adapter might have 10
items, but you only have 8 rows in the ListView.

 After looping 8 times it gives null for View row.

Of course. That's what you wrote.

If you didn't want it to crash, do not compare apples (number of items
in the adapter) to oranges (number of children of the ListView).

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

_The Busy Coder's Guide to Android Development_ Version 3.6 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] how can i get the data created by function openDatabase from the webview?

2011-08-20 Thread 李白|字一日
hello everyone,

i have a problem in retrieving data stored in webview by using html
database.
and it is working perfectly on the html page.

as the application involves, there is a demand that i get the stored data
from the webview.

after investigating into the sdk, i didn't find a way to get the data,

because the webview database is named privately with names like
0001.db
and in directories like
file__0.

i only set the database path by the following code:

databasePath = this.getApplicationContext()
.getDir(database, Context.MODE_PRIVATE).getPath();
settings.setDatabasePath(databasePath);

which is different from the 0001.db file name, and file__0
directory name.

so i can get the database data using given apis?

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] DDMS - Sysinfo

2011-08-20 Thread Pradeep
Hi All,

On my device DDMS-Sysinfo-Memory Usage shows a pie chart with very
large section named Inactive

Any idea what this refers to ? How is it different from free memory ?

Regards,
Pradeep

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can i get the data created by function openDatabase from the webview?

2011-08-20 Thread Mark Murphy
On Sat, Aug 20, 2011 at 8:18 AM, 李白|字一日 calid...@gmail.com wrote:
 hello everyone,
 i have a problem in retrieving data stored in webview by using html
 database.
 and it is working perfectly on the html page.
 as the application involves, there is a demand that i get the stored data
 from the webview.
 after investigating into the sdk, i didn't find a way to get the data,
 because the webview database is named privately with names like
 0001.db
 and in directories like
 file__0.
 i only set the database path by the following code:
     databasePath = this.getApplicationContext()
         .getDir(database, Context.MODE_PRIVATE).getPath();
     settings.setDatabasePath(databasePath);
 which is different from the 0001.db file name, and file__0
 directory name.
 so i can get the database data using given apis?

I doubt it.

Rather than having the JavaScript use an HTML database, you should
have the JavaScript call an API your application exposes to the
WebView via addJavascriptInterface(). This will allow you to keep all
your business rules in the Java code, with a side benefit of being
able to consistently use SQLiteOpenHelper and such for accessing the
database.

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

_The Busy Coder's Guide to Android Development_ Version 3.6 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


Re: [android-developers] Re: Dialog problems on orientation change

2011-08-20 Thread Kostya Vasilyev
There really isn't restoring of dialogs - more like recreation of 
dialogs.


As such, it goes through your new activity's onCreateDialog after the 
orientation change.


You could try loading the drawable and setting it into the dialog layout 
from code. Perhaps calling setTileMode{X/Y/XY} along the way.


-- Kostya

20.08.2011 15:06, Snowak пишет:

So why does the Drawable fail to repeat? Looks like the problem lies
in restoring the dialog before whole layout is initialized.. which is
quite weird. Is there a way to retrieve the list of opened dialogs
associated to current Activity?


--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can i get the data created by function openDatabase from the webview?

2011-08-20 Thread 李白|字一日
thanks,

it seems the sqlite database opening mechanism is very complicated in
android.

even if i specify the file name to 0001.db like the
followings:

  1. path = path + /file__0/0001.db;
  2. path = path + /../databases/webview.db;
  3. path = path + /Databases.db;

i can see all these give error messages.
1, 3 declare the local table is missing.
2 can be initialized but not the database where the webview data is stored.

it is every different from the origin api from sqlite c;

because my application is based on webview,
it is not a good way to change it again to java api based which may cause
the data lose for users.

and web apps will be my focus later.

2011/8/20 Mark Murphy mmur...@commonsware.com

 On Sat, Aug 20, 2011 at 8:18 AM, 李白|字一日 calid...@gmail.com wrote:
  hello everyone,
  i have a problem in retrieving data stored in webview by using html
  database.
  and it is working perfectly on the html page.
  as the application involves, there is a demand that i get the stored data
  from the webview.
  after investigating into the sdk, i didn't find a way to get the data,
  because the webview database is named privately with names like
  0001.db
  and in directories like
  file__0.
  i only set the database path by the following code:
  databasePath = this.getApplicationContext()
  .getDir(database, Context.MODE_PRIVATE).getPath();
  settings.setDatabasePath(databasePath);
  which is different from the 0001.db file name, and
 file__0
  directory name.
  so i can get the database data using given apis?

 I doubt it.

 Rather than having the JavaScript use an HTML database, you should
 have the JavaScript call an API your application exposes to the
 WebView via addJavascriptInterface(). This will allow you to keep all
 your business rules in the Java code, with a side benefit of being
 able to consistently use SQLiteOpenHelper and such for accessing the
 database.

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

 _The Busy Coder's Guide to Android Development_ Version 3.6 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can i get the data created by function openDatabase from the webview?

2011-08-20 Thread Mark Murphy
On Sat, Aug 20, 2011 at 9:15 AM, 李白|字一日 calid...@gmail.com wrote:
 because my application is based on webview,
 it is not a good way to change it again to java api based which may cause
 the data lose for users.
 and web apps will be my focus later.

Then don't access it from the Java code. Use loadUrl(javascript:...)
from Java to execute some JavaScript that calls an API that pushes the
data from the WebView back into your Android app via an interface
defined via addJavascriptInterface().

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

_The Busy Coder's Guide to Android Development_ Version 3.6 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] Text gone when clicked

2011-08-20 Thread ndiiie 90
Hi guys,

in many applications that are published out there,

I see that some of them in editText of password and username, there are some
text with gray color (usually) and when user clicked it, the text is gone..
what is the attribute of editText to do it?

Or i must code it manually to response user clicked, i delete the text
inside it??


Thanks,

Rendy

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

2011-08-20 Thread Mark Murphy
On Sat, Aug 20, 2011 at 10:59 AM, ndiiie 90 rnd...@gmail.com wrote:
 I see that some of them in editText of password and username, there are some
 text with gray color (usually) and when user clicked it, the text is gone..
 what is the attribute of editText to do it?

android:hint

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

_The Busy Coder's Guide to Android Development_ Version 3.6 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


Re: [android-developers] how can i get the data created by function openDatabase from the webview?

2011-08-20 Thread 李白|字一日
thanks,

it seems a quite reasonable way by now.

it adds two questions to me:

1. how to invoke javascript only without loading a webview?
2. how to pass a callback to javascript and make java invocation
synchronous?

would you please give me some advise or hints, Mark?

2011/8/20 Mark Murphy mmur...@commonsware.com

 On Sat, Aug 20, 2011 at 9:15 AM, 李白|字一日 calid...@gmail.com wrote:
  because my application is based on webview,
  it is not a good way to change it again to java api based which may cause
  the data lose for users.
  and web apps will be my focus later.

 Then don't access it from the Java code. Use loadUrl(javascript:...)
 from Java to execute some JavaScript that calls an API that pushes the
 data from the WebView back into your Android app via an interface
 defined via addJavascriptInterface().

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

 _The Busy Coder's Guide to Android Development_ Version 3.6 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can i get the data created by function openDatabase from the webview?

2011-08-20 Thread Mark Murphy
On Sat, Aug 20, 2011 at 11:38 AM, 李白|字一日 calid...@gmail.com wrote:
 it adds two questions to me:
     1. how to invoke javascript only without loading a webview?

Um, you can't, unless you add Rhino or another JavaScript interpreter
to your project. Moreover, you seem to be missing the point.

You EITHER need to write a Java-centric app that HAPPENS to use a
WebView for a bit of rendering (and therefore the database should be
managed by Java code) OR you need to write a WebView-centric app that
HAPPENS to need a bit of Java code here and there (and therefore the
database should be managed by the JavaScript code).

If there are situations where you have Java code needing access to the
data with no WebView around, then, by definition, you are writing a
Java-centric app.

     2. how to pass a callback to javascript and make java invocation
 synchronous?

Very little is guaranteed to be synchronous in this space, because
AFAIK WebView uses its own threads (from WebKit).

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

_The Busy Coder's Guide to Android Development_ Version 3.6 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] java.lang.ClassCastException: android.widget.EditText

2011-08-20 Thread Spica
I removed EditText from my layout and after that i started getting
Force close error. My app is not starting at all. Here is the trace
i captured with logcat;

=
E/AndroidRuntime( 1335): FATAL EXCEPTION: main
E/AndroidRuntime( 1335): java.lang.RuntimeException: Unable to start
activity Co
mponentInfo{com.myApp/com.myApp.DashBoard}:
java.lang.ClassCastException: android.widget.EditText
E/AndroidRuntime( 1335):at
android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2781)
E/AndroidRuntime( 1335):at
android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2797)
E/AndroidRuntime( 1335):at android.app.ActivityThread.access
$2300(Activi
tyThread.java:135)
E/AndroidRuntime( 1335):at android.app.ActivityThread
$H.handleMessage(Ac
tivityThread.java:2132)
E/AndroidRuntime( 1335):at
android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 1335):at android.os.Looper.loop(Looper.java:
143)
E/AndroidRuntime( 1335):at
android.app.ActivityThread.main(ActivityThrea
d.java:4914)
E/AndroidRuntime( 1335):at
java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 1335):at
java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime( 1335):at com.android.internal.os.ZygoteInit
$MethodAndA
rgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime( 1335):at
com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:616)
E/AndroidRuntime( 1335):at
dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
android.widget
.EditText
E/AndroidRuntime( 1335):at
com.myApp.DashBoard.onCreate(DashBoard.java
:70)
E/AndroidRuntime( 1335):at
android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1065)
E/AndroidRuntime( 1335):at
android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2745)


I am not using the removed EditText in the code even then it is
throwing this error...

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

2011-08-20 Thread Mark Murphy
Try cleaning your project (Project  Clean from the Eclipse main menu,
or ant clean from the command line). Typically, I find that these
ClassCastExceptions are because the widget IDs are out of sync between
the resources in the APK file and your already-compiled .class files.
Cleaning the project forces the .class files to be rebuilt.

On Sat, Aug 20, 2011 at 12:16 PM, Spica spicaneb...@gmail.com wrote:
 I removed EditText from my layout and after that i started getting
 Force close error. My app is not starting at all. Here is the trace
 i captured with logcat;

 =
 E/AndroidRuntime( 1335): FATAL EXCEPTION: main
 E/AndroidRuntime( 1335): java.lang.RuntimeException: Unable to start
 activity Co
 mponentInfo{com.myApp/com.myApp.DashBoard}:
 java.lang.ClassCastException: android.widget.EditText
 E/AndroidRuntime( 1335):        at
 android.app.ActivityThread.performLaunchActiv
 ity(ActivityThread.java:2781)
 E/AndroidRuntime( 1335):        at
 android.app.ActivityThread.handleLaunchActivi
 ty(ActivityThread.java:2797)
 E/AndroidRuntime( 1335):        at android.app.ActivityThread.access
 $2300(Activi
 tyThread.java:135)
 E/AndroidRuntime( 1335):        at android.app.ActivityThread
 $H.handleMessage(Ac
 tivityThread.java:2132)
 E/AndroidRuntime( 1335):        at
 android.os.Handler.dispatchMessage(Handler.ja
 va:99)
 E/AndroidRuntime( 1335):        at android.os.Looper.loop(Looper.java:
 143)
 E/AndroidRuntime( 1335):        at
 android.app.ActivityThread.main(ActivityThrea
 d.java:4914)
 E/AndroidRuntime( 1335):        at
 java.lang.reflect.Method.invokeNative(Native
 Method)
 E/AndroidRuntime( 1335):        at
 java.lang.reflect.Method.invoke(Method.java:5
 21)
 E/AndroidRuntime( 1335):        at com.android.internal.os.ZygoteInit
 $MethodAndA
 rgsCaller.run(ZygoteInit.java:858)
 E/AndroidRuntime( 1335):        at
 com.android.internal.os.ZygoteInit.main(Zygot
 eInit.java:616)
 E/AndroidRuntime( 1335):        at
 dalvik.system.NativeStart.main(Native Method)

 E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
 android.widget
 .EditText
 E/AndroidRuntime( 1335):        at
 com.myApp.DashBoard.onCreate(DashBoard.java
 :70)
 E/AndroidRuntime( 1335):        at
 android.app.Instrumentation.callActivityOnCre
 ate(Instrumentation.java:1065)
 E/AndroidRuntime( 1335):        at
 android.app.ActivityThread.performLaunchActiv
 ity(ActivityThread.java:2745)
 

 I am not using the removed EditText in the code even then it is
 throwing this error...

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

_The Busy Coder's Guide to Android Development_ Version 3.6 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


Re: [android-developers] Re: Dialog problems on orientation change

2011-08-20 Thread TreKing
On Fri, Aug 19, 2011 at 11:56 PM, Snowak psno...@gmail.com wrote:

 Let me quote my post:
 I'm not interested in forcing it to reload in onPrepareDialog,
 because it would require putting this code into every activity which
 use this dialog..



 Do you really think your solution differ in any way?


Yes - you're not forcing anything to reload in onPrepareDialog - you don't
have to touch onPrepareDialog. Calling removeDialog() would cause the next
showDialog() to call createDialog() again.


 I would have to call removeDialog in every activity manually!


No, you could create a globally accessible function for this or any dialog
that you want to force re-creation on. This is what I do.

SomeStaticClass.showDialog(Activity a, int dialogID)
{
 a.removeDialog(dialogID);
 a.showDialog(dialogID);
}

Now in any activity that uses this dialog, since you already do showDialog()
(one assumes), you instead call the static function.


  As for the Activity thing, could you give me more details?


I don't know what Activity thing you're referring to.


 And still the question remains - how can I force the activity to recreate
 all dialogs after orientation changes in elegant way?


Not sure what part of the configuration change is causing your issue, so
hard to say.

-
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: java.lang.ClassCastException: android.widget.EditText

2011-08-20 Thread Spica
Awesome... :
it worked after cleaning project...  thanks Mark

On Aug 20, 12:24 pm, Mark Murphy mmur...@commonsware.com wrote:
 Try cleaning your project (Project  Clean from the Eclipse main menu,
 or ant clean from the command line). Typically, I find that these
 ClassCastExceptions are because the widget IDs are out of sync between
 the resources in the APK file and your already-compiled .class files.
 Cleaning the project forces the .class files to be rebuilt.









 On Sat, Aug 20, 2011 at 12:16 PM, Spica spicaneb...@gmail.com wrote:
  I removed EditText from my layout and after that i started getting
  Force close error. My app is not starting at all. Here is the trace
  i captured with logcat;

  =
  E/AndroidRuntime( 1335): FATAL EXCEPTION: main
  E/AndroidRuntime( 1335): java.lang.RuntimeException: Unable to start
  activity Co
  mponentInfo{com.myApp/com.myApp.DashBoard}:
  java.lang.ClassCastException: android.widget.EditText
  E/AndroidRuntime( 1335):        at
  android.app.ActivityThread.performLaunchActiv
  ity(ActivityThread.java:2781)
  E/AndroidRuntime( 1335):        at
  android.app.ActivityThread.handleLaunchActivi
  ty(ActivityThread.java:2797)
  E/AndroidRuntime( 1335):        at android.app.ActivityThread.access
  $2300(Activi
  tyThread.java:135)
  E/AndroidRuntime( 1335):        at android.app.ActivityThread
  $H.handleMessage(Ac
  tivityThread.java:2132)
  E/AndroidRuntime( 1335):        at
  android.os.Handler.dispatchMessage(Handler.ja
  va:99)
  E/AndroidRuntime( 1335):        at android.os.Looper.loop(Looper.java:
  143)
  E/AndroidRuntime( 1335):        at
  android.app.ActivityThread.main(ActivityThrea
  d.java:4914)
  E/AndroidRuntime( 1335):        at
  java.lang.reflect.Method.invokeNative(Native
  Method)
  E/AndroidRuntime( 1335):        at
  java.lang.reflect.Method.invoke(Method.java:5
  21)
  E/AndroidRuntime( 1335):        at com.android.internal.os.ZygoteInit
  $MethodAndA
  rgsCaller.run(ZygoteInit.java:858)
  E/AndroidRuntime( 1335):        at
  com.android.internal.os.ZygoteInit.main(Zygot
  eInit.java:616)
  E/AndroidRuntime( 1335):        at
  dalvik.system.NativeStart.main(Native Method)

  E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
  android.widget
  .EditText
  E/AndroidRuntime( 1335):        at
  com.myApp.DashBoard.onCreate(DashBoard.java
  :70)
  E/AndroidRuntime( 1335):        at
  android.app.Instrumentation.callActivityOnCre
  ate(Instrumentation.java:1065)
  E/AndroidRuntime( 1335):        at
  android.app.ActivityThread.performLaunchActiv
  ity(ActivityThread.java:2745)
  

  I am not using the removed EditText in the code even then it is
  throwing this error...

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


Re: [android-developers] ListView items

2011-08-20 Thread TreKing
On Sat, Aug 20, 2011 at 6:57 AM, Goutom goutom.sust@gmail.com wrote:

 Hi Treking
 This is not the answer.


I respectfully disagree. But hey, it's your app. Good luck.

-
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

Re: [android-developers] opengl( how to move the objects )

2011-08-20 Thread TreKing
On Sat, Aug 20, 2011 at 5:29 AM, rajiv rajiv.di...@gmail.com wrote:

 Here the value of X and y and a  b are same but when it is Action_up
 the co-ordinate of X Y  ab  should be different  Please help me


The little information you posted is not enough for anyone to help you. Try
debugging your code.

-
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: Emulator disables DPMS (then monitor doesn't sleep)

2011-08-20 Thread Chris Stratton
On Friday, August 19, 2011 1:21:51 PM UTC-4, pb wrote:

 I noticed that starting the emulator disables DPMS and it is not re- 
 enabled when the emulator closes.  So my monitor was never going to 
 sleep until I re-enabled DPMS manually.  Does anyone know why it does 
 this and/or how to fix it?  As a temporary solution I have wrapped the 
 executable in a shell script to run `xset +dpms` when the emulator 
 finishes, but this is probably not ideal.  Ubuntu 10.04.


It does, at least in the current state of the code, appear to be trying to 
handle this intelligently, ie, determine the setting on startup and restore 
it on exit:

http://android.git.kernel.org/?p=platform%2Fexternal%2Fqemu.gita=searchh=HEADst=greps=dpms

You can look through the logs going back further than I did and see if 
that's been worked on since your version.  It's also possible it's still 
subtly broken in some way.

You should be able to compile a version without this, or even patch an 
existing binary (it took me all of 30 seconds with objdump to find a wrapper 
for DPMSDisable() that could be nop'd out).


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

[android-developers] Re: Dialog problems on orientation change

2011-08-20 Thread Snowak
Thank you both, it looks like the Drawable fails to restore it's
tileMode when it's created before layout has been completely
initialized. It's weird, but I've managed to solve it by setting the
tileModeXY via code when creating the dialog.

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

2011-08-20 Thread bob
Let's say you have an image, and you want to know the x and y of the
user's click.  Anyone know what widget to use?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can i get the data created by function openDatabase from the webview?

2011-08-20 Thread 李白|字一日
thanks a lot, Mark.

but it is really frustrating me.

i was hoping to get a simple resolution to my application..[?]



2011/8/20 Mark Murphy mmur...@commonsware.com

 On Sat, Aug 20, 2011 at 11:38 AM, 李白|字一日 calid...@gmail.com wrote:
  it adds two questions to me:
  1. how to invoke javascript only without loading a webview?

 Um, you can't, unless you add Rhino or another JavaScript interpreter
 to your project. Moreover, you seem to be missing the point.

 You EITHER need to write a Java-centric app that HAPPENS to use a
 WebView for a bit of rendering (and therefore the database should be
 managed by Java code) OR you need to write a WebView-centric app that
 HAPPENS to need a bit of Java code here and there (and therefore the
 database should be managed by the JavaScript code).

 If there are situations where you have Java code needing access to the
 data with no WebView around, then, by definition, you are writing a
 Java-centric app.


because the webview is limited to interact with services or widgets, and my
application should be evolved to be a more powerful one, i have to change it
to a webview riched and java riched one [?]



  2. how to pass a callback to javascript and make java invocation
  synchronous?

 Very little is guaranteed to be synchronous in this space, because
 AFAIK WebView uses its own threads (from WebKit).


sad to hear it..


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

 _The Busy Coder's Guide to Android Development_ Version 3.6 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


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

[android-developers] How was the RenderScript Balls Demo Video Made?

2011-08-20 Thread newbyca
i'd like to use direct video capture of my apps for making Android
Market promo videos. i know other devs have asked about this before
and up until now i hadn't found a way.

then recently i saw the RenderScript Balls demo on youtube:
http://www.youtube.com/watch?v=uQ5NumRfHN4

and it seems to be a direct capture. i also recently got a Xoom in my
test bed ... so i'm guessing the Balls video was made by connecting a
tablet to a TV via HDMI then recording from the TV? just hoping
someone could confirm?

i'm not much of a tv person so my tv is ancient and doesn't have HDMI-
in, nor do i have a way to record from a TV to a computer for editing
and format conversion. point being, i'd be willing to invest in a new
tv and pc card ... but would like to know that it's necessary first.
also, any pc card recommendations would be great, but i know that
subject isn't really germane to this forum :)

TIA//

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


[android-developers] Vertical scrolling Fish Eye Menu

2011-08-20 Thread joel witherspoon
In the latest version of Facebook's Android App, they have a Fish-eye
scrolling menu that pops up when you click Most Recent in the top
right corner of the app. Can someone point me to a resource that has a
tutorial that implements this menu (if you know it)?

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


Re: [android-developers] Re: Is it possible to use MonkeyRunner from java

2011-08-20 Thread Vikram
Dear Bill,

Why would I be getting the following error while trying to compile ?

Exception in thread AWT-EventQueue-0 java.lang.Error: Unresolved 
compilation problem: 
Type mismatch: cannot convert from AdbBackend to IMonkeyBackend

AM using what you had quoted to initiate the connection to the device.

CHeers,
Vikram.

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

2011-08-20 Thread RichardC
E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
android.widget
.EditText
E/AndroidRuntime( 1335):at
com.myApp.DashBoard.onCreate(DashBoard.java
:70)

What's at line 70 in DashBoard.java?


On Aug 20, 5:16 pm, Spica spicaneb...@gmail.com wrote:
 I removed EditText from my layout and after that i started getting
 Force close error. My app is not starting at all. Here is the trace
 i captured with logcat;

 =
 E/AndroidRuntime( 1335): FATAL EXCEPTION: main
 E/AndroidRuntime( 1335): java.lang.RuntimeException: Unable to start
 activity Co
 mponentInfo{com.myApp/com.myApp.DashBoard}:
 java.lang.ClassCastException: android.widget.EditText
 E/AndroidRuntime( 1335):        at
 android.app.ActivityThread.performLaunchActiv
 ity(ActivityThread.java:2781)
 E/AndroidRuntime( 1335):        at
 android.app.ActivityThread.handleLaunchActivi
 ty(ActivityThread.java:2797)
 E/AndroidRuntime( 1335):        at android.app.ActivityThread.access
 $2300(Activi
 tyThread.java:135)
 E/AndroidRuntime( 1335):        at android.app.ActivityThread
 $H.handleMessage(Ac
 tivityThread.java:2132)
 E/AndroidRuntime( 1335):        at
 android.os.Handler.dispatchMessage(Handler.ja
 va:99)
 E/AndroidRuntime( 1335):        at android.os.Looper.loop(Looper.java:
 143)
 E/AndroidRuntime( 1335):        at
 android.app.ActivityThread.main(ActivityThrea
 d.java:4914)
 E/AndroidRuntime( 1335):        at
 java.lang.reflect.Method.invokeNative(Native
 Method)
 E/AndroidRuntime( 1335):        at
 java.lang.reflect.Method.invoke(Method.java:5
 21)
 E/AndroidRuntime( 1335):        at com.android.internal.os.ZygoteInit
 $MethodAndA
 rgsCaller.run(ZygoteInit.java:858)
 E/AndroidRuntime( 1335):        at
 com.android.internal.os.ZygoteInit.main(Zygot
 eInit.java:616)
 E/AndroidRuntime( 1335):        at
 dalvik.system.NativeStart.main(Native Method)

 E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
 android.widget
 .EditText
 E/AndroidRuntime( 1335):        at
 com.myApp.DashBoard.onCreate(DashBoard.java
 :70)
 E/AndroidRuntime( 1335):        at
 android.app.Instrumentation.callActivityOnCre
 ate(Instrumentation.java:1065)
 E/AndroidRuntime( 1335):        at
 android.app.ActivityThread.performLaunchActiv
 ity(ActivityThread.java:2745)
 

 I am not using the removed EditText in the code even then it is
 throwing this error...

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

2011-08-20 Thread Spica
This is line 70;
 Button b = (Button) findViewById(R.id.btnReferesh);

On Aug 20, 4:39 pm, RichardC richard.crit...@googlemail.com wrote:
 E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
 android.widget
 .EditText
 E/AndroidRuntime( 1335):        at
 com.myApp.DashBoard.onCreate(DashBoard.java
 :70)

 What's at line 70 in DashBoard.java?

 On Aug 20, 5:16 pm, Spica spicaneb...@gmail.com wrote:







  I removed EditText from my layout and after that i started getting
  Force close error. My app is not starting at all. Here is the trace
  i captured with logcat;

  =
  E/AndroidRuntime( 1335): FATAL EXCEPTION: main
  E/AndroidRuntime( 1335): java.lang.RuntimeException: Unable to start
  activity Co
  mponentInfo{com.myApp/com.myApp.DashBoard}:
  java.lang.ClassCastException: android.widget.EditText
  E/AndroidRuntime( 1335):        at
  android.app.ActivityThread.performLaunchActiv
  ity(ActivityThread.java:2781)
  E/AndroidRuntime( 1335):        at
  android.app.ActivityThread.handleLaunchActivi
  ty(ActivityThread.java:2797)
  E/AndroidRuntime( 1335):        at android.app.ActivityThread.access
  $2300(Activi
  tyThread.java:135)
  E/AndroidRuntime( 1335):        at android.app.ActivityThread
  $H.handleMessage(Ac
  tivityThread.java:2132)
  E/AndroidRuntime( 1335):        at
  android.os.Handler.dispatchMessage(Handler.ja
  va:99)
  E/AndroidRuntime( 1335):        at android.os.Looper.loop(Looper.java:
  143)
  E/AndroidRuntime( 1335):        at
  android.app.ActivityThread.main(ActivityThrea
  d.java:4914)
  E/AndroidRuntime( 1335):        at
  java.lang.reflect.Method.invokeNative(Native
  Method)
  E/AndroidRuntime( 1335):        at
  java.lang.reflect.Method.invoke(Method.java:5
  21)
  E/AndroidRuntime( 1335):        at com.android.internal.os.ZygoteInit
  $MethodAndA
  rgsCaller.run(ZygoteInit.java:858)
  E/AndroidRuntime( 1335):        at
  com.android.internal.os.ZygoteInit.main(Zygot
  eInit.java:616)
  E/AndroidRuntime( 1335):        at
  dalvik.system.NativeStart.main(Native Method)

  E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
  android.widget
  .EditText
  E/AndroidRuntime( 1335):        at
  com.myApp.DashBoard.onCreate(DashBoard.java
  :70)
  E/AndroidRuntime( 1335):        at
  android.app.Instrumentation.callActivityOnCre
  ate(Instrumentation.java:1065)
  E/AndroidRuntime( 1335):        at
  android.app.ActivityThread.performLaunchActiv
  ity(ActivityThread.java:2745)
  

  I am not using the removed EditText in the code even then it is
  throwing this error...

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


Re: [android-developers] Updating UI from external

2011-08-20 Thread Ash
Wonderful. Thanks a lot for your prompt and detailed replies. I appreciate 
your help. I seem to have achieved what I was after (for now initial testing 
has given me enough confidence to move forward). 

Thanks again Mark. 

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

2011-08-20 Thread bob
Let's say you are making an interface.

Do you think it's easier to use widgets or just draw your own stuff?

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

2011-08-20 Thread RichardC
4 steps:

(1) break line 70 into two:
View myFoundView = findViewById(R.id.btnReferesh);
Button b = (Button)myFoundView;

(2) Put a breakpoint on the 1st line above

(3) Step over the 1st line and then inspect myFoundView;

(4) Workout why whatever is in myFoundView cannot be cast to a Button


On Aug 20, 9:51 pm, Spica spicaneb...@gmail.com wrote:
 This is line 70;
  Button b = (Button) findViewById(R.id.btnReferesh);

 On Aug 20, 4:39 pm, RichardC richard.crit...@googlemail.com wrote:







  E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
  android.widget
  .EditText
  E/AndroidRuntime( 1335):        at
  com.myApp.DashBoard.onCreate(DashBoard.java
  :70)

  What's at line 70 in DashBoard.java?

  On Aug 20, 5:16 pm, Spica spicaneb...@gmail.com wrote:

   I removed EditText from my layout and after that i started getting
   Force close error. My app is not starting at all. Here is the trace
   i captured with logcat;

   =
   E/AndroidRuntime( 1335): FATAL EXCEPTION: main
   E/AndroidRuntime( 1335): java.lang.RuntimeException: Unable to start
   activity Co
   mponentInfo{com.myApp/com.myApp.DashBoard}:
   java.lang.ClassCastException: android.widget.EditText
   E/AndroidRuntime( 1335):        at
   android.app.ActivityThread.performLaunchActiv
   ity(ActivityThread.java:2781)
   E/AndroidRuntime( 1335):        at
   android.app.ActivityThread.handleLaunchActivi
   ty(ActivityThread.java:2797)
   E/AndroidRuntime( 1335):        at android.app.ActivityThread.access
   $2300(Activi
   tyThread.java:135)
   E/AndroidRuntime( 1335):        at android.app.ActivityThread
   $H.handleMessage(Ac
   tivityThread.java:2132)
   E/AndroidRuntime( 1335):        at
   android.os.Handler.dispatchMessage(Handler.ja
   va:99)
   E/AndroidRuntime( 1335):        at android.os.Looper.loop(Looper.java:
   143)
   E/AndroidRuntime( 1335):        at
   android.app.ActivityThread.main(ActivityThrea
   d.java:4914)
   E/AndroidRuntime( 1335):        at
   java.lang.reflect.Method.invokeNative(Native
   Method)
   E/AndroidRuntime( 1335):        at
   java.lang.reflect.Method.invoke(Method.java:5
   21)
   E/AndroidRuntime( 1335):        at com.android.internal.os.ZygoteInit
   $MethodAndA
   rgsCaller.run(ZygoteInit.java:858)
   E/AndroidRuntime( 1335):        at
   com.android.internal.os.ZygoteInit.main(Zygot
   eInit.java:616)
   E/AndroidRuntime( 1335):        at
   dalvik.system.NativeStart.main(Native Method)

   E/AndroidRuntime( 1335): Caused by: java.lang.ClassCastException:
   android.widget
   .EditText
   E/AndroidRuntime( 1335):        at
   com.myApp.DashBoard.onCreate(DashBoard.java
   :70)
   E/AndroidRuntime( 1335):        at
   android.app.Instrumentation.callActivityOnCre
   ate(Instrumentation.java:1065)
   E/AndroidRuntime( 1335):        at
   android.app.ActivityThread.performLaunchActiv
   ity(ActivityThread.java:2745)
   

   I am not using the removed EditText in the code even then it is
   throwing this error...

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

2011-08-20 Thread hectordu...@yahoo.com
hi guys,
i would like to turn off  programmatically the screen lock
function ...
how can i do it ?

thanks in advance

Hector

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

2011-08-20 Thread Michael Banzon
I'd say widgets...

On Sat, Aug 20, 2011 at 11:26 PM, bob b...@coolgroups.com wrote:
 Let's say you are making an interface.

 Do you think it's easier to use widgets or just draw your own stuff?

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




-- 
Michael Banzon
http://michaelbanzon.com/

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


[android-developers] java.lang.NoClassDefFoundError: android.os.AsyncTask

2011-08-20 Thread b0b
I have an app on the Market that works well for most users but for a
few of them and very rarely, I get crash reports with exception:

java.lang.NoClassDefFoundError: android.os.AsyncTask


It happens very early in app init when the first AsyncTask is created
on different versions of Android.
These crash reports are totally weird, as if the dalvik classloader
was broken or going berserk.

Does anyone have seen such crash reports in its own apps ?

At this point, I tend to ignore them as there is nothing I can do, but
I'd still like to have an explanation for this mystery.

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

2011-08-20 Thread Nick Risaro
Hey, RichardC, this problem is solved, check the third mail of the thread.

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

2011-08-20 Thread Nick Risaro
On Sat, Aug 20, 2011 at 7:29 PM, hectordu...@yahoo.com 
hectordu...@yahoo.com wrote:

 hi guys,
 i would like to turn off  programmatically the screen lock
 function ...
 how can i do it ?


3 easy steps.

   1. Go to google.com
   2. Type: android turn off screen
   3. Implement the functionality you want



 thanks in advance

 Hector

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

2011-08-20 Thread Matyas

Noone?
On Aug 11, 11:21 am, Matyas matyas.b...@gmail.com wrote:
 Hi,

 The following is giving me a serious headache.

 Bitmap mTestMap = Bitmap.createBitmap(20, 20, Config.ALPHA_8);
 mTestMap.setPixel(10,10, Color.WHITE);
 Log.d(Test, HasAlpha= + mTestMap.hasAlpha() + , IsMutable= +
 mTestMap.isMutable() +
                 , PixelColor= + mTestMap.getPixel(10,10));

 The output is:
 08-11 10:56:23.490: DEBUG/Test(11211): HasAlpha=true, IsMutable=true,
 PixelColor=0

 The question is, why does getPixel return 0? And if it was meant to
 return 0, what is the correct way to retrieve pixel color information
 (or alpha channel information) from an ALPHA_8 bitmap? I am trying to
 use this kind of bitmap for hit-testing in a game. RGB_565 works fine,
 but I am trying to reduce the memory.

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

2011-08-20 Thread bob
I have an existing Listview of news article titles, and I need to now
have an image to the left of the title.  Anyone know a real easy way
to do this?

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

2011-08-20 Thread TreKing
On Sat, Aug 20, 2011 at 6:02 PM, b0b pujos.mich...@gmail.com wrote:

 Does anyone have seen such crash reports in its own apps ?


I've gotten a few randoms that seem impossible like this. My current theory
is a bad install that f***s up the app. Anytime I've gotten emails about
just updated and it's not working, an uninstall - re-install nearly
always fixes 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

Re: [android-developers] Listview with image

2011-08-20 Thread TreKing
On Sat, Aug 20, 2011 at 7:59 PM, bob b...@coolgroups.com wrote:

 I have an existing Listview of news article titles, and I need to now have
 an image to the left of the title.  Anyone know a real easy way to do this?


Stick an Image to the left of the title in your layout?

-
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

Re: [android-developers] Listview with image

2011-08-20 Thread Nick Risaro
On Sat, Aug 20, 2011 at 10:03 PM, TreKing treking...@gmail.com wrote:

 Stick an Image to the left of the title in your layout?


With glue?

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

2011-08-20 Thread lbendlin
you cannot do that if there is one or more security admins on the device 
(mostly affects people who use the phone to access their corporate email).

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

2011-08-20 Thread Peter Sinnott
On Aug 21, 12:02 am, b0b pujos.mich...@gmail.com wrote:
 I have an app on the Market that works well for most users but for a
 few of them and very rarely, I get crash reports with exception:

 java.lang.NoClassDefFoundError: android.os.AsyncTask


AsyncTask was introduced in api level 3. Any chance your apps minimum
sdk level is below that?
Probably not but sometime it is the obvious things that cause the most
trouble.

It would nice if the developer console error page had the Android
version and device in it.

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


[android-developers] Re: ListView items

2011-08-20 Thread Peter Sinnott
Sure it is.

The adaptor has all the items. The view has the visible items.
If you want to do something with the visible items you can use the
view.
If you want to do something with all the items you can use the
adaptor.
If the adaptor doesn't have enough information to know the state of
the checkbox you may have problems but you will when the list scrolls
anyway.


On Aug 20, 12:57 pm, Goutom goutom.sust@gmail.com wrote:
 Hi Treking
 This is not the answer.

 On Fri, Aug 19, 2011 at 5:45 PM, TreKing treking...@gmail.com wrote:
  On Fri, Aug 19, 2011 at 7:41 PM, Goutom goutom.sust@gmail.com wrote:

  Any help?

  Use the adapter that backs the listview.

  -
  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


Re: [android-developers] Re: java.lang.NoClassDefFoundError: android.os.AsyncTask

2011-08-20 Thread TreKing
On Sat, Aug 20, 2011 at 8:19 PM, Peter Sinnott psinn...@gmail.com wrote:

 It would nice if the developer console error page had the Android version
 and device in it.


Technically it does, but the information is presented so horribly it's
impossible to determine which app version was running on which device when
the crash is reported.

-
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: java.lang.NoClassDefFoundError: android.os.AsyncTask

2011-08-20 Thread Peter Sinnott
I have 23 others , 2 nexus ones and 3 droids. There are I think half a
dozen Android phones called droid and that is an awful lot of phones
tagged other. From a practical point of view I wouldn't consider the
device to be reported. The error reporting was nice when it arrived
but after a couple of months you get over it and realise how much
better it could easily be.

On Aug 21, 2:30 am, TreKing treking...@gmail.com wrote:
 On Sat, Aug 20, 2011 at 8:19 PM, Peter Sinnott psinn...@gmail.com wrote:
  It would nice if the developer console error page had the Android version
  and device in it.

 Technically it does, but the information is presented so horribly it's
 impossible to determine which app version was running on which device when
 the crash is reported.

 -
 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


Re: [android-developers] x and y

2011-08-20 Thread Kristopher Micinski
http://developer.android.com/reference/android/view/MotionEvent.html

public boolean onGenericMotionEvent (MotionEvent event)

Since: API Level 12

(From View.)

Kris

On Sat, Aug 20, 2011 at 2:22 PM, bob b...@coolgroups.com wrote:
 Let's say you have an image, and you want to know the x and y of the
 user's click.  Anyone know what widget to use?

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

2011-08-20 Thread TreKing
On Sat, Aug 20, 2011 at 8:40 PM, Peter Sinnott psinn...@gmail.com wrote:

 I have 23 others , 2 nexus ones and 3 droids. There are I think half
 a dozen Android phones called droid and that is an awful lot of
 phones tagged other. From a practical point of view I wouldn't consider
 the device to be reported.


Hence, technically ... ;-)

The error reporting was nice when it arrived but after a couple of months
 you get over it and realise how much better it could easily be.


I hear ya - ACRA FTW.

-
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

Re: [android-developers] Listview with image

2011-08-20 Thread s.rawat
Apart from glue a bit not so easy way would be to create an array adapter
and extends the listview activity with it .Inside the adapater you can add
an image, description ,title to it.Try if it helps or I will paste the code.
Rgds,
Saurabh
..pain is temporary.quitting lasts forever..



On Sun, Aug 21, 2011 at 6:45 AM, Nick Risaro nris...@gmail.com wrote:

 On Sat, Aug 20, 2011 at 10:03 PM, TreKing treking...@gmail.com wrote:

 Stick an Image to the left of the title in your layout?


 With glue?

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

2011-08-20 Thread Greg Donald
Using API version 7, this code produces the exact opposite results on
my Evo versus my Galaxy Tab:

switch( getWindowManager().getDefaultDisplay().getOrientation() )
{
  case 0:
display_mode = MyApplication.HORIZONTAL;
break;

  case 1:
display_mode = MyApplication.VERTICAL;
break;

  case 2:
display_mode = MyApplication.HORIZONTAL;
break;

  case 3:
display_mode = MyApplication.VERTICAL;
break;
}

log( display_mode:  + ( display_mode == MyApplication.HORIZONTAL
? HORIZONTAL : VERTICAL ) );


I switched to API version 13 to see if the problem was fixed in the
future, and it also tells lies from one device to another.


I have dynamic full screen graphics that cannot be skewed.  I'm having
to write code to compensate for the Galaxy Tab's 48 pixel bar at the
bottom.  getWindowManager().getDefaultDisplay().getHeight() says it's
800 but it's really only 752 due to the bar.  Now I find I cannot even
count on the display orientation being accurate to code up a fix for
the initial problem.


So how do I contend with this mess?

What other devices can I count on to lie about their display and orientation?



-- 
Greg Donald

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