[android-developers] ScrollView Component Position

2011-12-09 Thread Duygu Kahraman
I have a scrollview and When i pressed a button I am adding some
button to scrollview.My problem is  when i add button i want to get id
which is clicked button.

Have you got any idea?

How can i get view count from scrollview and getıd from this view.

THX.

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


[android-developers] accessing sdcard in android 3.2

2011-12-09 Thread guich
Hi,

We have Toshiba Thrive and a Galaxy Tab 7Plus that were working fine
until they upgrated to 3.2. Now, its impossible to write anything in
the microsd folder (/sdcard/extStorages/SdCard). I can read the things
in the card, but can't write to it: access denied.

Is there a new limitation?

thanks

   guich

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Andrlid ListView focus mess up with two focusable items in each row

2011-12-09 Thread yanguoc...@gmail.com
Thanks. But seems hard to maintain focus in a listview before and
after the latyout pass. I check the source code of listview, it did
something that may broke the focus in layout pass.

On Dec 9, 5:46 am, lbendlin l...@bendlin.us wrote:
 you will need to remember (per row) which item has focus, and when the list
 adapter reloads you will have to apply that knowledge and set
 requestFocus() to the appropriate item.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Andrlid ListView focus mess up with two focusable items in each row

2011-12-09 Thread Kostya Vasilyev

You don't really have to go through notifyDataSetChanged to update the UI.

If you know that the set of items stays the same (i.e. only their data 
changed), you can iterate the listview's children and update them 
bypassing the adapter.


-- Kostya

09.12.2011 14:10, yanguoc...@gmail.com пишет:

Thanks. But seems hard to maintain focus in a listview before and
after the latyout pass. I check the source code of listview, it did
something that may broke the focus in layout pass.

On Dec 9, 5:46 am, lbendlinl...@bendlin.us  wrote:

you will need to remember (per row) which item has focus, and when the list
adapter reloads you will have to apply that knowledge and set
requestFocus() to the appropriate item.


--
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] Re: Remote wipe SD card Invocation Event

2011-12-09 Thread giles ian
On Fri, Dec 9, 2011 at 1:13 PM, giles ian gilesian@gmail.com wrote:

 Hi Everyone,

 I want to remote wipe data on sd card. I know the code of wiping the data
 on SD card. What I am struggling with is how to invoke this code remotely.

 Options that i have is

 *1. Broadcast receiver for  SMS.*

 Shortcoming: SIM Card removed immediately.

 *3. **Broadcast receiver for **C2DM message*

 Shortcoming: No Internet

 *3. Broadcast receiver for Reboot of device.*

 Shortcoming: SIM removed with out restarting (possible in Galaxy S)

 Is there any full proof way other than these




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

Re: [android-developers] How to Remote wipe SD card

2011-12-09 Thread giles ian
On Fri, Dec 9, 2011 at 1:14 PM, giles ian gilesian@gmail.com wrote:

 haha u are funny daniel,

 ok so,

 I want to remote wipe data on sd card. I know the code of wiping the data
 on SD card. What I am struggling with is how to invoke this code remotely.

 Options that i have is

 *1. Broadcast receiver for  SMS.*

 Shortcoming: SIM Card removed immediately.

 *3. **Broadcast receiver for **C2DM message*

 Shortcoming: No Internet

 *3. Broadcast receiver for Reboot of device.*

 Shortcoming: SIM removed with out restarting (possible in Galaxy S)

 Is there any full proof way other than these

 On Thu, Dec 8, 2011 at 4:55 PM, Daniel Drozdzewski 
 daniel.drozdzew...@gmail.com wrote:

 On 8 December 2011 11:19, giles ian gilesian@gmail.com wrote:
  Hi All,
 
  How to Remote wipe SD card

 You cannot be serious...

 In case you are, here is the answer:

 With a soft antistatic cloth attached to a stick?

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

2011-12-09 Thread Saurav
Hi all,

I have been working on a live wallpaper application and the thing is, the
application does not work on few phones like Micromax a70 and Samsung
Galaxy I5510 in spite of them running on Android 2.2

Is this a hardware issue?

I do have the min-sdk set as 7 in my manifest.


Regards,
Saurav Mukherjee.

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

2011-12-09 Thread Michael Leung
have you checked the uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE/ in there?


On Fri, Dec 9, 2011 at 8:05 PM, guich guiha...@gmail.com wrote:

 Hi,

 We have Toshiba Thrive and a Galaxy Tab 7Plus that were working fine
 until they upgrated to 3.2. Now, its impossible to write anything in
 the microsd folder (/sdcard/extStorages/SdCard). I can read the things
 in the card, but can't write to it: access denied.

 Is there a new limitation?

 thanks

   guich

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




-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

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

Re: [android-developers] How to Remote wipe SD card

2011-12-09 Thread Daniel Drozdzewski
On 9 December 2011 07:44, giles ian gilesian@gmail.com wrote:
 haha u are funny daniel,


I know.

 ok so,

 I want to remote wipe data on sd card. I know the code of wiping the data on
 SD card. What I am struggling with is how to invoke this code remotely.

Stand back and think, what you are asking for. The content of the SD
card is not yours.
It could have many applications that users paid to get. The value of
the data stored there is even higher, potentially priceless.

If you let people here know, what exactly is a reason behind this
functionality and the reason seems valid enough, you might get some
help.

-- 
Daniel Drozdzewski

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


[android-developers] Re: accessing sdcard in android 3.2

2011-12-09 Thread guich
Hi,

Yes, i do. The program was working fine until the unit upgraded itself
to version 3.2. Then, writting to the card stopped working.

thanks

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


[android-developers] How To Store Locations Data In To Cache For Future Use

2011-12-09 Thread Saurabh Patel
HI All

Here I want to Create Such a application like which can get location data
using wifi ,GPS,GPRS Provider, and than Stores this data into cache memory
and i want to use this same location data in future use and display on MAP.

It is Possible or not?

Please Any body Suggest me the way how can i implement this thing.

Thanks  BR

Saurabh Patel

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

[android-developers] Accessing drawable images from HTML in assets

2011-12-09 Thread RLScott
I am writing some help files in HTML that will be displayed in a
WebView.  The HTML files are in the assets folder.  In those help
files I want to refer to some images used in ImageButtons.  Those
images are in res/drawable. I know I could simply make a duplicate PNG
file for the button images in assets and that works fine.  But I would
rather not duplicate the images for two reasons:  1. It is a waste of
space to store images twice.  2. Having duplicate sources makes it
difficult to maintain the software.  If I should ever change the
button image I would have to remember to change the duplicate PNG file
in assets to keep the help file up to date.

I tried referring to the image in my HTML file as ../drawable/
imagename.png and it didn't work.  Is there some way to make my HTML
in the WebView refer to images that are in a different folder in the
application package?

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

2011-12-09 Thread guich
Hi Dianne,

Lemme explain my problem.

All my application is drawn in an offscreen bitmap. When the
application starts, i get the maximum width/height of the screen and
create a square bitmap. This way, when screen rotates, i don't have to
create another bitmap. This prevents some crashes in my application.

I'm aware of the bug fix, i saw your comments in another thread.
What i'm asking is if Google can create a way to retrieve the size
with something like this:

public Size getSizeOfScreenIncludingTaskbarArea()
or
public Size getSizeOfScreenForOrientation(int orientation) // VERTICAL
or HORIZONTAL

This would help a lot.

thanks for your time.

Guich

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

2011-12-09 Thread Kiran Kumar Kendole
Thanks, I will try.

Regards
KIRANKUMARKENDOLE


On Thu, Dec 8, 2011 at 11:56 AM, TreKing treking...@gmail.com wrote:

 On Thu, Dec 8, 2011 at 10:44 AM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 :) Tried. No luck. I see most of the links showing how to attach a file
 from SD card to email... etc.. But that is not what i am looking at.


 Yeah, attachment is a bad word. Google SQLite save image or something
 and you should get some good hits. I can't believe this has not already
 been covered exhaustively.



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

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


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

[android-developers] Re: Accessing drawable images from HTML in assets

2011-12-09 Thread skink


RLScott wrote:
 I am writing some help files in HTML that will be displayed in a
 WebView.  The HTML files are in the assets folder.  In those help
 files I want to refer to some images used in ImageButtons.  Those
 images are in res/drawable. I know I could simply make a duplicate PNG
 file for the button images in assets and that works fine.  But I would
 rather not duplicate the images for two reasons:  1. It is a waste of
 space to store images twice.  2. Having duplicate sources makes it
 difficult to maintain the software.  If I should ever change the
 button image I would have to remember to change the duplicate PNG file
 in assets to keep the help file up to date.

 I tried referring to the image in my HTML file as ../drawable/
 imagename.png and it didn't work.  Is there some way to make my HTML
 in the WebView refer to images that are in a different folder in the
 application package?

hi, what about custom ContentProvider serving Drawables?

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


[android-developers] Re: Accessing drawable images from HTML in assets

2011-12-09 Thread RLScott


