[android-developers] how to use ProGuard ?

2012-06-23 Thread ala hammad
hello all ,
i want to know how to use proguard ??
i do what document say but size of .apk same after use and before so there 
is something wrong ..
i do thing like this :
add proguard.config=proguard.cfg to project.properties
and add new file proguard.cfg with setting  ..
but there is something wrong ..

please help me ..

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

Re: [android-developers] Android how to convert multiple images in to single gif format..

2012-06-23 Thread RAJESH
Hi Mog , 

Is there any way to convert the images into the movie using FFMPEG in C ??? 
can you provide me a bit of code ? 

On Saturday, June 23, 2012 10:50:10 AM UTC+5:30, MagouyaWare wrote:

 Again, this has nothing to do with Android.  There is nothing in the 
 Android API for doing this, AFAIK...

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


 On Fri, Jun 22, 2012 at 11:15 PM, RAJESH sdipo...@gmail.com wrote:

 Hi Mag, 
  we have this option in native codes 


 On Friday, June 22, 2012 9:18:05 PM UTC+5:30, MagouyaWare wrote:

 This has nothing to do with Android

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


 On Fri, Jun 22, 2012 at 6:55 AM, RAJESH sdipo...@gmail.com wrote:

 Hi all , 

 Anyone here can advice me , How to convert the multiple images into the 
 Single GIF format. ?? 

 Thanks ,
 Rajesh K . 

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


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




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

[android-developers] Re: how to use ProGuard ?

2012-06-23 Thread Pent
Try setting an absolute path to the proguard config to make sure it's
being picked up.
Also make sure you have the latest SDK.

Pent

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


[android-developers] Re: list_selector_background_focused.9.png missing in ldpi

2012-06-23 Thread al
From 
http://developer.android.com/training/basics/supporting-devices/screens.html

*Note:* Low-density (ldpi) resources aren’t always necessary. When you 
provide hdpi assets, the system scales them down by one half to properly 
fit ldpi screens


Am Donnerstag, 21. Juni 2012 21:33:14 UTC+2 schrieb powder366:

 Hi, 

 I noticed that the file list_selector_background_focused.9.png is 
 missing in directory ldpi, but exists in mdpi, hdpi and xhdpi 

 platforms/android-15/data/res/drawable-mdpi 
 platforms/android-15/data/res/drawable-hdpi 
 platforms/android-15/data/res/drawable-ldpi   - missing 
 platforms/android-15/data/res/drawable-xhdpi 

 Does anyone know why? 

 Regards Jonas. 


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

[android-developers] Re: how to use ProGuard ?

2012-06-23 Thread ala hammad
thank you for your answer ...
but i think progaurd include by default in android ..
please help me how to use it ..

On Saturday, 23 June 2012 10:33:28 UTC+3, Pent wrote:

 Try setting an absolute path to the proguard config to make sure it's 
 being picked up. 
 Also make sure you have the latest SDK. 

 Pent

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

2012-06-23 Thread Harri Smått
On Jun 22, 2012, at 11:34 PM, Robert Nekic wrote:

 Is there a process for being considered for the Top Developer designation on 
 Google Play? 

I would guess this happens when your applications get 10+ million downloads or 
something. Maybe it helps Google Play team to catch your account - plus maybe 
there's some other criteria too. Nothing too specific I knew about though, just 
guessing.

--
H

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


Re: [android-developers] Re: how to use ProGuard ?

2012-06-23 Thread Harri Smått
These days there should be automatically added (commented) line in 
project.properties file;

# To enable ProGuard to shrink and obfuscate your code, uncomment this 
(available properties: sdk.dir, user.home):
# proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt

If you have this line, simply uncomment latter one.

--
H

On Jun 23, 2012, at 10:45 AM, ala hammad wrote:

 thank you for your answer ...
 but i think progaurd include by default in android ..
 please help me how to use it ..
 
 On Saturday, 23 June 2012 10:33:28 UTC+3, Pent wrote:
 Try setting an absolute path to the proguard config to make sure it's 
 being picked up. 
 Also make sure you have the latest SDK. 
 
 Pent
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: how to use ProGuard ?

2012-06-23 Thread ala hammad
i try what you say and i got this message :
Invalid proguard configuration file path ..\proguard.cfg does not exist or 
is not a regular file

please help ...

On Saturday, 23 June 2012 09:19:38 UTC+3, ala hammad wrote:

 hello all ,
 i want to know how to use proguard ??
 i do what document say but size of .apk same after use and before so there 
 is something wrong ..
 i do thing like this :
 add proguard.config=proguard.cfg to project.properties
 and add new file proguard.cfg with setting  ..
 but there is something wrong ..

 please help me ..


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

[android-developers] Re: Android and webservice Apache Axis

2012-06-23 Thread Nguyen Le
I too, please help me!!!

On Friday, November 7, 2008 5:42:27 PM UTC+7, Cattivik wrote:

 Can I call/access to a webservice apache axis from android? 
 If yes, how can I do? 
 Plese, give me an example or a link 

 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] how to use ProGuard ?

2012-06-23 Thread Harri Smått
On Jun 23, 2012, at 12:21 PM, ala hammad wrote:
 i try what you say and i got this message :
 Invalid proguard configuration file path ..\proguard.cfg does not exist or is 
 not a regular file

Are you using regular Eclipse + ADT 19 combination?

--
H

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

2012-06-23 Thread ala hammad
is there ADT19 ?? i use 18 with last update with Eclipse ...

On Saturday, 23 June 2012 12:45:26 UTC+3, Harri Smått wrote:

 On Jun 23, 2012, at 12:21 PM, ala hammad wrote: 
  i try what you say and i got this message : 
  Invalid proguard configuration file path ..\proguard.cfg does not exist 
 or is not a regular file 

 Are you using regular Eclipse + ADT 19 combination? 

 -- 
 H 


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

[android-developers] Re: how to use ProGuard ?

2012-06-23 Thread ala hammad
thank you all i update eclipse and SDK and everything work fine ...
thank you for your time ...

On Saturday, 23 June 2012 09:19:38 UTC+3, ala hammad wrote:

 hello all ,
 i want to know how to use proguard ??
 i do what document say but size of .apk same after use and before so there 
 is something wrong ..
 i do thing like this :
 add proguard.config=proguard.cfg to project.properties
 and add new file proguard.cfg with setting  ..
 but there is something wrong ..

 please help me ..


On Saturday, 23 June 2012 09:19:38 UTC+3, ala hammad wrote:

 hello all ,
 i want to know how to use proguard ??
 i do what document say but size of .apk same after use and before so there 
 is something wrong ..
 i do thing like this :
 add proguard.config=proguard.cfg to project.properties
 and add new file proguard.cfg with setting  ..
 but there is something wrong ..

 please help me ..


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

[android-developers] Re: Destroy WebView without leaking window