On Dec 9, 7:44 am, skink psk...@gmail.com wrote:
 RLScott wrote:
  I am writing some help files in HTML that will be displayed in a
  WebView.  The HTML files are in the assets folder.  In those help
  files I want to refer to some images used in ImageButtons.  Those
  images are in res/drawable. I know I could simply make a duplicate PNG
  file for the button images in assets and that works fine.  But I would
  rather not duplicate the images for two reasons:  1. It is a waste of
  space to store images twice.  2. Having duplicate sources makes it
  difficult to maintain the software.  If I should ever change the
  button image I would have to remember to change the duplicate PNG file
  in assets to keep the help file up to date.

  I tried referring to the image in my HTML file as ../drawable/
  imagename.png and it didn't work.  Is there some way to make my HTML
  in the WebView refer to images that are in a different folder in the
  application package?

 hi, what about custom ContentProvider serving Drawables?

I have no idea how to reference the custom ContentProvider in HTML.  I
should mention that I am using the ancient Adobe GoLive 5 to make my
HTML.

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


[android-developers] Debug info translation

2011-12-09 Thread Carlo Kok
i noticed the dx compiler transforms the offsets in the .class 
LineNumberTable when writing the dalvik code to the new offsets. Is there 
any way to get a copy of the mapping this uses? We have a custom debugger 
with some extra info (multiple statements on the same line, col info) which 
works fine when running against java, but on android our own seperate 
tables aren't updated. So is there some way to get the original offsets + 
the new offsets when the code was transformed? 

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

Re: [android-developers] How to Remote wipe SD card

2011-12-09 Thread Kristopher Micinski
On Fri, Dec 9, 2011 at 6:50 AM, Daniel Drozdzewski
daniel.drozdzew...@gmail.com wrote:
 On 9 December 2011 07:44, giles ian gilesian@gmail.com wrote:
 haha u are funny daniel,


 I know.

 ok so,

 I want to remote wipe data on sd card. I know the code of wiping the data on
 SD card. What I am struggling with is how to invoke this code remotely.

 Stand back and think, what you are asking for. The content of the SD
 card is not yours.
 It could have many applications that users paid to get. The value of
 the data stored there is even higher, potentially priceless.

 If you let people here know, what exactly is a reason behind this
 functionality and the reason seems valid enough, you might get some
 help.


I'm assuming that the reason for this is some sort of somebody stole
my device I want to wipe the SD card... app

kris

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


[android-developers] Re: Accessing drawable images from HTML in assets

2011-12-09 Thread skink


RLScott wrote:
 On Dec 9, 7:44 am, skink psk...@gmail.com wrote:
  RLScott wrote:
   I am writing some help files in HTML that will be displayed in a
   WebView.  The HTML files are in the assets folder.  In those help
   files I want to refer to some images used in ImageButtons.  Those
   images are in res/drawable. I know I could simply make a duplicate PNG
   file for the button images in assets and that works fine.  But I would
   rather not duplicate the images for two reasons:  1. It is a waste of
   space to store images twice.  2. Having duplicate sources makes it
   difficult to maintain the software.  If I should ever change the
   button image I would have to remember to change the duplicate PNG file
   in assets to keep the help file up to date.
 
   I tried referring to the image in my HTML file as ../drawable/
   imagename.png and it didn't work.  Is there some way to make my HTML
   in the WebView refer to images that are in a different folder in the
   application package?
 
  hi, what about custom ContentProvider serving Drawables?

 I have no idea how to reference the custom ContentProvider in HTML.  I
 should mention that I am using the ancient Adobe GoLive 5 to make my
 HTML.

Just firgot if your app is 2.2+ you can use special content provider,
quoting ContentResolver docs:

android.resource //package_ name/
type/name
package_name is your package
name as listed in your
AndroidManifest.xml . For example
com.example.myapp
type is the string form of the
resource type. For example, raw or
drawable. name is the string form
of the resource name.

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


[android-developers] Re: Remote wipe SD card Invocation Event

2011-12-09 Thread Oli Wright
Multiple posts on the same subject aren't going to win you any friends ...

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

2011-12-09 Thread Spiral123
If the company paid for a google maps key then just contact your
account manager at google and ask them.


On Dec 7, 3:39 am, sandy sandhyasee...@gmail.com wrote:
 Hi,
 I have to develop an application which uses google maps. My company
 wants to deploy that application in its device. Do i need to have
 separate license from google to use the google map in our device?
 My company got a license from google for using the google maps key for
 a applciation to run in desktop for which they have paid. So for this
 android device also do we need to get a separate api key.
 Please help and reply ASAP.

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

2011-12-09 Thread TreKing
On Fri, Dec 9, 2011 at 1:43 AM, giles ian gilesian@gmail.com wrote:

 *3. **Broadcast receiver for **C2DM message*

 Shortcoming: No Internet


How do you propose to *remote* wipe a device with no internet?

-
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] accessing sdcard in android 3.2

2011-12-09 Thread TreKing
On Fri, Dec 9, 2011 at 4:05 AM, guich guiha...@gmail.com wrote:

 I can read the things in the card, but can't write to it: access denied.


Google the exact error, including the device(s) you're having the issue
with. See if anything comes up.

-
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] Remote wipe SD card Invocation Event

2011-12-09 Thread Erwann Abalea

Le vendredi 9 décembre 2011 14:50:03 UTC+1, TreKing a écrit :

 On Fri, Dec 9, 2011 at 1:43 AM, giles ian gilesi...@gmail.com wrote:

 *3. **Broadcast receiver for **C2DM message*

 Shortcoming: No Internet


 How do you propose to *remote* wipe a device with no internet?


IPoAC, as described in RFC1149 and extended in RFC6214 to support IPv6. 

-- 
Erwann.

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

[android-developers] Re: Remote wipe SD card Invocation Event

2011-12-09 Thread lbendlin
Anyone who is smart enough to steal a particular device for the data on the 
SD card is smart enough to pull the SD card out of the device, or put the 
device into a metal box. 

You are wasting your time thinking about corner cases.

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

2011-12-09 Thread Kloze
hello everyone,

i'm master student and i'm studying the RS code. When i try to
construct a framework of RS, i found a function invokeRoot which is
mHal.funcs.script.invoke. However i can't find the function body and
so that i have no idea what will this function do. Is anyone has good
ideal could help me ?

Best Regard

Kloze

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

2011-12-09 Thread Emanuel Moecklin
I'm using OpenFeint for my apps. The two main reasons I picked it over
Scoreloop are (I also evaluated Papaya and Mobage):
1. It’s open source which helps to understand how it works beyond the
official documentation and the sample apps. It also helps to identify
and fix issues.
2. OpenFeint is the larger network with (depending on the source)
around 70-80 million users and 4000 games.

Now after almost a year with OpenFeint I sometimes wished I had picked
Scoreloop instead.
The OpenFeint lib isn't the most stable of all, I get several crash
reports a day related to OpenFeint. I had to report bugs several times
and I had to patch the lib myself too (glad it's open source).
OpenFeint support is pretty good though, very responsive.
At the moment they have performance problems and can't compute the
user's ranking. It seems they can't fix this so my users always get a
0 rank which they blaim on my apps of course.
I also miss daily highscores (there are just global ones).

Of course I don't know how other social gaming networks would perform
long-term.
You could ask the same questions for Scoreloop and other gaming
networks.

Cheers
Emanuel Moecklin
1gravity LLC

On Dec 8, 2:54 pm, bob b...@coolgroups.com wrote:
 Has anyone tried using OpenFeint for their Android games?  Any
 thoughts on 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] Remote wipe SD card Invocation Event

2011-12-09 Thread lbendlin
There are a couple of technical difficulties. First of all the phone is 
likely too heavy for the AC. Then, even if we assume the AC's excrements 
are toxic - how does it target exactly the SD card? And the request says 
wipe, not soil anyhow.

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

2011-12-09 Thread John Davis
Hello

I want to include saxon xml processor in an android app.  I have added
the app to my project but I get the --core-library message.  The jar
file includes some system libs I guess.  I am not building this app to
distribute.  I don't care about security problems.  I simply want to
port a java app I have written to use the android UI.  Is this
possible?

-- 
John F. Davis

独树一帜

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


[android-developers] Re: accessing sdcard in android 3.2

2011-12-09 Thread guich
Hi,

Yes, i found this:
http://www.thriveforums.org/forum/toshiba-thrive-general-discussions/4967-problems-after-latest-os-upgrade.html

Not sure if this is a problem in the device or in Android 3.2
itself...

thanks

guich

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

2011-12-09 Thread Erwann Abalea

Le vendredi 9 décembre 2011 15:24:55 UTC+1, lbendlin a écrit :

 There are a couple of technical difficulties. First of all the phone is 
 likely too heavy for the AC. Then, even if we assume the AC's excrements 
 are toxic - how does it target exactly the SD card? And the request says 
 wipe, not soil anyhow.


You're right, if the intention were to let the AC carry the phone.
I was thinking about sending AC to the phone holder (localization if left 
as an exercise for the reader), after a previous training for it to be able 
to compose the necessary operations with its beak.
I hadn't thought about using the AC's excrement for the job. Maybe a v2 
feature?

Seriously, Giles, you can't have a perfect solution. If there's no SIM 
card, no network coverage, no internet, then you have no hope. It's sad, 
but you must face it with dignity and go on.

-- 
Erwann.

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

2011-12-09 Thread Bret Foreman
Tre,

Your idea number 2 worked. There's a bug of some sort in the SDK. The
work-around is to build the main project AND the library without
instantiating any library classes in the main project, THEN
instantiate the required classes. If you make any library calls before
building both of them then the resulting build is non-functional.

On Dec 8, 5:03 pm, TreKing treking...@gmail.com wrote:
 On Thu, Dec 8, 2011 at 6:05 PM, Bret Foreman bret.fore...@gmail.com wrote:
  I'm looking for ideas of what else I might try.

 Some stuff I'd try.
 1 - Add a new class to the library and try to instantiate that, just to
 verify it also doesn't work.
 2 - Start from scratch and do it over again, step by step, creating the
 library project. Start with adding just *one* file and try to instantiate a
 class from it. See if that works. If so, add the others one by one.

 -
 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: DataBaseHelpers and multiple tables?

2011-12-09 Thread Chris


On Thursday, December 8, 2011 3:38:51 PM UTC-5, petter wrote:

 No guidelines or code samples for using databases with multiple tables?


Simple.  Eg:, from the link you gave:

 For example to run a query() you can do the following: 

 return database.query(DATABASE_TABLE,  new String[] { KEY_ROWID, 
KEY_CATEGORY, KEY_SUMMARY, KEY_DESCRIPTION },  null, null, null, null, 
null); 

Replace DATABASE_TABLE with DATABASE_TABLE1 or DATABASE_TABLE2 and you're 
good to go.

Cheers,
- C

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

2011-12-09 Thread Michael A.
Hi,

I doubt you would be much more pleased with Scoreloop. I have one app
with them, but since it's pretty low volume, I don't get much trouble
with them currently. From other developers, however, I have heard
freequent stories of Scoreloop suffering performance problems and
indeed, accessing their online board can take a lot of time,
sometimes.

The development cycle and testing capabilities are also far from
ideal.

With respect to Android, Scoreloop also has some questions hanging
over it now that it has been acquired by RIM. Of course they claim
that they will continue to maintain a cross-platform approach, but
right now I'd take a decidedly wait and see approach on that. RIM is a
company desperately trying to claw its way out of a death spiral and
such are decidedly not know for their rational decisions.

It's sad that OpenFeint continues to treat Android as a second-class
market. Unfortunately, until another company steps up to the plate or
Google opens up their rumored game platform, it's probably the best we
have.

Regards,

Michael A.

On Dec 9, 3:22 pm, Emanuel Moecklin 1gravity...@gmail.com wrote:
 I'm using OpenFeint for my apps. The two main reasons I picked it over
 Scoreloop are (I also evaluated Papaya and Mobage):
 1. It’s open source which helps to understand how it works beyond the
 official documentation and the sample apps. It also helps to identify
 and fix issues.
 2. OpenFeint is the larger network with (depending on the source)
 around 70-80 million users and 4000 games.

 Now after almost a year with OpenFeint I sometimes wished I had picked
 Scoreloop instead.
 The OpenFeint lib isn't the most stable of all, I get several crash
 reports a day related to OpenFeint. I had to report bugs several times
 and I had to patch the lib myself too (glad it's open source).
 OpenFeint support is pretty good though, very responsive.
 At the moment they have performance problems and can't compute the
 user's ranking. It seems they can't fix this so my users always get a
 0 rank which they blaim on my apps of course.
 I also miss daily highscores (there are just global ones).

 Of course I don't know how other social gaming networks would perform
 long-term.
 You could ask the same questions for Scoreloop and other gaming
 networks.

 Cheers
 Emanuel Moecklin
 1gravity LLC

 On Dec 8, 2:54 pm, bob b...@coolgroups.com wrote:

  Has anyone tried using OpenFeint for their Android games?  Any
  thoughts on 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] Reuse of AlphaAnimation object

2011-12-09 Thread Royston
Mark,
Again thanks for the quick reply. Making use of setStartTime does indeed 
resolve this. I am not sure I fully understand the design decisions in play 
here but I am well past my sell by date so will live with what we have.

Roy

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

2011-12-09 Thread Royston
I have an odd but repeatable issue with Dialogs and Android lifecycle on a 
Nexus (emulated and actual  device). I am using showDialog(ID) throughout 
and dismissDialog(ID) to remove. In the tests I run I show a dialog with 
and ID of 10 and dismiss it, I then show a dialog with an Id of 9 and 
dismiss it. I then show a dialog with an id of 7 and turn off the device 
(press F7). My Log shows:

onCreateDialog ID 7
onPrepareDialog ID 7
onCreateDialog ID 9
onPrepareDialog ID 9
onCreateDialog ID 10
onPrepareDialog ID 10

I.E all three dialogs are recreated but in dialog ID numerical order. If I 
unlock the device/emulator dialog with ID 7 is showing but obviously the 
code thinks the last dialpg shown is ID 10 so variables are pointing 
incorrectly and I get app failure. I understand that dialogs are cached if 
dismissed rather than removed but the sequence here is difficult to manage. 
Thoughts appreciated.

Roy


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

2011-12-09 Thread Kristopher Micinski
On Fri, Dec 9, 2011 at 10:41 AM, Bret Foreman bret.fore...@gmail.com wrote:
 Tre,

 Your idea number 2 worked. There's a bug of some sort in the SDK. The
 work-around is to build the main project AND the library without
 instantiating any library classes in the main project, THEN
 instantiate the required classes. If you make any library calls before
 building both of them then the resulting build is non-functional.


I'm always hesitant when people say:

Of course, there's a bug in X (where X is written by some very well
respected org / has a fairly reputable codebase) that's why it didn't
work.

Do you have some evidence for an SDK bug?  This sounds more like a
build problem, possibly Eclipse, or more likely that you just didn't
have the project set up right.

kris

P.s., glad you got it working, but still doubtful there's an sdk bug...

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

2011-12-09 Thread Kristopher Micinski

 P.s., glad you got it working, but still doubtful there's an sdk bug...

I should correct, I'm confident that there is *an* sdk bug, I'm just
not sure that particular bug is causing this problem :-)

kris

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


[android-developers] Re: accessing sdcard in android 3.2

2011-12-09 Thread guich
Seems to be really an Android problem, because the same error occurs
on both Toshiba Thrive AND  Samsung Galaxy Tab7+, *** AFTER UPGRADING
THE FIRMWARE TO ANDROID 3.2 ***. Both devices using Android 3.1 works
perfectly.

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

2011-12-09 Thread Derek Winstead
I have an activity that implements GestureDetector.OnGestureListener.

This variable: GestureDetector gestureDetector = new GestureDetector(this).

This @Override public boolean onTouchEvent(MotionEvent event) { return 
gestureDetector.onTouchEvent(event); }

My application works as expected using the onFling() when I swipe the 
screen where there are no views or other layouts (empty spaces on the 
screen). But once I try to swipe over my views (bunch of TextViews and a 
Button) the onFling() is never called.

How would I go about this to make the onFling() available anywhere on the 
screen they swipe? I have searched for answers on Google with nothing that 
addresses this that I can tell.

Thanks for any help,
Derek

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

2011-12-09 Thread skink


Derek Winstead wrote:
 I have an activity that implements GestureDetector.OnGestureListener.

 This variable: GestureDetector gestureDetector = new GestureDetector(this).

 This @Override public boolean onTouchEvent(MotionEvent event) { return
 gestureDetector.onTouchEvent(event); }

 My application works as expected using the onFling() when I swipe the
 screen where there are no views or other layouts (empty spaces on the
 screen). But once I try to swipe over my views (bunch of TextViews and a
 Button) the onFling() is never called.

 How would I go about this to make the onFling() available anywhere on the
 screen they swipe? I have searched for answers on Google with nothing that
 addresses this that I can tell.

 Thanks for any help,
 Derek

see ViewGroup.onInterceptTouchEvent

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] Reuse of AlphaAnimation object

2011-12-09 Thread Mark Murphy
I would agree that reset() ought to reset it completely -- I was just
pointing out a workaround. Glad it's working!

On Fri, Dec 9, 2011 at 11:14 AM, Royston roystonpcar...@gmail.com wrote:
 Mark,
 Again thanks for the quick reply. Making use of setStartTime does indeed
 resolve this. I am not sure I fully understand the design decisions in play
 here but I am well past my sell by date so will live with what we have.

 Roy

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 *Advanced* Android Development_ Version 2.2
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] Should I buy my own apps?

2011-12-09 Thread sblantipodi
As title.

I bought a galaxy nexus, when I try to download my own apps it ask me
for money.
Should I really buy my own apps?

Thanks.

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


[android-developers] Re: How is getOrientationMatrix calculated ?