2012-06-23 Thread Pent
Thanks for your response.

 accomplish? I'm asking because these dialogs are modal. All interaction and
 app reactions are meant to take place within the scope of that dialog until
 *the user* makes it disappear by pressing a button. It is pretty unusual
 that the activity wants to finish while a dialog is still open.

The user pre-configures a timeout by which he wants the javascript
execution to have ended, that's what I'm trying to implement.

 Another thing comes to my mind. The last time I had to play around with
 WebView (about a year ago) there was actually no alert popup support out of
 the box.

It's definitely there now.

 I don't know whether the latest API versions changed something about that
 but you must be using a WebView which has an overridden, customized
 WebChromeClient that is responsible for creating these JavaScript alert
 dialogs in the first place.

No, you can just put an alert('hello') in, at least on my Nexus S
4.0.4.

 So whatever code you are using there must be custom WebChromeClient that
 creates the dialog. Look for that code and change it in a way so you can
 dispose the dialog prior finishing the activity.

I'd prefer to use the default implementation, but I guess if I can't
solve the problem I could
implement the dialogs myself, thanks for the tip.

I tried putting a JS setTimeout() at the start of the script BTW but
alerts seem to take over the timer.

Pent

p.s. I'm not a JS programmer if that's not obvious :-)

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

2012-06-23 Thread Mark Murphy
You can make your own app be a home screen by following the Home
sample in the SDK: having an activity that supports ACTION_MAIN and
CATEGORY_HOME.

With respect to I need to remove home and its functionality, modding
your device by removing system apps is off-topic for this list.

On Sat, Jun 23, 2012 at 1:41 AM, chainz roid
sangilikumar.muniya...@marudham.co.in wrote:
 Hello
          I'm creating Android device in Android Gingerbread 2_3_4. I don't
 want any apps to be display in my device. I just want to use my app only. so
 i planed to replace the android home with my package.

         I need to remove home and its functionality, instead of home screen
 i want to load my own app. I hope my app is always active like home screen.

        Any one can help me to do this.?

 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



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

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

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


[android-developers] Re: Destroy WebView without leaking window

2012-06-23 Thread Pent
I decided to implement the three dialog functions so I can cleanly
remove the dialog if necessary, it's not particularly complicated it
seems. Probably better backwards compatibility too.

Pent

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

2012-06-23 Thread Narendra Singh Rathore
Hi all

Please help me in getting image from a URL.
As well as I want to show progress dialog for that, while image is loading

Thanks in Advance.
NSR

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

2012-06-23 Thread Narendra Singh Rathore
On Sat, Jun 23, 2012 at 4:26 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 Hi all

 Please help me in getting image from a URL.
 As well as I want to show progress dialog for that, while image is loading

 Thanks in Advance.
 NSR


Image should be downloaded.

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

2012-06-23 Thread Narendra Singh Rathore
Hi devs,

I actually want to show progress dialog, while downloading an image from URL
I successfully downloaded the image, just want to know how to show progress
dialog while its download?

Please help me in doing this.

With Thanks n Regards,
NSR.

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

2012-06-23 Thread SamuelSpring
Hello, did you find a solution?

On Thursday, June 23, 2011 1:05:21 PM UTC+4, Anees wrote:

 Hi All, 

 Does Android SDK provide a foolproof method or API using which we can 
 write contact to or delete contact from a SIM? 

 Any help in this regard is appreciated, 
 Best Regards, 
 Anees

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

2012-06-23 Thread Rahul Vijay
Hello Sir,

my question is, in a database some filed
Attempt_id,(Autogenerated),Test_id(foregin key),user_name(varchar),
score(double), time(varchar).
Store a data in a table. I am performed sorting a score, if high score in a
top  lowest score is boottom. and again enter a new high score or
different score, sorting according by time wise. I means table is sorted by
time. if user performed minimum time he reach in a top.

Thank you

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

2012-06-23 Thread Leonardo Domingues
Hi,

I'm developing an application that makes video stream to an internal
network,
so I need to broadcast to listeners devices (connected to this network),
found
an application called VPLAYER receiving video stream, but it performs HTTP,
which makes the broadcast. So, I wonder if there is any player that
receives
video stream and run under the UDP or whether it is possible to develop an
application that receives the video stream and pass to the player's native
android.

thanks!

-- 
*Leonardo de Araújo Domingues*
Graduando em Sistemas de Informação - UFPB/Campus IV
Laborarório de Aplicação em Vídeo Digital - LAVID/UFPB

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

2012-06-23 Thread TreKing
On Sat, Jun 23, 2012 at 6:35 AM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 I successfully downloaded the image, just want to know how to show
 progress dialog while its download?


Look up AsyncTask.

-
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: ask for help: write contact into SIM (phonebook app)

2012-06-23 Thread SamuelSpring
Hi, I join this question. I have the same problem in my app. Did you find a 
solution?

On Wednesday, January 14, 2009 10:13:45 AM UTC+4, huangj...@gmail.com wrote:

 hi, 

 I wrote a case to test phonebook app, but I encountered a problem for 
 SIM card handling. 

 I don't know if the emulated SIM card (I run it on emulator) does not 
 allow me to control it, or the function I used is not correct ? 

 ***code*** 
 ContentValues values = new Content Values(); 

 values.put(tag, Jenny Huang); 

 values.put(number, 1234567); 

 Uri Uri = Uri.parse(content://sim/adn); 

 ContentResolver resolver = getContentResolver(); 

 resolver.insert(uri, values); 
 *** 

 **Log shows 
 DEBUG/SimProvider(141): [SimProvider] insert 
 DEBUG/SimProvider(141): [SimProvider] addSimRecordToEf: efType=28474, 
 name=Huang Juan, number=1234567 
 DEBUG/SimProvider(141): [SimProvider] addSimRecordToEf: false 
 DEBUG/dalvikvm(141): GC freed 1112 objects / 58456 bytes in 281ms 
 DEBUG/SimProvider(141): [SimProvider] loadFromEf: efType=28474 
 WARN/SimProvider(141): Cannot load ADN records 
  
 Thanks! 
 Jenny 


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

2012-06-23 Thread Narendra Singh Rathore
Please help me out in parsing xml from url

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

2012-06-23 Thread CuGBabyBeaR
Is it needed to sort a database ?

For sort a data table , it seems have to rebuild this table when 
each score enter action .
I do not think it is efficient . 

I do not used SQLite yet , but I know that SQL commend can return data in 
order

SELECT * FROM datatable
ORDER BY  time 


在 2012年6月23日星期六UTC+8下午8时42分16秒,Rahul Vijay写道:

 Hello Sir,

 my question is, in a database some filed 
 Attempt_id,(Autogenerated),Test_id(foregin key),user_name(varchar), 
 score(double), time(varchar).
 Store a data in a table. I am performed sorting a score, if high score in 
 a top  lowest score is boottom. and again enter a new high score or 
 different score, sorting according by time wise. I means table is sorted by 
 time. if user performed minimum time he reach in a top.

 Thank you   



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

2012-06-23 Thread TreKing
On Sat, Jun 23, 2012 at 9:02 AM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 Please help me out in parsing xml from url


You want to explain what help you actually need and what this has to do
with Android specifically?
http://www.catb.org/~esr/faqs/smart-questions.html

-
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] android audio route

2012-06-23 Thread Smartfire
   the speakerphone mode can not be met in my situation, i have the audio 
stream from BT spp port, and i want to mix  into an active telephone voice! 

i do think there is some way to implement this state,

please any one can help?

2012-06-23



Smartfire



发件人:Mark Murphy
发送时间:2012-06-22 19:39
主题:Re: [android-developers] android audio route
收件人:android-developersandroid-developers@googlegroups.com
抄送:

On Fri, Jun 22, 2012 at 7:10 AM, Smartfire smartf...@126.com wrote: 
  i don't know  how to route media playback into an active telephone 
 call , please anyone can show me a way ? 

Other than using speakerphone mode, this is not supported. 

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

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

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

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

Re: Re: [android-developers] android audio route

2012-06-23 Thread Mark Murphy
On Sat, Jun 23, 2012 at 10:49 AM, Smartfire smartf...@126.com wrote:
    the speakerphone mode can not be met in my situation, i have the audio
 stream from BT spp port, and i want to mix  into an active telephone voice!

 i do think there is some way to implement this state,

Not in Android via the SDK.

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

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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


Re: [android-developers] Webservices

2012-06-23 Thread Nobu Games

On Saturday, June 23, 2012 12:50:45 AM UTC-5, MagouyaWare wrote:

 http://www.catb.org/~esr/faqs/smart-questions.html


:-D

...back to topic:

There are different kinds of web services and standards you could be using. 
You can also just invent your own web service protocol for your needs. Or 
you just let your server create a JSON or XML string based on that database 
record and download that with your app.

Just google the terms web service. I am confident that you can enlighten 
yourself using Wikipedia and so on in order to prepare you for a more 
detailed and problem-specific question that may be even related to the 
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] Re: Score Sorting

2012-06-23 Thread Nobu Games
http://www.w3schools.com/sql/sql_orderby.asp
http://www.sqlite.org/lang_select.html (search that page for the ORDER BY 
section)

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

[android-developers] Re: android voice route

2012-06-23 Thread Nobu Games
As others already told you in your other thread: that is not possible using 
the SDK. I think you will have to resort to making use of the Internet for 
transporting these voice messages just like this 
apphttps://play.google.com/store/apps/details?id=com.rebelvox.voxerhl=endoes.

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

2012-06-23 Thread Narendra Singh Rathore
On Sat, Jun 23, 2012 at 7:56 PM, TreKing treking...@gmail.com wrote:

  On Sat, Jun 23, 2012 at 9:02 AM, Narendra Singh Rathore 
 nsr.curi...@gmail.com wrote:

 Please help me out in parsing xml from url


 You want to explain what help you actually need and what this has to do
 with Android specifically?
 http://www.catb.org/~esr/faqs/smart-questions.html


Ok, sure.
I actually needed the answer within sometime when I asked the question.
I was given the url and was told to parse specific things in that within a
particular period of time. Thats why, asked the question hurrily (without
giving much specification).

Well, so sorry for providing vague information about my problem.

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

2012-06-23 Thread Mystique
I have a simple ProgressDialog but I realized if I press the search button 
the dialog will be dismiss. What can I do to disable search button press 
during this process? 

dialog = new ProgressDialog(Main.this);
dialog.setTitle(Working in progress);
dialog.setMessage(Please wait...);
dialog.setCancelable(false);
dialog.show();

I add a setOnKeyListener but it is still now working.

dialog.setOnKeyListener(new DialogInterface.OnKeyListener() {
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent 
event) {
if (keyCode == KeyEvent.KEYCODE_SEARCH  event.getRepeatCount() == 
0) {
return true; // Pretend we processed it
}
return false; // Any other keys are still processed as normal
}
}); 

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

2012-06-23 Thread Mystique
This do not work too.

dialog = new ProgressDialog(Main.this){
   @Override
public boolean onSearchRequested() {
return false;
}
};


On Sunday, 24 June 2012 00:16:40 UTC+8, Mystique wrote:

 I have a simple ProgressDialog but I realized if I press the search button 
 the dialog will be dismiss. What can I do to disable search button press 
 during this process? 

 dialog = new ProgressDialog(Main.this);
 dialog.setTitle(Working in progress);
 dialog.setMessage(Please wait...);
 dialog.setCancelable(false);
 dialog.show();

 I add a setOnKeyListener but it is still now working.

 dialog.setOnKeyListener(new DialogInterface.OnKeyListener() {
 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent 
 event) {
 if (keyCode == KeyEvent.KEYCODE_SEARCH  event.getRepeatCount() 
 == 0) {
 return true; // Pretend we processed it
 }
 return false; // Any other keys are still processed as normal
 }
 }); 



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

2012-06-23 Thread Nobu Games
Try overriding 
onSearchRequestedhttp://developer.android.com/reference/android/app/Activity.html#onSearchRequested%28%29in
 your Activity and return false when that dialog is open.

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

2012-06-23 Thread Mystique
I did, not working...

On Sunday, 24 June 2012 00:37:06 UTC+8, Nobu Games wrote:

 Try overriding 
 onSearchRequestedhttp://developer.android.com/reference/android/app/Activity.html#onSearchRequested%28%29in
  your Activity and return false when that dialog is open.


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

2012-06-23 Thread Francisco M. Marzoa Alonso
Thanks a million. Again. ;-)

On 21/06/12 23:14, Nobu Games wrote:
 You can use a regular Java resource 
 bundlehttp://en.wikipedia.org/wiki/.propertieswhich can be fully localized. 
 They are a set of files ending with 
 .properties which you can use for storing the button coordinates for each 
 local.

 Just create in one of your packages a set of files with the same base name 
 (ButtonCoords for example), followed by an underscore and the locale like 
 _en_US or just _en. The suffix is .properties:

 *ButtonCoords_en.properties:*
 homeButton = 10,10,100,100
 closeButton = 20,20, 200,200
 ...
 *ButtonCoords_fr.properties:*
 homeButton = 12,11,105,105
 closeButton = 22,22, 201,201
 ...

 Then you need to load that properties file with following code. Java 
 automatically takes care of picking the correct file for the currently set 
 locale:

 ResourceBundle bundle = 
 ResourceBundle.getBundle(path/to/package/ButtonCoords);

 The retrieved bundle object will be something like a HashMap that maps 
 Strings (homeButton, closeButton) to their according values.

 String coordsStr = bundle.getString(homeButton);
 String[]  coordsArray = coordsStr.split(,);
 int[] coords = new int[coordsArray.length];
 int i = 0;

 for(String coord : coordsArray) {
 coords[i++] = Integer.parseInt(coord.trim());
 }

 Make sure to provide a default .properties file without a locale (name it 
 just ButtonCoords.properties) so there won't be an error when someone plays 
 your game with an unsupported locale.



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