2011-12-09 Thread Frantch
not really :S

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

Re: [android-developers] How to Remote wipe SD card

2011-12-09 Thread Jim Graham
giles:  I do hope you realize that A) posting the same thing multiple
times basically makes it 100% certain that you will never receive a
serious response, and B) asking how to do something completely absurd
raises that probability to over 100%.  So, despite the usual Do Not
Feed The Trolls warnings, here goes.

On Fri, Dec 09, 2011 at 01:14:22PM +0530, giles ian wrote:

 I want to remote wipe data on sd card.

 Is there any full proof way other than these

I could work out a full, mathematical proof, but I'll pass.

Now, if you meant FOOLproof, sure.  Here's one way:

You find someone with connections to buy a military-only sniper
rifle (say, the Accuracy International AS-50), and then you hire
an SAS or USMC sniper, GIVE them the rifle, and in exchange, ask
them to shoot the target (in this case, the Android phone) from,
say, 1800m (might as well make this fun for the sniper).  A round
that size won't leave anything but a cloud of debris where there
was once an Android phone.

HTH.  HAND.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

 No, I'm not going to explain it.  If you can't figure it
 out, you didn't want to know anyway...  --Larry Wall

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Ice Cream Sandwich problem? not restarting App

2011-12-09 Thread Royston
This is an issue found on a Galaxy Nexus. The situation is as follows. When 
my app is sitting with a Dialog box in the foreground, I turn off the 
phone. I then turn on the phone and go into Camera from the unlock screen. 
If I then exit the Camera app it returns to my app with the correct 
backdrop but no Dialog showing. The background is darkened as it would be 
if the Dialog had been drawn but there is not Dialog and as such the app is 
in no man's land. This can be duplicated 50% of the time on a real device 
but I cannot duplicate on an emulated device. If from this point I again 
lock the device and unlock normally the app is showing with the expected 
dialog and all functioning OK. Is this perhaps an Android bug, is there a 
workaround. 

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

Re: [android-developers] How to Remote wipe SD card

2011-12-09 Thread Jim Graham
On Fri, Dec 09, 2011 at 08:07:46AM -0500, Kristopher Micinski wrote:

 I'm assuming that the reason for this is some sort of somebody stole
 my device I want to wipe the SD card... app

Most definitely NOT a safe assumption.  And even if that were true, if
there was such a capability (or at least, the capability of doing so
with some degree of stealth), it would definitel end up being used for
not-so-innocent purposes.  That much is a given.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

 No, I'm not going to explain it.  If you can't figure it
 out, you didn't want to know anyway...  --Larry Wall

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Re: VerifyException with Android library project

2011-12-09 Thread Bret Foreman
kris,

You're right, a bug is not an accurate way to describe a hard-to-
diagnose failure mode that may be due to a possible platform
misconfiguration. Perhaps we should call it job security for Android
developers.

My main point was to document a possible workaround in the forum in
case others hit the same failure mode - adding to the folk knowledge
of Android. :)

On Dec 9, 8:26 am, Kristopher Micinski krismicin...@gmail.com wrote:
  P.s., glad you got it working, but still doubtful there's an sdk bug...

 I should correct, I'm confident that there is *an* sdk bug, I'm just
 not sure that particular bug is causing this problem :-)

 kris

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


Re: [android-developers] How to Remote wipe SD card

2011-12-09 Thread Kristopher Micinski
Probably not, but I'll assure you 100% that if his answer is something
malicious that's what he'll say it's for.

kris

On Fri, Dec 9, 2011 at 1:10 PM, Jim Graham spooky1...@gmail.com wrote:
 On Fri, Dec 09, 2011 at 08:07:46AM -0500, Kristopher Micinski wrote:

 I'm assuming that the reason for this is some sort of somebody stole
 my device I want to wipe the SD card... app

 Most definitely NOT a safe assumption.  And even if that were true, if
 there was such a capability (or at least, the capability of doing so
 with some degree of stealth), it would definitel end up being used for
 not-so-innocent purposes.  That much is a given.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)            MiSTie #49997       Running FreeBSD 7.0 
 spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W

         No, I'm not going to explain it.  If you can't figure it
         out, you didn't want to know anyway...      --Larry Wall

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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

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


[android-developers] Can not see the custom services in Android Emulator

2011-12-09 Thread RJ
Hi: gurus is there any way I can see the custom services via android
emulator. E.g I have created some services but when I got to setting-
Applications-Running Services I can not see any one of them.

Note I created bunch of them, in process private to application, out
process(:process), boot up one
(android:name=android.intent.action.BOOT_COMPLETED), but none of
them are visible from the running service applet. Do I have to do some
thing special permission wise to fire these services, and that is why
I can not see it running, because they never got permission to run?

I am using Android SDK 2.3.3 on Windows 7 with JDK 1.6.

Thanks,
RJ.

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


Re: [android-developers] How to Remote wipe SD card

2011-12-09 Thread Jim Graham



On Fri, Dec 09, 2011 at 01:36:28PM -0500, Kristopher Micinski wrote:
 On Fri, Dec 9, 2011 at 1:10 PM, Jim Graham spooky1...@gmail.com wrote:
  On Fri, Dec 09, 2011 at 08:07:46AM -0500, Kristopher Micinski wrote:
 
  I'm assuming that the reason for this is some sort of somebody stole
  my device I want to wipe the SD card... app
 
  Most definitely NOT a safe assumption. ?And even if that were true, if
  there was such a capability (or at least, the capability of doing so
  with some degree of stealth), it would definitel end up being used for
  not-so-innocent purposes. ?That much is a given.

 Probably not, but I'll assure you 100% that if his answer is something
 malicious that's what he'll say it's for.

Ah, I see how you meant that now.  Yes, we definitely agree.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| This 'telephone' has too many
spooky1...@gmail.com| shortcomings to be seriously considered
 Running FreeBSD 7.0  | as a means of communication.  The device
ICBM / Hurricane:   | is inherently of no value to us.
   30.44406N 86.59909W  | (Western Union internal memo, 1876)

Android Apps Listing at http://www.jstrack.org/barcodes.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] Should I buy my own apps?

2011-12-09 Thread Kristopher Micinski
On Fri, Dec 9, 2011 at 12:34 PM, sblantipodi
perini.dav...@dpsoftware.org wrote:
 As title.

 I bought a galaxy nexus, when I try to download my own apps it ask me
 for money.
 Should I really buy my own apps?

 Thanks.


uhh... I mean you have the apks... so... ... what stops you from doing
an 'adb push?'

kris

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


[android-developers] Re: onFling() Question

2011-12-09 Thread Derek Winstead
Is there an example of this in action?

SDK's aren't very helpful to me. I'm still new to programming Android or 
Java.

Thanks,
Derek

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

2011-12-09 Thread TreKing
On Fri, Dec 9, 2011 at 11:34 AM, sblantipodi
perini.dav...@dpsoftware.orgwrote:

 Should I really buy my own apps?


Is that rhetorical? You can't do this anyway.

-
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] Re: display.getWidth bug fixed in android 3.2

2011-12-09 Thread Dianne Hackborn
That's not what you want.  It sounds like you want a largest dimension?
 There is some hidden code for getting this, but it is not completely
correct.  We can make a public method for it, but it will need to be fixed
to be more accurate.

On Fri, Dec 9, 2011 at 4:13 AM, guich guiha...@gmail.com wrote:

 Hi Dianne,

 Lemme explain my problem.

 All my application is drawn in an offscreen bitmap. When the
 application starts, i get the maximum width/height of the screen and
 create a square bitmap. This way, when screen rotates, i don't have to
 create another bitmap. This prevents some crashes in my application.

 I'm aware of the bug fix, i saw your comments in another thread.
 What i'm asking is if Google can create a way to retrieve the size
 with something like this:

 public Size getSizeOfScreenIncludingTaskbarArea()
 or
 public Size getSizeOfScreenForOrientation(int orientation) // VERTICAL
 or HORIZONTAL

 This would help a lot.

 thanks for your time.

Guich

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




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

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

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

Re: [android-developers] Dialog and Android lifecycle on ICS (Galaxy Nexus)

2011-12-09 Thread Dianne Hackborn
I'd suggest using fragments and DialogFragment.

On Fri, Dec 9, 2011 at 8:24 AM, Royston roystonpcar...@gmail.com wrote:

 I have an odd but repeatable issue with Dialogs and Android lifecycle on a
 Nexus (emulated and actual  device). I am using showDialog(ID) throughout
 and dismissDialog(ID) to remove. In the tests I run I show a dialog with
 and ID of 10 and dismiss it, I then show a dialog with an Id of 9 and
 dismiss it. I then show a dialog with an id of 7 and turn off the device
 (press F7). My Log shows:

 onCreateDialog ID 7
 onPrepareDialog ID 7
 onCreateDialog ID 9
 onPrepareDialog ID 9
 onCreateDialog ID 10
 onPrepareDialog ID 10

 I.E all three dialogs are recreated but in dialog ID numerical order. If I
 unlock the device/emulator dialog with ID 7 is showing but obviously the
 code thinks the last dialpg shown is ID 10 so variables are pointing
 incorrectly and I get app failure. I understand that dialogs are cached if
 dismissed rather than removed but the sequence here is difficult to manage.
 Thoughts appreciated.

 Roy


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




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

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

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