2012-06-23 Thread Nobu Games
Okay, I just had a look over at Stackoverflow for that problem and 
apparently it cannot be fixed that way under all circumstances (for 
whatever reason, I don't know). You could however restore that dialog in 
onResume after returning from the search dialog to your activity.

I would also try using the debugger and step through the onKey event 
handler method, have a look at the values that come in. Maybe 
getRepeatCount() does not return 0. You could also just change your key 
listener to the following:

public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
return keyCode == KeyEvent.KEYCODE_SEARCH;
}


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

2012-06-23 Thread Mystique
Like this?

dialog.setOnKeyListener(new DialogInterface.OnKeyListener() {
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
return keyCode == KeyEvent.KEYCODE_SEARCH;
}
}); 

I can seems to get it work either, pressing search button still dismiss 
the dialog.

On Sunday, 24 June 2012 01:03:59 UTC+8, Nobu Games wrote:

 Okay, I just had a look over at Stackoverflow for that problem and 
 apparently it cannot be fixed that way under all circumstances (for 
 whatever reason, I don't know). You could however restore that dialog in 
 onResume after returning from the search dialog to your activity.

 I would also try using the debugger and step through the onKey event 
 handler method, have a look at the values that come in. Maybe 
 getRepeatCount() does not return 0. You could also just change your key 
 listener to the following:

 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
 return keyCode == KeyEvent.KEYCODE_SEARCH;
 }




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

2012-06-23 Thread Mystique
This is the answer, stupid me I put it in the wrong dialog..

On Sunday, 24 June 2012 01:17:25 UTC+8, Mystique wrote:

 Like this?

 dialog.setOnKeyListener(new DialogInterface.OnKeyListener() {
 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
 return keyCode == KeyEvent.KEYCODE_SEARCH;
 }
 }); 

 I can seems to get it work either, pressing search button still dismiss 
 the dialog.

 On Sunday, 24 June 2012 01:03:59 UTC+8, Nobu Games wrote:

 Okay, I just had a look over at Stackoverflow for that problem and 
 apparently it cannot be fixed that way under all circumstances (for 
 whatever reason, I don't know). You could however restore that dialog in 
 onResume after returning from the search dialog to your activity.

 I would also try using the debugger and step through the onKey event 
 handler method, have a look at the values that come in. Maybe 
 getRepeatCount() does not return 0. You could also just change your key 
 listener to the following:

 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
 return keyCode == KeyEvent.KEYCODE_SEARCH;
 }




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

2012-06-23 Thread Raghav Sood
Hi all,