[android-developers] Giving users access to our data files

2011-12-09 Thread RLScott
My app creates files that mostly for internal use, but on occasion
they could be of some interest to the users on their desktop
computer.  What is the easiest and  most straightforward way to give
my users access to the files my app creates?  I am creating my files
as World Readable.

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

2011-12-09 Thread Mark Murphy
Copy them to external storage.

Or, use ACTION_SEND and the appropriate MIME type and allow the user
to send the files by whatever means is at their disposal (e.g.,
Dropbox).

On Fri, Dec 9, 2011 at 3:03 PM, RLScott fixthatpi...@yahoo.com wrote:
 My app creates files that mostly for internal use, but on occasion
 they could be of some interest to the users on their desktop
 computer.  What is the easiest and  most straightforward way to give
 my users access to the files my app creates?  I am creating my files
 as World Readable.

-- 
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 *Advanced* Android Development_ Version 2.2
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 to reduce the size of image from Camera onPreviewFrame !!!!!

2011-12-09 Thread muhammad.ume...@hotmail.com
Hi,
 My requirement is to save the space on SD Card, so i want to
create an app to take picture of size 1kb, is it possible, and if it
is possible then what can i do.


Thanks and Regards,

umer

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

2011-12-09 Thread sblantipodi
No, really.
I'm trying to buy my apps and it ask me for money.

What is the problem?

On 9 Dic, 20:35, TreKing treking...@gmail.com wrote:
 On Fri, Dec 9, 2011 at 11:34 AM, sblantipodi
 perini.dav...@dpsoftware.orgwrote:

  Should I really buy my own apps?

 Is that rhetorical? You can't do this anyway.

 -
 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: Should I buy my own apps?

2011-12-09 Thread sblantipodi
When I search for my apps on the market, the market says that my apps
costs 3€,
I click on the 3€ button and than it says that I can't buy the
software but it doesn't let me
install it.

Why I can't install my own apps from the market?
Please help.

Thanks.

On 9 Dic, 21:44, sblantipodi perini.dav...@dpsoftware.org wrote:
 No, really.
 I'm trying to buy my apps and it ask me for money.

 What is the problem?

 On 9 Dic, 20:35, TreKing treking...@gmail.com wrote:







  On Fri, Dec 9, 2011 at 11:34 AM, sblantipodi
  perini.dav...@dpsoftware.orgwrote:

   Should I really buy my own apps?

  Is that rhetorical? You can't do this anyway.

  -
  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] how to build libjingle for android?

2011-12-09 Thread Геннадий Дубина
Hi all
I want to add voice and video chat to the app.
i tried use asmack with jingle but it doesn't work.
the app can't bind to stun server. This lib doesn't work on desktop
too.

So i have foubd C lib - libjingle(google code), but i can't find
instruction how to build it for android.

Maybe someone know how to build it?
Or someone know another way how to add voice chat(gtalk) to the app?

Thanks

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


Re: [android-developers] Should I buy my own apps?

2011-12-09 Thread Raymond C. Rodgers

On 12/9/2011 2:35 PM, TreKing wrote:
On Fri, Dec 9, 2011 at 11:34 AM, sblantipodi 
perini.dav...@dpsoftware.org mailto:perini.dav...@dpsoftware.org 
wrote:


Should I really buy my own apps?


Is that rhetorical? You can't do this anyway.


Actually, I needed to do that very thing some months ago and succeeded 
like buying any other app. In my case either my LVL code wasn't right or 
something else was going wrong, and my app was ignoring the Market 
setting to respond as authorized for my email address. I bought my own 
app to get my app to work properly, just pushing the APK to the device 
wasn't enough.


Raymond

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] i have a task , mobile tracking android app , and i am new in android programming .

2011-12-09 Thread ahmed mahmoud eltaher
1- app start-up when mobile is on.( automatic).
2- mobile sent its position to server, every 5 min .
3- data sent must be encryption .

i am a starter in android programming , i asked  there is an API
(Google API ) return position of mobile to server , and i can
encrypted data before sent it to server.

any help ,any idea. :D

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

2011-12-09 Thread Alex Wolfe
I have downloaded eclipse, the android SDK starter package, and
installed the Developer Tools. Following the guide on
developer.android.com exactly. After the developer tools have
installed, and eclipse restarts I get two error messages:

1: SDK Platform Tools component is missing! Please use the SDK
Manager to install it.

So, I go in eclipse under Windows  Android SDK Manager and while
trying to fetch the files it brings up the sdk manager log with the
following:
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml

Failed to fetch URL 
https://dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: Invalid argument: connect

Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml

Failed to fetch URL 
https://dl-ssl.google.com/android/repository/repository-5.xml,
reason: Invalid argument: connect

Done loading packages.

This also occurs when I try to run the SDK Manager.exe. I have tried
both http, and https.

Because of this error I cannot use the SDK Manager to install it. Any
ideas on how to fix this?

2: Failed to initialize Monitor Thread: Unable to establish loopback
connection. No idea what this one means.

Any help would be greatly appreciated. I have spent a few hours
googling trying to find fixes but nothing seems to work, or the fixes
refer to a non-existent settings window.

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

2011-12-09 Thread sonu
setListAdapter(new ArrayAdapterString(this,
   android.R.layout.simple_list_item_multiple_choice,
results));
getListView().setTextFilterEnabled(true);



i want to use my own page place_order
and replacing simple_list_item_multiple_choice .what should i do.
thanks for help..

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


[android-developers] Android Pakistan

2011-12-09 Thread Bilal Akhtar
Can developers sell their application from Pakistan?

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

2011-12-09 Thread anil
Does Android support subtitle during video playback ?
I need to enable the subtitle in android media framework.

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

2011-12-09 Thread Bryan Stinchfield
Hi everyone, been searching and searching but not finding any answers
or good information. Am hopeful that someone can help me. To start
with, yes, I've searched groups and google for answers but there don't
seem to be any. My app, Angry Birds Walkthrough Portal, was suspended
from the Android Marketplace. This is all that i received from google
about it:

This is a notification that the application, Angry Birds Walkthrough
Portal, with package ID com.abwp has been removed from Android Market
due to a violation of the Developer Content Policy. For specific
details regarding this particular suspension, please see the
Intellectual Property and Impersonation or Deceptive Behavior sections
of our Content Policy. Please also be advised that your application’s
title, description, and screenshots are also subject to the above
Terms.

Please review the Content Policies, Developer Distribution Agreement,
and Business and Program Policies before you create or upload
additional applications. Please also consult our guidelines on rating
your application.

If your developer account is still in good standing, please feel free
to make any necessary revisions and upload a new version of the
application that is compliant with the above terms.

Please be advised that violations may result in a suspension of your
Android Market Publisher account, and may also result in actions,
including possible suspension, taken against any associated Android
Market Publisher, AdSense, Google Checkout, or AdMob accounts.

If you have an official license to use the protected assets evident in
your Market listing, you can open the appeals process by providing
this documentation in your reply to this notification.

Thanks,
The Android Market Team

Any ideas what they are referring to? Here's a link to what the app
looked like and the description from appbrain.com:

http://www.appbrain.com/app/angry-birds-walkthrough-portal/com.abwp

Yes, i did use keywords in the description, but so does google and
numerous other extremely popular apps - xconstructions for instance,
the lite version has been downloaded over 5 million times and they are
an editor of choice ... yet they use keywords. My keywords did include
angry birds, but that being used as a keyword is completely related to
my app.

The only other infraction I see is one that hundreds of other
developers did, they used artwork from the app. Actually though, the
image i used for my icon wasn't even from a screenshot of the game or
their website (Rovio's) it was from somewhere else, I can't even
remember now it was last year.

Has ANYONE had any success at contacting google, disputing the alleged
infractions and getting their app reposted? Yes, I can retool the
artowrk, I already did that and I re-released it, but I lost all the
comments I had, all the ratings, all the +1's. I had the best
placement possible, int he top 4 most viewed and downloaded next to
angry birds, angry birds seasons and angry birds rio - all before I
added the keywords, which even google themselves do.

Then they mention impersonating an app - clearly, based ont he
description and the title of the app it is NOT angry birds ... WTH,
you know? I make an app, pay my developer fees, pay them 30% of what I
make in sales and I can't even dispute these charges? I can't even see
who complained about these allegations against my app? For all I know
it could have been another walkthrough dev complaining that my app was
like theirs. What about all the apps with duplicate names? The ones
that blatantly rip off artwork from Angry Birds and other games? Why
are they still there if mine isn't? Ok, so I link to YouTube videos -
plenty of other apps do that as well, why are they still there? Can't
I go and complain about apps that do the same thing as mine yet were
released afterwards? After beginning to go through this horrid
experience, I've come to find out that oogle has incredibly lacking
support for the people that make them money, their developers. This is
ludicrous that i can't even talk to anyone about the infractions they
mention or even dispute it. Why don't they warn you about it and give
you 24 hours to fix it before removing your app? When I released the
walkthrough portal I was one of very few devs doing it, now the market
is proliferated with walkthrough apps for  Angry Birds ... and I lost
my number one placement to all of them and I can't even dispute
it ...

please, leave your rants or comments or suggestions, i'm open to
anything. To anyone who is going to post something like you violated
the TOS, you knwo what you did - get lost, I wouldn't be posting this
if I knew what I did wrong, i'm not doing anything anyone else isn't
doing.

Also, does anyone know if you can refund the purchase price of an app
yet let the purchaser keep it? I'd like to let the people who
purchased the old suspended app but the new version yet refund them
their money but let them keep the app. Let me know how to do this if
it is possible.


[android-developers] Root Access on Android SDK

2011-12-09 Thread CSEKHAR
I have installed SQLite Editor app on the emulator but its showing
that ;The application don’t have root permission. Tried apps like
SuperUser to provide root access bur unable to do the same.

What is the best way to gain root access from Emulator itself? Please
post the step by step process to gain the root access on Android SDK.

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

2011-12-09 Thread 皓 陈
为什么部分手机型号在谷歌电子市场搜索不到金山电池医生,例如小米手机 me525 等,请告知一下原因。谢谢

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Viewing two activities on one screen through that both can navigate at a time ..

2011-12-09 Thread Arfin
I have created two activities, one list view and another to edit them.
I need to display both the activities on one screen at the same time
so that i can select any item from the list view and can go for edit
right away. Means I am creating a button for edit at the bottom and
list view will displayed at the top. waiting for your precious reply !!

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

2011-12-09 Thread Arfin
-How to add items dynamically(one by one) in the ListView???
-i.e I m downloading the data from the server one by one and i need
to add it in the listview in the same way.
-What i am trying is, I have created  two activity class one of them
is ListActivity class and another is normal Activity class.
 -normal Activity class will pass the data to ListActivity class and
the data will be displayed on the list .
- so exactly i want to call ListActivity class from normal Activity
class again and again to add the data passed by the normal activity
class.
- Is it possible to do ?? If there is another way to do then suggest
me dat too...  kindly give me a reply ... thanx in advance !!

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


[android-developers] Re: Want to join this group

2011-12-09 Thread FRANCISCO
Just go to this link, there you can find all the groups


http://developer.android.com/resources/community-groups.html


On Dec 7, 4:42 am, chethan chetanhe...@gmail.com wrote:
 Hi,

 I am Chethan, a software engineer currently working on android.  Would
 you please allow me to join this group.

 Thanks,
 Chethan

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

2011-12-09 Thread gew
Has anyone had trouble porting an application that uses the microphone
to ICS?

Interestingly enough, my application works when compiled for 2.3.3 and
installed on a 4.0 device.

But when I compile for 4.0 it no longer captures audio.

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

2011-12-09 Thread Florent Pillet
I'm having an issue that is hard to figure out, where requestLayout()
calls from child views don't seem to be honored. Here is what I'm
doing:

- my activity has a main FrameLayout in MATCH_PARENT mode for its main
view
- my containers derive from ViewGroup. Mostly, all items have absolute
positions. Initial measurement and layout work fine
- sometimes, a child view does not immediately know its size, because
it's waiting for a remote image to load. During the measurement pass,
it sets its measure dimensions to (0,0) then performs a
requestLayout() later when the image arrives.

What I'm seeing is that the requestLayout() never ends up redoing a
layout pass. I have a similar issue with lists, where a ListView
enclosed in my container (equivalent to AbsoluteLayout) will never
update when new items are being added, even though I properly
notifyDataSetChange(), etc.

So I'm stuck here with containers that properly perform initial layout
but never perform further layouts. I'm pretty sure I'm missing
something (maybe a flag to set somewhere) that would unlock this
situation. Unfortunately, hours of looking at the Android source code
for View, ViewGroup and various layouts didn't help much.

Is there anything obvious I'm missing here, that would prevent
honoring further requestLayout() calls along my view hierarchy?

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

2011-12-09 Thread Tony Houghton
I want to develop/port games for Android. Most of the Android books
assume some knowledge of Java which I don't really know yet. I'm an
experienced C programmer (including use of GObject so I'm familiar with
concepts like Interfaces), and have done a bit of C++, so I don't think
I'll have much trouble picking up the core language of Java. The
difficult part of learning a new programming language is learning its
libraries and I think Java has a huge range, so a book/online tutorial
which focuses on the ones most likely to be useful in Android would be
helpful.

Any recommendations?

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

2011-12-09 Thread Tony Houghton
I want to develop/port games for Android. Most of the Android books
assume some knowledge of Java which I don't really know yet. I'm an
experienced C programmer (including use of GObject so I'm familiar with
concepts like Interfaces), and have done a bit of C++, so I don't think
I'll have much trouble picking up the core language of Java. The
difficult part of learning a new programming language is learning its
libraries and I think Java has a huge range, so a book/online tutorial
which focuses on the ones most likely to be useful in Android would be
helpful.

Any recommendations?

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

2011-12-09 Thread akash jain
this is my first android project, and there is a problem. I want to
create a toast as a notifier when any application started, by user
click on the devicefor example when user click on android gallery
the toast will be generated Gallery started...what can i do to
solv 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] Recommended reading to learn Java for Android

2011-12-09 Thread Kristopher Micinski
On Fri, Dec 9, 2011 at 11:37 AM, Tony Houghton h...@realh.co.uk wrote:
 I want to develop/port games for Android. Most of the Android books
 assume some knowledge of Java which I don't really know yet. I'm an
 experienced C programmer (including use of GObject so I'm familiar with
 concepts like Interfaces), and have done a bit of C++, so I don't think
 I'll have much trouble picking up the core language of Java. The
 difficult part of learning a new programming language is learning its
 libraries and I think Java has a huge range, so a book/online tutorial
 which focuses on the ones most likely to be useful in Android would be
 helpful.

 Any recommendations?


I think the general advice that is given in this situation is that
Java isn't all that hard to learn.  You can go find the books written
by Sun (well I guess Oracle) on Java, and these tend to be pretty good
guides.  As far as the libraries you need for *Android*, you should
only consider the standard core APIs, excluding the GUI stuff in Java.
 In other words, don't buy a book that is heavily dependent on using
Swing, etc... (actually it appears that this might be somewhat hard to
do..).

A bit of searching reveals some common answers:

http://stackoverflow.com/questions/167179/java-tutorial

I'll echo that the 'standard' java tutorials are very good and you
should start there, definitely avoiding the learn x in fixnum days.

If you're coming from C the hardest thing will be adapting to thinking
in object oriented terms.  This might not be too difficult, but there
are some fairly deep concepts that just working with examples in the
SDK demos might not explain.  Bruce Eckel's books come up again and
again for this sort of thing.  I will emphasize, however, that java
just simply isn't that hard a language, and picking up Android is much
more about understanding the framework and design rather than the Java
language.

Oh, and wanting to write games rather than standard apps adds some
multiplier to your learning time, because you'll necessarily (unless
you're doing simple java games that just work with 2d graphics
packages) be doing something complicated under the covers involving
the hardware..  And in general graphics programming just has math
behind it that other areas of programming don't (necessarily).

Kris

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


[android-developers] http://http://dl-ssl.google.com/android/repository/repository.xml:8600 refused

2011-12-09 Thread 明 林
The problem is I  dowanload Android SDK,both sites download URLs seem
to be blocked (throws a connection refused exception)
see:
  Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL 
http://dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: Connection to 
http://http://dl-ssl.google.com/android/repository/repository.xml:8600
refused
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL 
http://dl-ssl.google.com/android/repository/repository-5.xml,
reason: Connection to 
http://http://dl-ssl.google.com/android/repository/repository.xml:8600
refused
Done loading packages.


i think the url  (http://http://dl-ssl.google.com/android/repository/
repository.xml:8600 ) is 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] Mobile Logs Application

2011-12-09 Thread Jennifer Smith
I recently stumbled upon an application called Mobile Logs on my
android in settingsmanage applicationsthird party.  When I look at
it, it appears to be some sort of tracking application that states it
has the ability to intercept outgoing calls, read text messages,
internet searches, find phone location, etc.  I did not install this
and I think that someone else in my house put it there.  Does anyone
know what this is?  How do I find out who is accessing this
information?

Thank you so much for your help.

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


[android-developers] Why would my background disappear when adding a button?

2011-12-09 Thread SkolVikingsGuy
Why would the code below fail?

I have a blue relativeLayout in my main.xml. On click I'm adding a
green button.

When running on my Motorola Xoom I click the screen and I see the
green button show up, but the background changes from blue to black.
If I click again my blue background shows. Click again and I see
black...

What am I missing?

Thanks for any help.