I've been having some trouble with a NoClassDefFound exception recently.
The details are below (Copy pasted from StackOverflow,
http://stackoverflow.com/q/11171726/1069068):

so
I've been working on a game for a few months now, and have suddenly
encountered a problem.

Since yesterday, I have been getting a NoClassDefFound error. There have
been no code changes at all. It was working at night, and wasn't in the
morning. No change at all. Here is the exact stacktrace:

06-23 23:12:19.746: E/ACRA(29146): Blue Boy fatal error :
com.appaholics.blueboy.BlueBoy
06-23 23:12:19.746: E/ACRA(29146): java.lang.NoClassDefFoundError:
com.appaholics.blueboy.BlueBoy
06-23 23:12:19.746: E/ACRA(29146):  at
com.appaholics.blueboy.LoadingScreen.loadTextures(LoadingScreen.java:125)
06-23 23:12:19.746: E/ACRA(29146):  at
com.appaholics.blueboy.LoadingScreen.load(LoadingScreen.java:85)
06-23 23:12:19.746: E/ACRA(29146):  at
com.appaholics.blueboy.LoadingScreen.onCreate(LoadingScreen.java:40)
06-23 23:12:19.746: E/ACRA(29146):  at
android.app.Activity.performCreate(Activity.java:4465)
06-23 23:12:19.746: E/ACRA(29146):  at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
06-23 23:12:19.746: E/ACRA(29146):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
06-23 23:12:19.746: E/ACRA(29146):  at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
06-23 23:12:19.746: E/ACRA(29146):  at
android.app.ActivityThread.access$600(ActivityThread.java:123)
06-23 23:12:19.746: E/ACRA(29146):  at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
06-23 23:12:19.746: E/ACRA(29146):  at
android.os.Handler.dispatchMessage(Handler.java:99)
06-23 23:12:19.746: E/ACRA(29146):  at
android.os.Looper.loop(Looper.java:137)
06-23 23:12:19.746: E/ACRA(29146):  at
android.app.ActivityThread.main(ActivityThread.java:4424)
06-23 23:12:19.746: E/ACRA(29146):  at
java.lang.reflect.Method.invokeNative(Native Method)
06-23 23:12:19.746: E/ACRA(29146):  at
java.lang.reflect.Method.invoke(Method.java:511)
06-23 23:12:19.746: E/ACRA(29146):  at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
06-23 23:12:19.746: E/ACRA(29146):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
06-23 23:12:19.746: E/ACRA(29146):  at
dalvik.system.NativeStart.main(Native Method)

The method in which the exception occurs:

private void loadTextures() {
BlueBoy.sTextures = new HashMapString,TextureRegion();
BlueBoy.sTiledTextures = new HashMapString,TiledTextureRegion();
BlueBoy.sTextureHolders = new ArrayListTexture();
BlueBoy.sHitVoiceSounds = new Sound[4];
BlueBoy.sHitSounds = new Sound[4];
BlueBoy.sWinSounds = new Sound[8];
BlueBoy.sLoseSounds = new Sound[4];
Texture texture;
TextureRegionFactory.setAssetBasePath(gfx/);
BufferObjectManager.setActiveInstance(new BufferObjectManager());
}

However, the class BlueBoy definitely exists. To make absolutely sure, I
have taken to decompiling my own app's classes.dex. I have decompiled both
the one generated while making the .apk and the on in the .apk itself. The
class is present in both of them. It is also present in
/bin/classes/com/appaholics/blueboy/. When decompiled, I can see the full
source of the class, as it should be.

I have tried everything I could think of and find on the net to fix it. I
have:


   - Done a Clean Build on it
   - Created a new project from source in eclipse
   - Created a new project and manually shifted everything to it
   - Tried renaming the class
   - Tried renaming the package
   - Tried compiling it from the command line
   - Tried cleaning it from the command line


All of the other projects in the workspace work fine.

Other classes like the splash screen and loading screen, which are launched
before BlueBoy work fine. Android can find them.

Does anybody have any idea as to why this would happen? The class is exists
as surely as I exist, but Android disagrees.

EDIT: As per duffymo's suggestion, I check the class path for the existence
of this class by adding the following to my splash screen:

   try {
  Class.forName(com.appaholics.blueboy.BlueBoy, false, null);
   } catch (ClassNotFoundException e1) {
  Log.d(ClassCheck, Not found.);
  e1.printStackTrace();
   }

I get the Not Found message in the LogCat. Now that we know that the class
isn't there in the classpath, how do I fix it? The class is in the same
package as the splash screen and loading class, and both of those are
present. What could cause this one class to not be there, and how could I
fix it?

EDIT2: FWIW, System.getProperties(java.class.path); returns ..
/so

Since then I've created an absolutely new activity, and moved the code to
that, and it still crashes with the same exception. All references were
changed.

-- 
Raghav Sood
Please do not email 

[android-developers] Fwd: فراخوان*هيچ چيز براي اين خانواده ممكن نيست

2012-06-23 Thread hosein bitaraf
-- Forwarded message --
From: خيريه همت hemmat1...@gmail.com
Date: 2012/6/23
Subject: فراخوان*هيچ چيز براي اين خانواده ممكن نيست
To:




-- 
*
_*
*بسم الله الرحمن الرحیم*

هيچ چيز براي اين خانواده ممكن نيست http://sandoghhemat.ir/post-166.aspx

بسم الله الرحمن الرحيم

سلام و خداقوت

*بدون مقدمه تقاضا ميكنم اين گزارش را با دقت بخوانيد:*

هیچ چیز ممكن نیست. اگر كمیته امداد ماهی 44 هزار تومان به سرپرست خانوادهای
حقوق دهد و 35 هزار تومان هم از آن كسر كند كه قسطهای وام یك میلیون تومانی كه
2 سال پیش خودش به خانواده داده تا با آن یك تلویزیون كوچك و یك یخچال برای
خانه شان بخرند كه بشود تمام دارایی زندگی خالیشان؛

هیچ چیز ممكن نیست. وقتی باید ماهی 130 هزار تومان هم اجاره تك اتاقی كه در آن
زندگی میكنی را بدهی؛

هيچ چيز ممكن نيست وقتی پدر خانواده 9سال پیش از دنیا رفته و زن در55 سالگی
بعد از به دنیا آوردن 9 فرزند و بزرگ كردنشان با سختی و گرسنگی و آبروداری
آنقدر ناتوان است كه نمیتواند كار كند؛

هيچ چيز ممكن نيست وقتی پسر بزرگش معتاد است و 9 ماه است كه مادر اصلا خبری از
او ندارد و باقی مردهای خانواده یا كارگران زحمتكش كم توانند یا كشاورزان جایی
در دوردست يا  لاابالی.

هيچ چيز ممكن نيست وقتی تنها نان آور خانه، كوچكترین پسرش امروز- فردا باید
برود سربازی،

هيچ چيز ممكن نيست وقتی كوچكترین فرزند خانواده دختري است 18ساله كه در آستانه
ازدواج است اما به گفته مادرش ازدواج او به هیچ وجه ممكن نیست.

هیچ چیز ممكن نیست...

انگار هوا سرد است و تو از ارتفاع بلندی سقوط كرده ای، مچ پایت مو برداشته و
انگشتان دستت را از شدت سرما نمیتوانی حركت دهی، گرسنه ای و حتی یك تكه نان
خشك برای خوردن نداری، هیچ كس نمیداند تو در یخبندان كوهستان گم شده ای. نه
میتوانی بایستی، نه میتوانی با دستانت خودت را بالا بكشی، نه آتشی كه گرمت
كند، نه لقمه ای كه توانت دهد...

شاید بهتر است خودت را بسپاری به خواب و نگاه كنی كه نفسهایت كمكم به شماره
میافتند و انگار كه ششهایت یخ زده، كمكم هوا هم خودش را از تو دریغ میكند...

دیگر هیچ چیز ممكن نیست، درست مثل زندگی آن زن.

زن و مادری كه تمام عمرش بچه به دنیا آورده و به دندان گرفته و بزرگ كرده، از
روز اول هیچ نداشته جز بچه هایش و جز توان اندكی كه به خاطر بچه هایش تا آخرین
قطره اش را تمام كرده، حالا او مانده و توانی كه تمام شده و بچه هایی كه برای
كمك كردن به او نیستند و بچه هایی كه هنوز به بودن او و كمكهایش نیاز دارند.

اما در زندگی او هیچ چیز ممكن نیست.

ممكن نیست یكبار دیگر جوان شود و روی پا بایستد و نان بازویش را بخورد.

ممكن نیست آنقدر قوی باشد كه بچه هایش را زیر بال و پر بگیرد و به آنها بگوید:
«نگران نباشید، مواظبتان هستم.»

ممكن نیست بتواند دخترش را با آبرو سر و سامان دهد، پسرش را با خیال آسوده و
یك كاسه آب كه پشتش میریزد بدرقه كند.

ممكن نیست صاحبخانه تا یك ماه دیگر از خانه بیرونشان نكند،

ممكن نیست پسرك در شب و روزهای خدمت سربازی از خیال گرسنگی و بی سرپناهی مادر
و خواهرش لختی آسوده باشد،

ممكن نیست دخترك روزگاری بهتر از امروز مادرش برای فردایش تصور كند.

درست مثل آن است كه كمكم در سرمای گرگ و میش غروبی در كوهستانی دور دست، خسته،
گرسنه، یخزده، زخمی و از پا افتاده باشی و فكر كنی ممكن است یكبار دیگر آفتاب
را ببینی... مگر دستی از غیب برون آید و كاری بكند.

برای همه آدمها پیش می آید، اگر تجربه اش نكرده ای هم دیر نیست، لحظه ای كه
ببینی در هنگامهای سخت و عظیم ایستاده ای و هیچ كاری برای خودت از دست برنمی
آید.

رسیده یا میرسد لحظه ای كه چشمهایت را ببندی و مومنانه و بیشتر از هر لحظهای
در زندگی خدا را باور كنی و بخوانی و همه امیدت كه نه، همه دار و ندارت امید
به معجزه ای باشد...

در حالی كه مستاصلی و پریشانی و دستت كوتاه است و هیچ كس را نداری... آنروز كه
فكر میكنی باید دستی از غیب برون آید و كاری بكند...

آنچه برای آن مادر بیمار، ناتوان و مستاصل معجزه است شاید برای تو آنقدرها سخت
نباشد.

خانه آنها یك اتاق 9متری است كه به زودی باید تخلیه شود و تمام داراییشان یك
یخچال و تلویزیون است كه كمیته امداد ماهی 35 هزارتومان بابتش از حقوقشان كسر
میكند و تمام درآمدشان ماهی 9 هزار تومان... معجزه زندگی خالی آنها شاید برای
تو آنقدرها بزرگ نباشد اما برای آنها معجزه است...

براي كمك به اين خانواده بزرگوار و آبرومند مي توانيد كمكهاي خود را به شماره
حساب:008-2396820-010 يا شماره كارت: 7825-4471-9914- 6037 يا IR94 0170 
0010 2396 8200 08:شماره شبا نزد بانك ملي به نام مهدي قمصريان واريز كنيد.

*تذكر مهم*

درصورت عبور كمكها از سقف مورد نياز، صرف موارد خير بعدي خواهد شد
*





شيوه واريز كمكها به صندوق
شماره حساب:**008**-**2396820**-**010**
شماره كارت:**7825**-4471-**9914**-**6037**
*
* IR94 0170  0010 2396 8200 08:شماره شبا *
*به نام مهدي قمصريان
__
لینک واریز اینترنتی کارت به کارت بانک
ملیhttps://epayment3.bmi.ir/MoneyTransfer
**
__
*
شماره پیامک خیریه: 30007227005300
http://sandoghhemat.ir

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

2012-06-23 Thread Raghav Sood
 0 down vote accept

I've managed to fix it. These are the exact steps I took:

   - Duplicate all of the content into a new project manually. DO NOT use
   the option to create a project from an existing source.
   - Go to the project properties, and remove the android.jar from the
   build path.
   - Save
   - Add the jar back manually, making sure that it is for the same version
   of Android as before.

It should work now. I tried the above steps on both the original project
and one which I created from it's source, and they didn't work.

I don't know how or why it works, but I know it does. FWIW, I'm using ADT
18, with SDK tools 19 and platform tools 11.


On Sun, Jun 24, 2012 at 12:40 AM, Raghav Sood raghavs...@gmail.com wrote:

 Hi all,

 I've been having some trouble with a NoClassDefFound exception recently.
 The details are below (Copy pasted from StackOverflow,
 http://stackoverflow.com/q/11171726/1069068):

 so
 I've been working on a game for a few months now, and have suddenly
 encountered a problem.

 Since yesterday, I have been getting a NoClassDefFound error. There have
 been no code changes at all. It was working at night, and wasn't in the
 morning. No change at all. Here is the exact stacktrace:

 06-23 23:12:19.746: E/ACRA(29146): Blue Boy fatal error :
 com.appaholics.blueboy.BlueBoy
 06-23 23:12:19.746: E/ACRA(29146): java.lang.NoClassDefFoundError:
 com.appaholics.blueboy.BlueBoy
 06-23 23:12:19.746: E/ACRA(29146):  at
 com.appaholics.blueboy.LoadingScreen.loadTextures(LoadingScreen.java:125)
 06-23 23:12:19.746: E/ACRA(29146):  at
 com.appaholics.blueboy.LoadingScreen.load(LoadingScreen.java:85)
 06-23 23:12:19.746: E/ACRA(29146):  at
 com.appaholics.blueboy.LoadingScreen.onCreate(LoadingScreen.java:40)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.app.Activity.performCreate(Activity.java:4465)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.app.ActivityThread.access$600(ActivityThread.java:123)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.os.Handler.dispatchMessage(Handler.java:99)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.os.Looper.loop(Looper.java:137)
 06-23 23:12:19.746: E/ACRA(29146):  at
 android.app.ActivityThread.main(ActivityThread.java:4424)
 06-23 23:12:19.746: E/ACRA(29146):  at
 java.lang.reflect.Method.invokeNative(Native Method)
 06-23 23:12:19.746: E/ACRA(29146):  at
 java.lang.reflect.Method.invoke(Method.java:511)
 06-23 23:12:19.746: E/ACRA(29146):  at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
 06-23 23:12:19.746: E/ACRA(29146):  at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
 06-23 23:12:19.746: E/ACRA(29146):  at
 dalvik.system.NativeStart.main(Native Method)

 The method in which the exception occurs:

 private void loadTextures() {
 BlueBoy.sTextures = new HashMapString,TextureRegion();
 BlueBoy.sTiledTextures = new HashMapString,TiledTextureRegion();
 BlueBoy.sTextureHolders = new ArrayListTexture();
 BlueBoy.sHitVoiceSounds = new Sound[4];
 BlueBoy.sHitSounds = new Sound[4];
 BlueBoy.sWinSounds = new Sound[8];
 BlueBoy.sLoseSounds = new Sound[4];
 Texture texture;
 TextureRegionFactory.setAssetBasePath(gfx/);
 BufferObjectManager.setActiveInstance(new BufferObjectManager());
 }

 However, the class BlueBoy definitely exists. To make absolutely sure, I
 have taken to decompiling my own app's classes.dex. I have decompiled both
 the one generated while making the .apk and the on in the .apk itself. The
 class is present in both of them. It is also present in
 /bin/classes/com/appaholics/blueboy/. When decompiled, I can see the full
 source of the class, as it should be.

 I have tried everything I could think of and find on the net to fix it. I
 have:


- Done a Clean Build on it
- Created a new project from source in eclipse
- Created a new project and manually shifted everything to it
- Tried renaming the class
- Tried renaming the package
- Tried compiling it from the command line
- Tried cleaning it from the command line


 All of the other projects in the workspace work fine.

 Other classes like the splash screen and loading screen, which are
 launched before BlueBoy work fine. Android can find them.

 Does anybody have any idea as to why this would happen? The class is
 exists as surely as I exist, but Android disagrees.

 EDIT: As per duffymo's suggestion, I check the class path for the
 existence of this 

[android-developers] Re: NoClassDefFound error when class definitely exists

2012-06-23 Thread Nobu Games
This is really weird but personally I also encountered a lot of weirdness 
with the Android SDK, including classes that couldn't be found (but due to 
different reasons than in your case).

In situations like this I usually also clean the whole Eclipse workspace. 
Restart it with the command line parameter -clean. You should also do 
that every time when Eclipse crashes because most of the time the workspace 
state / plugin configuration and temporary files get corrupted because of 
that.

If that does not work you could try creating a whole new workspace. Import 
your project into it and try building it 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

Re: [android-developers] Re: NoClassDefFound error when class definitely exists

2012-06-23 Thread Raghav Sood
This is the weirdest one I've seen in one and a half years, so I'll agree
with you.

I already tried cleaning the workspace. I have it automated on my mac. It
runs once every 24 hours, irrespective of whether or not it needs to be
done. To be extra safe, everything also backs up to a local, and private,
git repo every hour. You wouldn't believe how many times that backup has
saved me.

Thanks


-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

2012-06-23 Thread Nobu Games
I'm not yet familiar with MediaStore, but did you try the ContentResolver.
deletehttp://developer.android.com/reference/android/content/ContentResolver.html#delete%28android.net.Uri,%20java.lang.String,%20java.lang.String[]%29method
 for updating the database?

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

2012-06-23 Thread Guilherme Utrabo
Nobu, I will try that and post the results.

Thanks.
Guilherme

On 23 June 2012 17:35, Nobu Games dev.nobu.ga...@gmail.com wrote:

 I'm not yet familiar with MediaStore, but did you try the ContentResolver.
 deletehttp://developer.android.com/reference/android/content/ContentResolver.html#delete%28android.net.Uri,%20java.lang.String,%20java.lang.String[]%29method
  for updating the database?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Does the stock web-browser of ICS 4.0.x support HW accelerated rendering and compositing?

2012-06-23 Thread Nobu Games
You may want to take a look at Chrome for Android. The FAQ 
pagehttps://developers.google.com/chrome/mobile/docs/faqsays that rendering 
is hardware accelerated

*Is Canvas hardware accelerated?*Yes.


*Is Chrome for Android Beta hardware accelerated?*Yes, hardware 
 acceleration is an essential capability in Android 4.0 and is heavily 
 utilized by Chrome for Android as well. 


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

2012-06-23 Thread Guilherme Utrabo
Nobu,

It worked. Thanks for the tip.

Guilherme


On 23 June 2012 17:38, Guilherme Utrabo utr...@gmail.com wrote:

 Nobu, I will try that and post the results.

 Thanks.
 Guilherme


 On 23 June 2012 17:35, Nobu Games dev.nobu.ga...@gmail.com wrote:

 I'm not yet familiar with MediaStore, but did you try the ContentResolver.
 deletehttp://developer.android.com/reference/android/content/ContentResolver.html#delete%28android.net.Uri,%20java.lang.String,%20java.lang.String[]%29method
  for updating the database?

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




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

Re: [android-developers] Does the stock web-browser of ICS 4.0.x support HW accelerated rendering and compositing?

2012-06-23 Thread Romain Guy
The stock Browser, and the WebView it uses, is hardware accelerated on
Android 3.x and up.

On Thu, Jun 21, 2012 at 11:57 AM, do damn dod...@gmail.com wrote:
 Does the stock web-browser of ICS 4.0.x support HW accelerated rendering and
 compositing?

 If it does not, Is there any web-browser app for ICS 4.0.x that support
 HW accelerated rendering/compositing?


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



-- 
Romain Guy
Android framework engineer
romain...@android.com

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


[android-developers] How to solve 'ClassNotFoundException' on 'BackupAgent'??

2012-06-23 Thread Build Account
Hello.

If app has well defined BackupAgent class with definition in manifest, 
the error suddenly occur randomly.
(signed/unsiged same but maybe not debug mode).

I tried find solution through web, 
but everybody screaming about this error with no answer.
The sample reference links from Stackoverflow are below
-http://stackoverflow.com/questions/7506981/how-come-i-get-classnotfoundexception-when-backupagent-tries-to-start
-http://stackoverflow.com/questions/7641765/mysterious-classnotfoundexception-when-android-system-engage-backupagent
-http://stackoverflow.com/questions/6147241/android-app-classnotfoundexception-for-main-activity
-http://stackoverflow.com/questions/3781151/java-lang-classnotfoundexception-on-working-app
(and you can find more with keywords 'backupagent classnotfoundexception')

Does anyone know solution to avoid this unexpected error??
(All the source code and manifest is all okay surely).

Here is the log file.

E/ActivityThread(1954): Agent threw during creation: 
java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in 
loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk]
W/dalvikvm(1954): threadid=1: thread exiting with uncaught exception 
(group=0x4001e578)
E/AndroidRuntime(1954): FATAL EXCEPTION: main
E/AndroidRuntime(1954): java.lang.RuntimeException: Unable to create 
BackupAgent com.company.appname.mybackuphelper: 
java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in 
loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk]
E/AndroidRuntime(1954): at 
android.app.ActivityThread.handleCreateBackupAgent(ActivityThread.java:1895)
E/AndroidRuntime(1954): at 
android.app.ActivityThread.access$3200(ActivityThread.java:117)
E/AndroidRuntime(1954): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1030)
E/AndroidRuntime(1954): at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(1954): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(1954): at 
android.app.ActivityThread.main(ActivityThread.java:3687)
E/AndroidRuntime(1954): at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(1954): at 
java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(1954): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
E/AndroidRuntime(1954): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
E/AndroidRuntime(1954): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(1954): Caused by: java.lang.ClassNotFoundException: 
com.company.appname.mybackuphelper in loader 
dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk]
E/AndroidRuntime(1954): at 
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
E/AndroidRuntime(1954): at 
java.lang.ClassLoader.loadClass(ClassLoader.java:551)
E/AndroidRuntime(1954): at 
java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/AndroidRuntime(1954): at 
android.app.ActivityThread.handleCreateBackupAgent(ActivityThread.java:1864)
E/AndroidRuntime(1954): ... 10 more
W/asset(143): Asset path /data/app/com.company.appname-1.apk is neither a 
directory nor file (type=1).
W/PackageManager(143): Failure retrieving resources forcom.company.appname
E/(143): Dumpstate  /data/log/dumpstate_app_error

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

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Dianne Hackborn
Fwiw, this is not your application dir.  Pictures on external storage is
for shared pictures.  You shouldn't be putting your own stuff there.