package com.android.mikeviewtester;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;

public class ViewTesterActivity extends Activity {

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

// set the relative layout as our view
setContentView( R.layout.main );

RelativeLayout currentView = (RelativeLayout)
findViewById( R.id.MyRelativeLayout );

// set a listener
currentView.setOnTouchListener( 
(android.view.View.OnTouchListener)
mOnTouchListener );
}

private android.view.View.OnTouchListener mOnTouchListener = new
android.view.View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {

if ( v != null )
v.onTouchEvent( event );

if ( event.getAction() == MotionEvent.ACTION_UP 
) {

android.widget.RelativeLayout vw =
(android.widget.RelativeLayout) findViewById( R.id.MyRelativeLayout );

// create and add a new cyan button
Button btn = new Button( 
ViewTesterActivity.this );
btn.setBackgroundColor( Color.GREEN );
vw.addView( btn, 100, 100 );
vw.invalidate();
btn.invalidate();
}

return true;
}
};
}



?xml version=1.0 encoding=utf-8?
RelativeLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent
android:id=@+id/MyRelativeLayout
android:background=#FF
/RelativeLayout

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

2011-12-09 Thread Bamboomy
Dears,

I've looked around a bit on google, stack overflow and the android dev
site but can't find quite what I'm searching for...

The idea is to implement a lock for android that requires a code to
unlock your device.

So:

1) Normally the app doesn't do anything at all. (this is the easy
part ;-)
2) If necessary, when the phone/tablet goes to sleep some preparation
code gets executed (but I'm a bit in the dark on this one)
3) When the device is turned on again, there is an interface which
asks a pin code which needs to be correct to be able to use the phone/
tablet, it shouldn't be possible to use the phone/tablet unless the
pin code is correct.
(this to prevent unauthorized use of your tablet/phone, this way you
can safely store passwords and the such on sites and apps in your
phone/tablet without worrying that someone without the pin code can
read your mail)

Strictly speaking the app doesn't need to do anything unless the
tablet returns from sleep mode,
but I can't even find pointers to execute code just then (I'm also not
sure you can do this with the sdk).

I'm quite confident that when I know how to execute code at that
moment, I could figure out how to lock the device unless the pin code
is correct,
for the moment I'm not worried yet about that part of the application
(I'd come back to the list when I'd need pointers on that after
searching myself.)

How can I achieve this behavior?

Thanks for reactions,

and any pointers/comment is welcome...

Sander

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

2011-12-09 Thread Mettan
Hello,

I have a listview with 100-500 row, each row can contain three images.

Here, my getview :

@Override
public View getView(int position, View convertView, ViewGroup parent)
{
Viewvi = convertView;
ViewHolder  holder;
int index = position * rowNumber;

if (convertView == null)
{
holder=new ViewHolder();
vi = inflater.inflate(R.layout.lib_list_cell, null);
holder.couv1 = (ImageView)
vi.findViewById(R.id.libCellCouv1);
holder.couv2 = (ImageView)
vi.findViewById(R.id.libCellCouv2);
holder.couv3 = (ImageView)
vi.findViewById(R.id.libCellCouv3);
vi.setTag(holder);
}
else
holder = (ViewHolder) vi.getTag();

   String couv = mld.getCouvURL(index);
if (holder.couv1.getTag() == null || (couv.compareTo((String)
holder.couv1.getTag()) != 0))
{
holder.couv1.setTag(couv);
imgLoad.displayImage(couv, contex, holder.couv1,
couvMaxHeight, couvMaxWidth, ImageLoader.DISK_CACHE_TEMPO, false);
}
couv = mld.getCouvURL(index + 1);
if (holder.couv2.getTag() == null || (couv.compareTo((String)
holder.couv2.getTag()) != 0))
{
holder.couv2.setTag(couv);
imgLoad.displayImage(couv, contex, holder.couv2,
couvMaxHeight, couvMaxWidth, ImageLoader.DISK_CACHE_TEMPO, false);
}
couv = mld.getCouvURL(index + 2);
if (holder.couv3.getTag() == null || (couv.compareTo((String)
holder.couv3.getTag()) != 0))
{
holder.couv3.setTag(couv);
imgLoad.displayImage(couv, contex, holder.couv3, couvMaxHeight,
couvMaxWidth, ImageLoader.DISK_CACHE_TEMPO, false);
}
return vi;
}


My listview is slow, in my opinion because the two setImageBitmap of
my ImageLoader.

For exemple, with :

public void DisplayImage (String url, Context context, ImageView
imageView, int maxH, int maxW, int diskSave, boolean littreLogo)
{
if (url != null)
{
queuePhoto(imageView.getTag().toString(), context, imageView,
maxH, maxW, diskSave);
if (imageView != null)
imageView.setImageBitmap(null);
}
}

it's slow, but if i comment imageView.setImageBitmap(null); it's
already faster!

(If i remove also the final imageView.setImageBitmap(bmp); it's
perfect)


Any ideas for solve this?

(I work on HoneyComb 3.0 with hardware accelerated.)

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] Native Thread Crashes(Segmentation fault) on Activity change

2011-12-09 Thread Pradeep Appala
Hi
I am new to Android wanted to port my linux application to android
My Android App has 3 activities

1)In the first activity i  load my native library (which creates
multiples threads in native code.)
Native code(threads) work fine till i change to another activity.
If  app switches to second activity from first activity the
native code crashes with seg 11 error.

How to retain the native threads even after switching to other
activity.

2)What is the life time of the native threads invoked in the
onCreate() of first activity.Is it application wide or fixed to the
activity itself?

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] When the phone receives a pairing request from another bluetooth device, sometimes a pairing dialog pops up, sometimes just a notification.

2011-12-09 Thread jimmy
Can somebody tell me the purpose of the following segment codes in the
method  onReceive()  in BluetoothPairingRequest.java
Why sometimes a pairing dialog pops up, and sometime just a
notification when the phone receives a pairing request? Thanks.

if (powerManager.isScreenOn()
 
localManager.shouldShowDialogInForeground(deviceAddress)) {
// Since the screen is on and the BT-related activity
is in the foreground,
// just open the dialog
context.startActivity(pairingIntent);

} else {

// Put up a notification that leads to the dialog
Resources res = context.getResources();
Notification notification = new Notification(
android.R.drawable.stat_sys_data_bluetooth,
 
res.getString(R.string.bluetooth_notif_ticker),
System.currentTimeMillis());

PendingIntent pending =
PendingIntent.getActivity(context, 0,
pairingIntent,
PendingIntent.FLAG_UPDATE_CURRENT);

String name =
intent.getStringExtra(BluetoothDevice.EXTRA_NAME);
if (TextUtils.isEmpty(name)) {
name = device.getName();
}

notification.setLatestEventInfo(context,
res.getString(R.string.bluetooth_notif_title),
 
res.getString(R.string.bluetooth_notif_message) + name,
pending);
notification.flags |= Notification.FLAG_AUTO_CANCEL;
notification.defaults |= Notification.DEFAULT_SOUND;

NotificationManager manager = (NotificationManager)
 
context.getSystemService(Context.NOTIFICATION_SERVICE);
manager.notify(NOTIFICATION_ID, notification);
}

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

2011-12-09 Thread topazmax
i was able to download the sdks by running installer_r15-windows.exe,
after it finishes, it runs the sdk manager.
but still cant do it any other way!
is it possible the ADT tools didn't install properly?
and if so how do i uninstall to try again?

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

2011-12-09 Thread Matt Sealey, Genesi USA, Inc.
Hi,