On Thu, Jun 21, 2012 at 8:54 PM, Guilherme Utrabo utr...@gmail.com wrote:

 I need to delete some images from my application dir (inside
 Pictures/Application).
 Though the image gets removed, when I call for the managedQuery() to fill
 again the grid, the image that I just removed is retrieved.
 I'm trying to force a scan on the application directory, but it's not
 working. Some code below:

 deleting files:
 http://pastebin.com/tQe8s7mm

 sanning directory
 http://pastebin.com/ixuz8xsC

 Do you guys have any ideas of what may be causing this behavior?
 Thanks in advance,
 Guilherme

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




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

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

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

[android-developers] Re: How to solve 'ClassNotFoundException' on 'BackupAgent'??

2012-06-23 Thread RichardC
Unless this is just a test application I would really rename your package. 
 com.company.appname is technically legal but it is definitely not a 
good globally unique name.

On Saturday, June 23, 2012 10:51:50 PM UTC+1, Build Account wrote:

 Hello.

 If app has well defined BackupAgent class with definition in manifest, 
 the error suddenly occur randomly.
 (signed/unsiged same but maybe not debug mode).

 I tried find solution through web, 
 but everybody screaming about this error with no answer.
 The sample reference links from Stackoverflow are below
 -
 http://stackoverflow.com/questions/7506981/how-come-i-get-classnotfoundexception-when-backupagent-tries-to-start
 -
 http://stackoverflow.com/questions/7641765/mysterious-classnotfoundexception-when-android-system-engage-backupagent
 -
 http://stackoverflow.com/questions/6147241/android-app-classnotfoundexception-for-main-activity
 -
 http://stackoverflow.com/questions/3781151/java-lang-classnotfoundexception-on-working-app
 (and you can find more with keywords 'backupagent classnotfoundexception')

 Does anyone know solution to avoid this unexpected error??
 (All the source code and manifest is all okay surely).

 Here is the log file.
 
 E/ActivityThread(1954): Agent threw during creation: 
 java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in 
 loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk]
 W/dalvikvm(1954): threadid=1: thread exiting with uncaught exception 
 (group=0x4001e578)
 E/AndroidRuntime(1954): FATAL EXCEPTION: main
 E/AndroidRuntime(1954): java.lang.RuntimeException: Unable to create 
 BackupAgent com.company.appname.mybackuphelper: 
 java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in 
 loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk]
 E/AndroidRuntime(1954): at 
 android.app.ActivityThread.handleCreateBackupAgent(ActivityThread.java:1895)
 E/AndroidRuntime(1954): at 
 android.app.ActivityThread.access$3200(ActivityThread.java:117)
 E/AndroidRuntime(1954): at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1030)
 E/AndroidRuntime(1954): at 
 android.os.Handler.dispatchMessage(Handler.java:99)
 E/AndroidRuntime(1954): at android.os.Looper.loop(Looper.java:130)
 E/AndroidRuntime(1954): at 
 android.app.ActivityThread.main(ActivityThread.java:3687)
 E/AndroidRuntime(1954): at 
 java.lang.reflect.Method.invokeNative(Native Method)
 E/AndroidRuntime(1954): at 
 java.lang.reflect.Method.invoke(Method.java:507)
 E/AndroidRuntime(1954): at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
 E/AndroidRuntime(1954): at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
 E/AndroidRuntime(1954): at dalvik.system.NativeStart.main(Native 
 Method)
 E/AndroidRuntime(1954): Caused by: java.lang.ClassNotFoundException: 
 com.company.appname.mybackuphelper in loader 
 dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk]
 E/AndroidRuntime(1954): at 
 dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
 E/AndroidRuntime(1954): at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:551)
 E/AndroidRuntime(1954): at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:511)
 E/AndroidRuntime(1954): at 
 android.app.ActivityThread.handleCreateBackupAgent(ActivityThread.java:1864)
 E/AndroidRuntime(1954): ... 10 more
 W/asset(143): Asset path /data/app/com.company.appname-1.apk is neither a 
 directory nor file (type=1).
 W/PackageManager(143): Failure retrieving resources forcom.company.appname
 E/(143): Dumpstate  /data/log/dumpstate_app_error



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

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Dianne,