Setting up a build box here, lots of CPUs and RAM for Android
tinderbox and general development and I keep running into the
strangest errors.. following the instructions to the letter I get to
repo sync (with --trace to show what's going wrong) and at random,
several parts of the repo do not sync properly, as follows

: export GIT_DIR=/home/me/android/.repo/projects/bionic.git
: git fetch ~/android/.repo/projects/bionic.git/clone.bundle +refs/
heads/*:refs/remotes/aosp/* refs/tags/*:refs/tags/*
fatal: pack has bad object at offset 150360: inflate returned -5
error: index-pack died
: git fetch aosp --tags +refs/heads/*:refs/remotes/aosp/*

: export GIT_DIR=/home/me/android/.repo/projects/bootable/recovery.git
: git fetch /home/me/android/.repo/projects/bootable/recovery.git/
clone.bundle +refs/heads/*:refs/remotes/aosp/* refs/tags/*:refs/tags/*
error: inflate: data stream error (incorrect data check)
fatal: pack has bad object at offset 147211: inflate returned -3
error: index-pack died
: git fetch aosp --tags +refs/heads/*:refs/remotes/aosp/*

 This is littered with the occasional Python backtrace:

Exception in thread Thread-150:
Traceback (most recent call last):
   File /usr/lib/python2.7/threading.py, line 552, in
__bootstrap_inner
 self.run()
   File /usr/lib/python2.7/threading.py, line 505, in run
 self.__target(*self.__args, **self.__kwargs)
   File /home/me/android/.repo/repo/subcmds/sync.py, line 186, in
_FetchHelper
 current_branch_only=opt.current_branch_only)

 And the occasional, slightly rarer in that it only happened
about 10 times today instead of 10,000, a simple hang of the repo sync
usually always after trace says it's doing or has done

: export GIT_DIR=/home/me/android/.repo/projects/docs/
source.android.com.git
: git pack-refs --all --prune 1| 2|
: load refs /home/me/android/.repo/projects/docs/
source.android.com.git
: git symbolic-ref -m manifest set to refs/tags/android-4.0.1_r1.2
refs/remotes/m/android-4.0.1_r1.2 refs/tags/android-4.0.1_r1.2 1| 2|

(and the terminal is just sitting there, it's responsive, it prints ^C
when I ctrl-C it and other SSH sessions are running just fine)

I'm at a loss. I've done some Googling and found many references to
the same kind of error, mostly about a year old or very very recently
(last two weeks) suggesting it is a common failure somehow, but the
suggestions to fix it I have tried so far simply haven't made any
difference (bumping http.postBuffer to something higher, disabling hw
checksumming on the ethernet card). The system is a 8-core Xeon X2250
with 32GB RAM and a 4TB disk array, works fine for everything else and
used to run virtual machines through Xen but it's now being dedicated.
The hardware checks out, nothing is broken, the array is fine and what
is going over the network seems fine.

I can reproduce the errors almost identically on a VMWare Workstation
instance of the same OS (Ubuntu 11.04 Natty Narwhal) at the same patch
level, and almost identical configuration (the only differences being
a couple of tools I have on the new box to help me out on a remote
terminal, like htop, screeny utilities and so on).

This is really putting a downer on the Android building. Has anyone
got any ideas?

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


[android-developers] Problem with MTP not refreshing in Windows

2011-12-09 Thread Jon
Hello, I am having a problem getting the MTP service to refresh the
file list in Windows. Since USB mounting is not available on newer
devices, they use MTP to transfer files.

I am using Windows 7, Galaxy Nexus (also a problem on Xoom, probably
all 3.X and higher devices).

Here are steps for the problem:

1. Connect android device. The folders and files for the sdcard
equivalent show in Windows.
2. On the device, run a java program that will create a file (source
code below)
3. (BUG) The file list is not updated in Windows. Does not show the
new file, does not update file sizes if you modified an existing
file.

Disconnecting/reconnecting usb table does not fix this. You must
reboot the android device for Windows to update the file list.

Here is a simple code sample to create a file, which shows the problem
above:

// Sample code
File file = new File(/sdcard/test.txt);
BufferedWriter buffer = new BufferedWriter(new FileWriter(file,
false));
buffer.write(Test);
buffer.close();

If you look on the device using a file manager, the file does exist.
The adb tools are capable of retrieving it. Windows is not. You must
reboot the device to get it.

This causes problems with updated files as well. The new file size is
not seen in Windows, so if you copy the file off the device, you copy
the new data, but only up to the old file size. So most likely the
file is now corrupt, depending on what type of data it contained.

I see that pictures and such show up immediately (using the camera).
So there must be some way around this. I also see that a file manager
program I downloaded will cause Windows to see files I copy and delete
using it (ASTRO file manager).


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 edit or add metadata in .3ga(encoded by AAC)

2011-12-09 Thread 훈섭 정
Please kindly let me know how to edit or add metadata in .3ga(encoded
by AAC).
is it possible on Android platform?

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

2011-12-09 Thread Quibriya Gulam
No its just an example of an code. I'm not sure what you mean by using the
debugger to step through to step through and see the call stack! Can you
supply a step by step guide? I'm kind of a noob.

On 8 December 2011 20:16, TreKing treking...@gmail.com wrote:

 On Thu, Dec 8, 2011 at 12:27 PM, m4kz moraga@gmail.com wrote:

 The problem is that startLocationUpdates is always called inmediatly
 after stopLocationUpdates or at any time, but i am not triggering any
 message for that, it is just happening.


 Have you used the debugger to step through and see the call stack when
 this happens?


 My code is at follows:

 @Override
public void handleMessage(Message msg) {
case STOP_LOCATION_UPDATES:
stopLocationUpdates();

case START_LOCATION_UPDATES:
startLocationUpdates();

  ..more cases...

 }


 Is that your actual code? Because A) that shouldn't compile without a
 switch and B) you have no break statements, so control will fall down
 to your start case, which might explain your issue.


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

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

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

[android-developers] case insensitive unique text column and german umlauts

2011-12-09 Thread Fritz Schwarz
Hi,

I want to create a table with a unique textcolumn. It should be case
insensitive, so for example only one of example or Example can be
stored.

It works by using the NOCASE collate. But there is problem with german
umlauts and - I think - other nonstandard ascii characters.

So i used the android collate UNICODE, but it seems, this is not case
insensitive. Sorting looks good, but you can store example and
Example.

Is it possible to create a unique case insensitive textcolumn for
nonstandard ascii characters in android. (I use android 2.2. in the
emulator)

Thanks a lot

f.schwarz

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Im trying to unlock boot loader on xperia play need help!

2011-12-09 Thread Quibriya Gulam
I'm following the Sony Ericsson (SE) website to unlock the boot
loader. but it doesn't seem to work.
On your computer, you will be asked for drivers. Point to the
usb_driver folder where you placed the android_winusb.inf-file, and
select the Android Boot loader Interface-file.
Nothing comes up absolutely nothing. (What is the Android Boot loader
Interface-file and where do i find it?)
And the drivers I've downloaded from SE website, what do I do with
them?

When i do put in the fastboot.exe -i 0x0fce oem unlock
0x*... it says;
waiting for device

Any help you guys

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

2011-12-09 Thread guibsou
Hi all !

Is there a method to remove directories (directories and files created
on the sdcard by the application) when i remove this same
application ?

i don't find any solution on the web.

thank you for answers

Guibsou

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


[android-developers] Re: Detect if the device is a tablet or phone

2011-12-09 Thread MarkG123
Try this method.  Works for me...   Might not be the proper way and I
have yet to see what the ICS effect will be, but for now I can
support tablets and phones in the same apk, with both a phone and
tablet layout..

http://tinyurl.com/86n632x

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

2011-12-09 Thread Sam
The InputMethodManager is connected to an EditText view.  After orientation 
change, I create a new EditText and this one now has focus.  However, the 
IMM does not change its mServedView to the new EditText. 

Is there anyway to connect the new edit text to the IMM. I dont see any 
APIs in IMM, Or any workarounds? 

This is causing the softkeyboard to NOT display on touching the new edit 
text. 

I can see the old edit text connected to the IMM in my variables window in 
Eclipse. 



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

2011-12-09 Thread topazmax
i cant seem to download anything with the sdk download manager (from
eclipse or otherwise)
i get an acces denied error immediately after the 1/2 download
message

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

2011-12-09 Thread Jason Chang
Hi;

I'm trying to build the Android 2.3.3 for Nexus One (HTC Passion) on my
Ubuntu 10.04 64 bit machine. I first ran the extract-files.sh and get all
the proprietary files from the HTC Passion device which
was loaded with Android 2.3.3. I could successfully build the code and
flashed the boot, recovery, system and userdata images to the device. But
when I booted the device I got endless loop:

12-09 01:27:06.664: E/NetdConnector(114): Communications error
12-09 01:27:06.664: E/NetdConnector(114): java.io.IOException: No such file
or directory
12-09 01:27:06.664: E/NetdConnector(114): at
android.net.LocalSocketImpl.connectLocal(Native Method)
12-09 01:27:06.664: E/NetdConnector(114): at
android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
12-09 01:27:06.664: E/NetdConnector(114): at
android.net.LocalSocket.connect(LocalSocket.java:98)
12-09 01:27:06.664: E/NetdConnector(114): at
com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:99)
12-09 01:27:06.664: E/NetdConnector(114): at
com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:83)
12-09 01:27:06.664: E/NetdConnector(114): at
java.lang.Thread.run(Thread.java:1019)
12-09 01:27:06.667: E/NetdConnector(114): Error in NativeDaemonConnector
12-09 01:27:06.667: E/NetdConnector(114): java.io.IOException: No such file
or directory
12-09 01:27:06.667: E/NetdConnector(114): at
android.net.LocalSocketImpl.connectLocal(Native Method)
12-09 01:27:06.667: E/NetdConnector(114): at
android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
12-09 01:27:06.667: E/NetdConnector(114): at
android.net.LocalSocket.connect(LocalSocket.java:98)
12-09 01:27:06.667: E/NetdConnector(114): at
com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:99)
12-09 01:27:06.667: E/NetdConnector(114): at
com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:83)
12-09 01:27:06.667: E/NetdConnector(114): at
java.lang.Thread.run(Thread.java:1019)

I google many hours and couldn't get any help.
Could someone help for this problem ?
Very appreciated.

JSC

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

2011-12-09 Thread Teresa Halderman
I am having troubles downloading eclipse application and the SDK. The
SDK is not working.

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


  1   2   >