Thanks for the information. I thought that was the correct place to put the
files because they are all images.
Where would be the best place to put them?

Ps.: the complete path i'm using
is:  
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
+ AppRootDirectory/

Thank you,
Guilherme

On 23 June 2012 19:29, Dianne Hackborn hack...@android.com wrote:

 Fwiw, this is not your application dir.  Pictures on external storage is
 for shared pictures.  You shouldn't be putting your own stuff there.

 On Thu, Jun 21, 2012 at 8:54 PM, Guilherme Utrabo utr...@gmail.comwrote:

 I need to delete some images from my application dir (inside
 Pictures/Application).
 Though the image gets removed, when I call for the managedQuery() to fill
 again the grid, the image that I just removed is retrieved.
 I'm trying to force a scan on the application directory, but it's not
 working. Some code below:

 deleting files:
 http://pastebin.com/tQe8s7mm

 sanning directory
 http://pastebin.com/ixuz8xsC

 Do you guys have any ideas of what may be causing this behavior?
 Thanks in advance,
 Guilherme

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




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

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


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


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

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Dianne Hackborn
If these are your own files, please put them in your app-specific directory:

http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String)


The public Pictures etc directories are where the user manages their files.
 Applications should not be spewing stuff in there unless these are things
they want the user to see such as when transferring their pictures to/from
the desktop.

As the doc at
http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory(java.lang.String)
says:

This is where the user will typically place and manage their own files, so
you should be careful about what you put here to ensure you don't erase
their files or get in the way of their own organization.

Also keep in mind that anything you put in external storage is going to be
readable by all other applications, so you should never put anything with
sensitive information there.

On Sat, Jun 23, 2012 at 3:41 PM, Guilherme Utrabo utr...@gmail.com wrote:

 Dianne,

 Thanks for the information. I thought that was the correct place to put
 the files because they are all images.
 Where would be the best place to put them?

 Ps.: the complete path i'm using
 is:  
 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
 + AppRootDirectory/

 Thank you,
 Guilherme

 On 23 June 2012 19:29, Dianne Hackborn hack...@android.com wrote:

 Fwiw, this is not your application dir.  Pictures on external storage
 is for shared pictures.  You shouldn't be putting your own stuff there.

 On Thu, Jun 21, 2012 at 8:54 PM, Guilherme Utrabo utr...@gmail.comwrote:

 I need to delete some images from my application dir (inside
 Pictures/Application).
 Though the image gets removed, when I call for the managedQuery() to
 fill again the grid, the image that I just removed is retrieved.
 I'm trying to force a scan on the application directory, but it's not
 working. Some code below:

 deleting files:
 http://pastebin.com/tQe8s7mm

 sanning directory
 http://pastebin.com/ixuz8xsC

 Do you guys have any ideas of what may be causing this behavior?
 Thanks in advance,
 Guilherme

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




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

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


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


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




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

Note: please don't send private questions to me, 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] managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Dianne,

I'm changing the application to save the files at the right place.
I really appreciate the tip. Thank you.

Guilherme

On 23 June 2012 19:48, Dianne Hackborn hack...@android.com wrote:

 If these are your own files, please put them in your app-specific
 directory:


 http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String)


 The public Pictures etc directories are where the user manages their
 files.  Applications should not be spewing stuff in there unless these are
 things they want the user to see such as when transferring their pictures
 to/from the desktop.

 As the doc at
 http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory(java.lang.String)
 says:

 This is where the user will typically place and manage their own files,
 so you should be careful about what you put here to ensure you don't erase
 their files or get in the way of their own organization.

 Also keep in mind that anything you put in external storage is going to be
 readable by all other applications, so you should never put anything with
 sensitive information there.

 On Sat, Jun 23, 2012 at 3:41 PM, Guilherme Utrabo utr...@gmail.comwrote:

 Dianne,

 Thanks for the information. I thought that was the correct place to put
 the files because they are all images.
 Where would be the best place to put them?

 Ps.: the complete path i'm using
 is:  
 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
 + AppRootDirectory/

 Thank you,
 Guilherme

 On 23 June 2012 19:29, Dianne Hackborn hack...@android.com wrote:

 Fwiw, this is not your application dir.  Pictures on external storage
 is for shared pictures.  You shouldn't be putting your own stuff there.

 On Thu, Jun 21, 2012 at 8:54 PM, Guilherme Utrabo utr...@gmail.comwrote:

 I need to delete some images from my application dir (inside
 Pictures/Application).
 Though the image gets removed, when I call for the managedQuery() to
 fill again the grid, the image that I just removed is retrieved.
 I'm trying to force a scan on the application directory, but it's not
 working. Some code below:

 deleting files:
 http://pastebin.com/tQe8s7mm

 sanning directory
 http://pastebin.com/ixuz8xsC

 Do you guys have any ideas of what may be causing this behavior?
 Thanks in advance,
 Guilherme

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




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

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


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


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




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

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

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


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

[android-developers] Developer Console - How to activate Previously Active APK

2012-06-23 Thread Jaxily
Is there a way to activate a previous version?  I update the version name 
and code with each revision and this method doesn't allow me to revert 
backwards.  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