Re: [android-developers] How to stop terminate the Android application when using the native code

2012-07-20 Thread Clark kent
I know, i can disable it, so it will work, but i'd like to let the app can 
run many times again. So i disable the exit(), but when call the second 
times, it generates errors.

Could you help?

Thanks
Clark

On Sunday, July 15, 2012 5:52:38 AM UTC+7, Dianne Hackborn wrote:

 You just need to fix your native code so it doesn't do this.  Anyone 
 giving you a native library that is calling exit() in it is an evil sadist. 
 :p

 On Fri, Jul 13, 2012 at 3:02 AM, Clark kent nguyenle...@gmail.com wrote:

 Hello every body

 I have this problem which can not resolve it. 

 I'm calling the native code(*C code*) from the android application. But 
 in the native code, they call function *exit(0)* so it makes the app 
 on Android terminate. Could any one know how to stop this one, because 
 after i called one method from native code , after it finished, it will 
 terminate the Android application.

 I found a way is disable the method *exit(0)*, so it will not 
 terminate the Android app, but it meet error when i called the native 
 method second time, some error kind like this: *Invalid heap address in 
 internal_realloc*. I think that came from the re allocation the memory. 
 So if any one know how to free all memory of native call, please let me 
 know. Thanks for any comments

 Thanks

 Clark

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

2012-07-20 Thread kaciula
Because Android developers from Romania, as well as developers from a lot 
of other countries, can't sell apps on the Android Market. 

http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=150324


On Friday, July 20, 2012 12:06:42 AM UTC+3, bob wrote:

 Why not get your own bank account in Romania and use that?

 On Thursday, July 19, 2012 7:09:04 AM UTC-5, kaciula wrote:

 Is anyone here a developer who sells Android apps via Google Checkout and 
 is located in Germany?

 I need some basic info regarding the tax system in Germany. I am a Sole 
 Trader located in Romania and, in order to sell Android apps, I've linked 
 my Google Checkout with a German bank account owned by someone else. I've 
 started making some money and I have no clue if I should declare something 
 in Germany or pay my taxes in Romania etc. Any help would be much 
 appreciated.



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

Re: [android-developers] NFC Application

2012-07-20 Thread GregM
Hi,

I suggest looking at the example here:

https://github.com/gast-lib/gast-lib/blob/master/app/src/root/gast/playground/nfc/NFCInventoryActivity.java

The code helps you write an Activity that helps the user create the right 
NFC tags. Just copy and paste the code into your app and change the MIME 
type and what data it writes to the NFC.

Greg

On Thursday, July 19, 2012 11:27:50 PM UTC-4, rmq wrote:

 What kind of Application you need to develop. 
  
 You can donwload some exmaple applicaiton from the path 
  
 http://developer.android.com/tools/samples/index.html and also go through 
  
 http://developer.android.com/guide/topics/connectivity/nfc/nfc.html
  
 Which is the protocol you will be supporting with NFC . I wanted to know , 
 if it NDEF category or ISO 15693 or ISO 14443.  If the card does not 
 support NDEF then you need to do bit differently 
  
 Regards
 Raunaque 


  
 On Thu, Jul 19, 2012 at 11:45 PM, TreKing wrote:

  I want to develop a NFC based application and don’t know where to 
 start. Can you give me some suggestions / help, any useful links.


 http://developer.android.com/guide/index.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




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

2012-07-20 Thread BoD

Wait, I'm not sure I understand.
Are you saying StrictMode configuration calls (setThreadPolicy, 
setVmPolicy) no longer work if made in Application.onCreate?  (We can 
expect most apps make the calls there.)


--
BoD


On 07/16/2012 11:05 PM, Dianne Hackborn wrote:
The bug I think is that the documentation should be updated.  We 
definitely want the new behavior -- when strict mode is enabled by 
default (on non-user builds) we explicitly do not want the checks 
happening in Application.onCreate() because it is okay to do disk 
access and such there (the process is after all in the process of 
being launched).


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

2012-07-20 Thread GregM
Hi,

This code library helps you with speech recognition and in particular has 
some nice code to help handle matching hard to match words using Soundex 
and Stemming and other things. Check it out here:

https://github.com/gast-lib/gast-lib

To get started quickly, I suggest just extending this 
Activityhttps://github.com/gast-lib/gast-lib/blob/master/library/src/root/gast/speech/SpeechRecognizingAndSpeakingActivity.java

Greg


On Thursday, June 23, 2011 9:22:36 PM UTC-4, davemac wrote:

 Recognizing speech is really hard to do well. What you get with 
 Google's Android Recognizer is pretty good. If you want to consider 
 another, you could look at Sphinx. 

 - dave 
 www.androidbook.com/proandroid3 

 On Jun 23, 6:05 pm, Droid rod...@gmail.com wrote: 
  The speech recogniser often makes mistakes, so you have to think about 
  how to handle wrong words. Otherwise its quite easy to feed voice 
  recognition to text. 
  There is lots of code on Google to do that. I have a loop that asks if 
  the text is correct or not. Well, it works fine, but most users do not 
  like using it unfortunately. I suppose because its slow. 
  
  On Jun 23, 9:30 am, khanh_qhi™ khanhqh20...@gmail.com wrote: 
  
  
  
   Hi, 
   I need build a small application about Speech Recognition based-on 
 Android 
   platform, such as: port speech input to text. 
   Hence, is there a way/open source that to do for this? 
  
   --- 
   Regards, 
   Khanh.

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

2012-07-20 Thread b0b


On Friday, 20 July 2012 10:33:46 UTC+2, BoD wrote:

 Wait, I'm not sure I understand. 
 Are you saying StrictMode configuration calls (setThreadPolicy, 
 setVmPolicy) no longer work if made in Application.onCreate?  (We can 
 expect most apps make the calls there.) 

 -- 
 BoD 



Exactly. StrictMode thread policy (and it seems only thread policy) is 
restored to the default settings by the framewrok after onCreate() is 
called.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-20 Thread Ran
I just got the OTA for JellyBean on my Nexus S.
READ_LOGS apps seem to work as before.. I can see all the logs in alogcat.

is this a bug?

On Sunday, July 8, 2012 10:26:47 PM UTC+3, Ievgenii Nazaruk wrote:

 Hi all,

 I've been working on an application for developers that uses 
 DropBoxManager. The DropBoxManager requires READ_LOGS permission to be 
 granted in order to query information from it. 

 Today I've tested my application on newest (api 16) emulator before 
 releasing it to Google Play. It turned out that Android now refuses to 
 grant this permission to 3rd party applications. This is weird because I've 
 looked through all Jelly Bean's documented changes and couldn't find 
 anything that mentions READ_LOGS permission. 

 So basically my questions: 

- Did anyone see this change documented? 
- Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on 
it (the one released to attendees of Google I/O)?

 And questions to someone from Android team: 

- Why this breaking change wasn't described in documentations like 

 READ_EXTERNAL_STORAGEhttp://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGEwas?
  

- What should developers and testers do in order to use those handy 
utility applications that require READ_LOGS to be useful? Is there any way 
to allow READ_LOGS to 3rd party applications without making custom build 
(i.e. something in Developer Options that I could've missed)? 



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

2012-07-20 Thread Narendra Singh Rathore
Hi all, I need to know how can I get the platform signing key.
I googled a lot, but unable to find the step by step process for that.

Please guide me the way to do that.

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

Re: [android-developers] How to get the platform signing key

2012-07-20 Thread Mark Murphy
On Fri, Jul 20, 2012 at 7:03 AM, Narendra Singh Rathore
nsr.curi...@gmail.com wrote:
 Hi all, I need to know how can I get the platform signing key.
 I googled a lot, but unable to find the step by step process for that.

 Please guide me the way to do that.

This has nothing to do with this list.

To learn how to create your own Android build with your own platform
signing key, visit http://source.android.com.

-- 
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.8 Available!

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


Re: [android-developers] Re: Dear all

2012-07-20 Thread srikanth
thank you i got it

On Friday, July 13, 2012 9:23:55 AM UTC+5:30, jugni wrote:

 Hello,
 first of all retrive the which item is clicked and then based on cliked 
 item call the activity so your query will be solve.

 On Fri, Jul 13, 2012 at 8:41 AM, srikanth srikanthandroidgro...@gmail.com
  wrote:

 sorry for my English ,
 thanks for this solution but my intention is if i click individual 
 options in list view retrieve   different actives...as like one options for 
 one activity and second for second activity and third for third activity 
  

 On Wednesday, July 11, 2012 3:02:17 PM UTC+5:30, Rajan wrote:

 // -- write in onCreate() Method --
  ListView ls;
 ls=(ListView)findViewById(ls.**id.YOUR_LISTVIEW_ID);
 ls.setOnItemClickListener(**this);
 // --**--**
@Override
 public void onItemClick(AdapterView? adapter, View v, int position, 
 long viewId)
 {
  Intent i = new Intent(this,CLASSNAME.class);
 startActivity(i);
 }

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


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

2012-07-20 Thread superpsycho
I´m a german dev-beginner and i can tell you, our taxsystem is as complex 
as hell... 
I think you have a german giro-account right? So the way i would go is to 
contact the local depatment of taxes where your bank is located. They might 
help you much better than any dev because the whole thing depends on the 
location of your business... If you have your business in germany you have 
to pay full taxes at all... if you are located in EU you might have to pay 
Mehrwertsteuer in germany but your countrydepending taxes (to YOUR 
country) for the business.. If you locate the business in not EU countrys 
you have to pay duty and so on and so on... so if you like to tell me which 
institute you use i´m able to tell you witch departemnt you have to call.

Have a great day!

Am Donnerstag, 19. Juli 2012 14:09:04 UTC+2 schrieb kaciula:

 Is anyone here a developer who sells Android apps via Google Checkout and 
 is located in Germany?

 I need some basic info regarding the tax system in Germany. I am a Sole 
 Trader located in Romania and, in order to sell Android apps, I've linked 
 my Google Checkout with a German bank account owned by someone else. I've 
 started making some money and I have no clue if I should declare something 
 in Germany or pay my taxes in Romania etc. Any help would be much 
 appreciated.


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

[android-developers] Re: systrace error

2012-07-20 Thread Todd Sjolander
Have you seen 
thishttp://stackoverflow.com/questions/11300773/error-running-systrace-tool-in-adb-using-a-jelly-bean-4-1-emulator-on-windows-7?
 
 It sounds like the script doesn't play nice on Windows...but that seems 
like too obvious of an error to go overlooked.  Either way, running it in 
Linux is a good way to sidestep the issue.

On Tuesday, July 3, 2012 9:25:55 PM UTC-4, jlum wrote:

 I'm having problems getting systrace to work on Windows7 64-bit. I 
 have Python 2.7 64-bit installed on my PC. I have enabled tracing 
 through Settings  Developer options  Monitoring  Enable traces. 

 Here's the output from Command Prompt: 

 C:\Android SDK\android-sdk_r07-windows\android-sdk-windows\tools 
 \systracesystrace.py 
 Traceback (most recent call last): 
   File C:\Android SDK\android-sdk_r07-windows\android-sdk-windows 
 \tools\systrace\systrace.py, line 212, in module 
 main() 
   File C:\Android SDK\android-sdk_r07-windows\android-sdk-windows 
 \tools\systrace\systrace.py, line 124, in main 
 ready = select.select([adb.stdout, adb.stderr], [], [adb.stdout, 
 adb.stderr]) 
 select.error: (10093, 'Either the application has not called 
 WSAStartup, or WSAStartup failed') 

 Any ideas? 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] Serial BluetoothSTREAM without packaging

2012-07-20 Thread superpsycho
Hey devs,
i would like to know if it´s possible to sent data over bluetooth without 
interruption.
With the source below i got fragmented packages on the reciverside.

CODE:

OutputStream outStream = serialSocket.getOutputStream();
Log.d(TAG,outStream created success!);

byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
0x42};
outStream.write(buffer);
byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
0x42};
outStream.write(buffer);
byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
0x42};
outStream.write(buffer);

RESULT:

Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
0x34, 0x42
Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
0x34, 0x42
Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
0x34, 0x42

WANTED RESULT:
NO_Connetionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 
0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
0x34, 0x42, 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
0x42 and so on and so on...

My BT-chip on the reciverside supports a streammode where all the redudant 
AT-Commands become supressed but only if booth sides support the type of 
sending. The application for this provided service is a connection via 
bluetooth nobody is able to 
differentiatehttp://www.dict.cc/englisch-deutsch/differentiate.htmlfrom an 
real cable.
My usecase is an selfmade protocoll i need to speak with the ARM connected 
to the reciverchip.

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

2012-07-20 Thread Andrew
I'll try to find this out through experiments.
Yes, I agree that this probably is freezing UI.  But there's a problem 
here: this cannot be run on a spawned thread as OS may kill the process 
right after this call returns, thus, again, killing the saving thread in 
the middle!

On Thursday, July 19, 2012 5:06:10 PM UTC-4, Mark Murphy (a Commons Guy) 
wrote:

 On Thu, Jul 19, 2012 at 5:00 PM, Andrew wrote: 
  So, basically the limit is ANR limit, correct? 

 That's my guess. It's a guess, though. 

 And, bear in mind that the ANR limit is merely the limit where Android 
 will take action to stop the bleeding. Your UI should be completely 
 frozen during these several seconds, which is very bad for UX. 
 Anything taking that amount of time needs to be done in a background 
 thread (e.g., AsyncTask). 

 -- 
 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.8 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] onSaveInstanceState() killed by OS

2012-07-20 Thread Mark Murphy
On Fri, Jul 20, 2012 at 8:06 AM, Andrew
andrew.masl...@allegrowireless.com wrote:
 Yes, I agree that this probably is freezing UI.  But there's a problem here:
 this cannot be run on a spawned thread as OS may kill the process right
 after this call returns, thus, again, killing the saving thread in the
 middle!

First, it is rather unlikely that the OS will kill the process right
after this call returns.

Second, if you are trying to do anything that takes a while in
onSaveInstanceState(), you're doing it wrong. You should be triggering
that work in other places (e.g., onPause(), on an explicit action bar
item click), and using a background thread in those places as well.
For example, onSaveInstanceState() has nothing to do with a persistent
data model (e.g., database).

Third, as you are discovering, Android may terminate your work
*anyway* if you are taking a long time on the main application thread.

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

_The Busy Coder's Guide to Android Development_ Version 3.8 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] Android C2DM messages are lost?

2012-07-20 Thread Jafar
Hello,

I'm sending notifications with android C2DM. I'm using C2dmSharp. I'm 
trying to send 200 different notifications to my phone. Server-side I get 
an OK response with an id=[ID of sent message] for each message (like 
documented here https://developers.google.com/android/c2dm/#push) so I 
guess my serve is doing well. But on my phone I only get a few 
notifications... NOT 200! Ok I know it's not a guaranteed service but it's 
like 90% of notifications that aren't sent. Am I doing anything wrong? How 
can I make it work?

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: urgent - how to include existing c++ code into Android

2012-07-20 Thread Károly Holczhauser
Hello there ! 
 Yes, all of you had right ! I had created an extend C code in a cpp file 
with a JNI , after I was able to reach my original C++ lib. 
Thx , cheers

On Wednesday, 18 July 2012 09:56:35 UTC+2, Juned Khan wrote:

 NDK is the only solution to run .cpp files or .c files


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

2012-07-20 Thread BoD

:(
Did anybody open an issue?

--
BoD

On 07/20/2012 11:25 AM, b0b wrote:


Exactly. StrictMode thread policy (and it seems only thread policy) is 
restored to the default settings by the framewrok after onCreate() is 
called.


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

2012-07-20 Thread bob
 

Hmmm…  I used to think that Romain Guy was from Romania.  But I guess 
that's just his name.



On Friday, July 20, 2012 2:46:48 AM UTC-5, kaciula wrote:

 Because Android developers from Romania, as well as developers from a lot 
 of other countries, can't sell apps on the Android Market. 


 http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=150324


 On Friday, July 20, 2012 12:06:42 AM UTC+3, bob wrote:

 Why not get your own bank account in Romania and use that?

 On Thursday, July 19, 2012 7:09:04 AM UTC-5, kaciula wrote:

 Is anyone here a developer who sells Android apps via Google Checkout 
 and is located in Germany?

 I need some basic info regarding the tax system in Germany. I am a Sole 
 Trader located in Romania and, in order to sell Android apps, I've linked 
 my Google Checkout with a German bank account owned by someone else. I've 
 started making some money and I have no clue if I should declare something 
 in Germany or pay my taxes in Romania etc. Any help would be much 
 appreciated.



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

[android-developers] Re: Scaling ImageView rightCrop

2012-07-20 Thread Sam Duke
+1 for this

On Monday, 31 January 2011 17:04:33 UTC, lou wrote:

 Hi ! 
 I'm trying to insert an image in my application. 
 This image don't cover all the screen, so I have to scale it. 
 My problem : 
 I want the picture to cover the all screen, stay scaled and be cropped 
 at the right of the screen. Consequently we don't see the right part 
 of the picture. 
 It looks like a rightCrop ( or an alignLeft ). 
 I tried center, but the picture is too short and don't cover the 
 entire screen, and the other scaling mode don't seems to resolve this 
 matters. 
 How can I do that, please ? 
 Thanks a lot. 
 Louis

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

2012-07-20 Thread bob
 

Can you use Admob or Greystripe to monetize your apps?

On Friday, July 20, 2012 2:46:48 AM UTC-5, kaciula wrote:

 Because Android developers from Romania, as well as developers from a lot 
 of other countries, can't sell apps on the Android Market. 


 http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=150324


 On Friday, July 20, 2012 12:06:42 AM UTC+3, bob wrote:

 Why not get your own bank account in Romania and use that?

 On Thursday, July 19, 2012 7:09:04 AM UTC-5, kaciula wrote:

 Is anyone here a developer who sells Android apps via Google Checkout 
 and is located in Germany?

 I need some basic info regarding the tax system in Germany. I am a Sole 
 Trader located in Romania and, in order to sell Android apps, I've linked 
 my Google Checkout with a German bank account owned by someone else. I've 
 started making some money and I have no clue if I should declare something 
 in Germany or pay my taxes in Romania etc. Any help would be much 
 appreciated.



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

[android-developers] Listener object referece after removing the view

2012-07-20 Thread rk
I am  adding Custom Views  and each View has few Custom-listeners.

Based on the User settings I will remove existing views and create/add new 
views to the UI.

My Question:
When I remove/delete the view, does my Listener objects are eligible for 
garbage collection or NOT ?

I dont need the view and listener references any more, once user changes 
the settings.



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

2012-07-20 Thread joebowbeer
Note that there is now an Android Lint check for non-static inner classes 
that extend Handler.  See HandlerLeak:

http://tools.android.com/tips/lint-checks

I've implemented a Handler.Callback wrapper that wraps the Callback 
(usually an inner class) in a WeakReference, and I construct the Handler 
instance using the wrapped Callback.  This way, the code that used to exist 
in the leaky Handler inner class now exists in the Callback implementation. 
 This seems to have the least impact on the source code, while still 
removing the potential leak.

On Friday, July 13, 2012 6:01:49 AM UTC-7, Michael Rozumyanskiy wrote:

 But what about a Handler.Callback interface which can be passed to the 
 Handler's constructor. According to the source code it is stored in the 
 Handler class as a strong reference, so if the Message lives in the queue 
 for a long time, the callback will not be gc'ed. And the callback may be an 
 Activity or an inner class of an activity. But I can't see any checks in 
 the source code and any recommendations in the documentation. As far as I 
 understand, there isn't any right way to use the Handler.Callback with the 
 Handler, is there? 

 On Saturday, April 4, 2009 9:52:06 PM UTC+4, Romain Guy wrote:

 I wrote that debugging code because of a couple of memory leaks I 
 found in the Android codebase. Like you said, a Message has a 
 reference to the Handler which, when it's inner and non-static, has a 
 reference to the outer this (an Activity for instance.) If the Message 
 lives in the queue for a long time, which happens fairly easily when 
 posting a delayed message for instance, you keep a reference to the 
 Activity and leak all the views and resources. It gets even worse 
 when you obtain a Message and don't post it right away but keep it 
 somewhere (for instance in a static structure) for later use. 

 If you want to use the equivalent of an inner-class but not risk a 
 leak, here's a simple pattern: 

 class OuterClass { 
   class InnerClass { 
 private final WeakReferenceOuterClass mTarget; 

 InnerClass(OuterClass target) { 
   mTarget = new WeakReferenceOuterClass(target); 
 } 

 void doSomething() { 
   OuterClass target = mTarget.get(); 
   if (target != null) target.do(); 
 } 
   } 
 } 

 On Sat, Apr 4, 2009 at 12:15 AM, Greg Krimer wrote: 
  
  Thank you very much for the reply! After reading what Fadden said 
  weeks ago, I happily converted my static inner handler classes to non- 
  static ones. 
  
  Just recently, I was browsing the source code of Handler and came 
  across this bit of internal Android debugging: 
  
 /* 
  * Set this flag to true to detect anonymous, local or member 
  classes 
  * that extend this Handler class and that are not static. These 
  kind 
  * of classes can potentially create leaks. 
  */ 
 private static final boolean FIND_POTENTIAL_LEAKS = false; 
  
  There is some code further down that uses reflection to locate such 
  subclasses if this flag is true. 
  
  My handlers fall into the category of non-static member classes, so I 
  am curious how such classes could cause a memory leak. My initial 
  thinking was that handlers could perhaps accumulate in a collection 
  associated with the MessageQueue. But handlers are never placed into 
  collections, as far as I can tell. The reference to the handler is in 
  the message. Clever! (And in any case if the memory leak is due to an 
  ever-growing collection of handlers somewhere then that has nothing to 
  do with whether or not the handler class is static or not.) 
  
  Just wondering if someone can shed some light on this comment in the 
  Android source code. 
  
  Thanks, 
  
  Greg 
  
  On Mar 10, 4:08 pm, fadden fad...@android.com wrote: 
  On Mar 9, 7:17 pm, Greg Krimer gkri...@gmail.com wrote: 
  
   I have been finding it convenient to extend Handler in many of my 
   activities to handle messages specific to the activity. The handler 
   sublass is an inner class of the activity and needs to access its 
   state. I am wondering if there is any performance difference between 
   making the handler subclassstaticand passing in the activity 
   explicitly in its constructor or making the subclass an instance 
   class and letting the vm worry about my accessing members of the 
   containing activity. 
  
  There's no real difference between explicitly and implicitly passing 
  the outer-class reference around.  Your example above is essentially 
  doing what javac does automatically. 
  
  Staticinner classes have some useful properties, e.g. you know 
  they're not modifying state in the parent, and you can use 
  Class.newInstance() with them.  There's no performance magic though. 
  
  If you're really curious, write it both ways in trivial source files, 
  compile them, then view them with javap -private -verbose Class or 
  dx --dump Class.class.  They should look about the same. 
   
  



-- 
You received this 

[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-20 Thread vt
On Friday, July 20, 2012 2:50:19 AM UTC-7, Ran wrote:

 I just got the OTA for JellyBean on my Nexus S.
 READ_LOGS apps seem to work as before.. I can see all the logs in alogcat.

 is this a bug?


It looks like previously installed applications have inherited permissions 
that were given at installation time.

--vt

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

2012-07-20 Thread Justin Anderson
As Mark said earlier... The main purpose of onSaveInstanceState() is to
save the current state of your UI so you can restore it when the activity
comes back...  That way the rotation appears seamless to the user.

This would mean saving text in EditText objects, or the checked state of a
CheckBox or RadioButton, etc... That shouldn't take very long to save... If
you are doing other stuff in there that would need to be moved elsewhere.

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


On Fri, Jul 20, 2012 at 6:17 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Fri, Jul 20, 2012 at 8:06 AM, Andrew
 andrew.masl...@allegrowireless.com wrote:
  Yes, I agree that this probably is freezing UI.  But there's a problem
 here:
  this cannot be run on a spawned thread as OS may kill the process right
  after this call returns, thus, again, killing the saving thread in the
  middle!

 First, it is rather unlikely that the OS will kill the process right
 after this call returns.

 Second, if you are trying to do anything that takes a while in
 onSaveInstanceState(), you're doing it wrong. You should be triggering
 that work in other places (e.g., onPause(), on an explicit action bar
 item click), and using a background thread in those places as well.
 For example, onSaveInstanceState() has nothing to do with a persistent
 data model (e.g., database).

 Third, as you are discovering, Android may terminate your work
 *anyway* if you are taking a long time on the main application thread.

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

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

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


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

Re: [android-developers] onSaveInstanceState() killed by OS

2012-07-20 Thread RichardC
And not even your UI:

* The default implementation takes care of most of the UI per-instance 
state for you by calling 
onSaveInstanceState()http://developer.android.com/reference/android/view/View.html#onSaveInstanceState()
 on 
each view in the hierarchy that has an id, and by saving the id of the 
currently focused view (all of which is restored by the default 
implementation of 
onRestoreInstanceState(Bundle)http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)).
 
If you override this method to save additional information not captured by 
each individual view, you will likely want to call through to the default 
implementation, otherwise be prepared to save all of the state of each view 
yourself. *

http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)
 

So any UI object with the same ID in both the old and new context will be 
restored by the system

On Friday, July 20, 2012 3:57:51 PM UTC+1, MagouyaWare wrote:

 As Mark said earlier... The main purpose of onSaveInstanceState() is to 
 save the current state of your UI so you can restore it when the activity 
 comes back...  That way the rotation appears seamless to the user. 

 This would mean saving text in EditText objects, or the checked state of a 
 CheckBox or RadioButton, etc... That shouldn't take very long to save... If 
 you are doing other stuff in there that would need to be moved elsewhere.

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


 On Fri, Jul 20, 2012 at 6:17 AM, Mark Murphy 
 x wrote:

 On Fri, Jul 20, 2012 at 8:06 AM, Andrew
 x wrote:
  Yes, I agree that this probably is freezing UI.  But there's a problem 
 here:
  this cannot be run on a spawned thread as OS may kill the process right
  after this call returns, thus, again, killing the saving thread in the
  middle!

 First, it is rather unlikely that the OS will kill the process right
 after this call returns.

 Second, if you are trying to do anything that takes a while in
 onSaveInstanceState(), you're doing it wrong. You should be triggering
 that work in other places (e.g., onPause(), on an explicit action bar
 item click), and using a background thread in those places as well.
 For example, onSaveInstanceState() has nothing to do with a persistent
 data model (e.g., database).

 Third, as you are discovering, Android may terminate your work
 *anyway* if you are taking a long time on the main application thread.

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

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

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




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

Re: [android-developers] How to stop terminate the Android application when using the native code

2012-07-20 Thread Justin Anderson

 I know, i can disable it, so it will work, but i'd like to let the app can
 run many times again. So i disable the exit(), but when call the second
 times, it generates errors.

 Could you help?

Debug your code, find the cause of the errors, and fix them...

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


On Fri, Jul 20, 2012 at 12:58 AM, Clark kent nguyenle...@gmail.com wrote:

 I know, i can disable it, so it will work, but i'd like to let the app can
 run many times again. So i disable the exit(), but when call the second
 times, it generates errors.

 Could you help?

 Thanks
 Clark


 On Sunday, July 15, 2012 5:52:38 AM UTC+7, Dianne Hackborn wrote:

 You just need to fix your native code so it doesn't do this.  Anyone
 giving you a native library that is calling exit() in it is an evil sadist.
 :p

 On Fri, Jul 13, 2012 at 3:02 AM, Clark kent nguyenle...@gmail.comwrote:

 Hello every body

 I have this problem which can not resolve it.

 I'm calling the native code(*C code*) from the android application. But
 in the native code, they call function *exit(0)* so it makes the app
 on Android terminate. Could any one know how to stop this one, because
 after i called one method from native code , after it finished, it will
 terminate the Android application.

 I found a way is disable the method *exit(0)*, so it will not
 terminate the Android app, but it meet error when i called the native
 method second time, some error kind like this: *Invalid heap address
 in internal_realloc*. I think that came from the re allocation the
 memory. So if any one know how to free all memory of native call, please
 let me know. Thanks for any comments

 Thanks

 Clark

 --
 You received this 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




 --
 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] video upload to server

2012-07-20 Thread Justin Anderson
how to use google...

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


On Fri, Jul 20, 2012 at 12:42 AM, ANKUR GOEL ankur1...@gmail.com wrote:

 Hi all ,

 how to upload large video file to server .

 Thanks


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

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

Re: [android-developers] onSaveInstanceState() killed by OS

2012-07-20 Thread Streets Of Boston
Hi Andrew,

The answers you got are correct. You should spend as little time in 
onSaveInstanceState (or any other onX callback method) as possible. 
Preferably a few milliseconds.

I don't know what your app does, but it looks like you try to save user 
supplied information (either in a file or online) and you chose the 
onSaveInstanceState callback to do so. Don't use this callback for this 
purpose.

The onSaveInstanceState should only be used to enable you to recreate the 
activity (i.e. what's on the screen) later exactly as it appeared just 
before its process got killed. No more, no less. This means, as Magouyaware 
said, saving nothing more than simple values from Views/controls/etc.

If you need to persist user-provided data (on file, online), then use 
another mechanism. If saving this user-provided data could take a relative 
long time, use a service (Service, better would be IntentService and if 
you're paranoid a wakefull IntentService - ask Mark about this one :-) - is 
even better).  

On Friday, July 20, 2012 8:06:40 AM UTC-4, Andrew wrote:

 I'll try to find this out through experiments.
 Yes, I agree that this probably is freezing UI.  But there's a problem 
 here: this cannot be run on a spawned thread as OS may kill the process 
 right after this call returns, thus, again, killing the saving thread in 
 the middle!

 On Thursday, July 19, 2012 5:06:10 PM UTC-4, Mark Murphy (a Commons Guy) 
 wrote:

 On Thu, Jul 19, 2012 at 5:00 PM, Andrew wrote: 
  So, basically the limit is ANR limit, correct? 

 That's my guess. It's a guess, though. 

 And, bear in mind that the ANR limit is merely the limit where Android 
 will take action to stop the bleeding. Your UI should be completely 
 frozen during these several seconds, which is very bad for UX. 
 Anything taking that amount of time needs to be done in a background 
 thread (e.g., AsyncTask). 

 -- 
 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.8 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] onSaveInstanceState() killed by OS

2012-07-20 Thread Justin Anderson
Nice catch... I never noticed that before.

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


On Fri, Jul 20, 2012 at 9:07 AM, RichardC richard.crit...@googlemail.comwrote:

 And not even your UI:

 * The default implementation takes care of most of the UI per-instance
 state for you by calling 
 onSaveInstanceState()http://developer.android.com/reference/android/view/View.html#onSaveInstanceState%28%29
  on
 each view in the hierarchy that has an id, and by saving the id of the
 currently focused view (all of which is restored by the default
 implementation of 
 onRestoreInstanceState(Bundle)http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState%28android.os.Bundle%29).
 If you override this method to save additional information not captured by
 each individual view, you will likely want to call through to the default
 implementation, otherwise be prepared to save all of the state of each view
 yourself. *


 http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)


 So any UI object with the same ID in both the old and new context will be
 restored by the system

 On Friday, July 20, 2012 3:57:51 PM UTC+1, MagouyaWare wrote:

 As Mark said earlier... The main purpose of onSaveInstanceState() is to
 save the current state of your UI so you can restore it when the activity
 comes back...  That way the rotation appears seamless to the user.

 This would mean saving text in EditText objects, or the checked state of
 a CheckBox or RadioButton, etc... That shouldn't take very long to save...
 If you are doing other stuff in there that would need to be moved elsewhere.

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


 On Fri, Jul 20, 2012 at 6:17 AM, Mark Murphy
 x wrote:

 On Fri, Jul 20, 2012 at 8:06 AM, Andrew
 x wrote:
  Yes, I agree that this probably is freezing UI.  But there's a problem
 here:
  this cannot be run on a spawned thread as OS may kill the process right
  after this call returns, thus, again, killing the saving thread in the
  middle!

 First, it is rather unlikely that the OS will kill the process right
 after this call returns.

 Second, if you are trying to do anything that takes a while in
 onSaveInstanceState(), you're doing it wrong. You should be triggering
 that work in other places (e.g., onPause(), on an explicit action bar
 item click), and using a background thread in those places as well.
 For example, onSaveInstanceState() has nothing to do with a persistent
 data model (e.g., database).

 Third, as you are discovering, Android may terminate your work
 *anyway* if you are taking a long time on the main application thread.

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

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

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

 To unsubscribe from this group, send email to
 x

 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

Re: [android-developers] Re: Sole Trader in Germany?

2012-07-20 Thread Kristopher Micinski
On Fri, Jul 20, 2012 at 9:51 AM, bob b...@coolfone.comze.com wrote:
 Hmmm…  I used to think that Romain Guy was from Romania.  But I guess that's
 just his name.


No, he's one of the developers at Google...

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] Gingerbread sandwich

2012-07-20 Thread bob
 

So, there was Android 1 and Android 2, which were basically for phones.


Then, came Android 3, which was basically for tablets.


Then, came Android 4, which is for phones again.  Is it safe to say that 
Android 4 is basically a continuation of Android 2 for the most part?  




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

2012-07-20 Thread kaciula
The entire business is located in Romania (which is in EU). Only the bank 
account is in Germany and the owner is a regular guy who lives in Germany. 
And the account is a Giro account at the Baden Wurtembergische Bank.

Basically, we'd like from time to time to transfer the money from the 
German bank account to our Romanian bank account and to pay all our taxes 
in Romania and not bother at all with Germany. However, we don't know if 
maybe the German bank raises some flags to the local authorities because of 
the money transfers from Google Checkout to the German bank account.

Thanks for the help

On Friday, July 20, 2012 2:39:01 PM UTC+3, superpsycho wrote:

 I´m a german dev-beginner and i can tell you, our taxsystem is as complex 
 as hell... 
 I think you have a german giro-account right? So the way i would go is to 
 contact the local depatment of taxes where your bank is located. They might 
 help you much better than any dev because the whole thing depends on the 
 location of your business... If you have your business in germany you have 
 to pay full taxes at all... if you are located in EU you might have to pay 
 Mehrwertsteuer in germany but your countrydepending taxes (to YOUR 
 country) for the business.. If you locate the business in not EU countrys 
 you have to pay duty and so on and so on... so if you like to tell me which 
 institute you use i´m able to tell you witch departemnt you have to call.

 Have a great day!

 Am Donnerstag, 19. Juli 2012 14:09:04 UTC+2 schrieb kaciula:

 Is anyone here a developer who sells Android apps via Google Checkout and 
 is located in Germany?

 I need some basic info regarding the tax system in Germany. I am a Sole 
 Trader located in Romania and, in order to sell Android apps, I've linked 
 my Google Checkout with a German bank account owned by someone else. I've 
 started making some money and I have no clue if I should declare something 
 in Germany or pay my taxes in Romania etc. Any help would be much 
 appreciated.



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

Re: [android-developers] Accessing Android Transceiver Info.

2012-07-20 Thread Fred Niggle
Speaking from experience of attempting to develop an ultrasonic measurement
app, this is not possible.

Sonar is a marine application and it is simply not possible with a mobile
phone, not lest because mobile phones do not have a submersible active
sonar device, but also because surface noise generated by mobile phones
cannot penetrate deep enough into the water to be of any use.

Sorry to be the bearer of bad news, but I (and others) have tried, and its
fruitless.

Regards,
Fred

On 20 July 2012 04:16, Be Tox bill.tak...@gmail.com wrote:

 Does anyone know how to access the transceiver information (MIB?) on
 an Android phone in order to create a Sonar type App?

 Kind Regards, Be Tox

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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

2012-07-20 Thread Justin Anderson
   1. this really should be on the android-discuss group as it has nothing
   to do with development. Really, you'd think you'd get it down by now, after
   the number of threads that you've started and you've been told so many
   times that this group is not the appropriate place for it.
   2. Absolutely not... Android 4 is a continuation of Android 3, except
   that they've made it phone friendly again so it is for phones and tablets.


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


On Fri, Jul 20, 2012 at 9:52 AM, bob b...@coolfone.comze.com wrote:

 So, there was Android 1 and Android 2, which were basically for phones.


 Then, came Android 3, which was basically for tablets.


 Then, came Android 4, which is for phones again.  Is it safe to say that
 Android 4 is basically a continuation of Android 2 for the most part?




  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: File IO works on Emulator but not my snowball board

2012-07-20 Thread marcpolo
Problem solved. I had to enable user permissions (chmod) on the mnt/sdcard/ 
directory. Thanks for the feedback.

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

2012-07-20 Thread Kostya Vasilyev
It's also pretty easy to remove outstanding messages in an activity or
fragment's end-of-lifecycle callbacks. Good idea anyway if those messages
are supposed to trigger UI changes -- you won't want them to arrive after
the activity/fragment has shut down.

-- K

2012/7/20 joebowbeer joe.bowb...@gmail.com

 Note that there is now an Android Lint check for non-static inner classes
 that extend Handler.  See HandlerLeak:

 http://tools.android.com/tips/lint-checks

 I've implemented a Handler.Callback wrapper that wraps the Callback
 (usually an inner class) in a WeakReference, and I construct the Handler
 instance using the wrapped Callback.  This way, the code that used to exist
 in the leaky Handler inner class now exists in the Callback implementation.
  This seems to have the least impact on the source code, while still
 removing the potential leak.


 On Friday, July 13, 2012 6:01:49 AM UTC-7, Michael Rozumyanskiy wrote:

 But what about a Handler.Callback interface which can be passed to the
 Handler's constructor. According to the source code it is stored in the
 Handler class as a strong reference, so if the Message lives in the queue
 for a long time, the callback will not be gc'ed. And the callback may be an
 Activity or an inner class of an activity. But I can't see any checks in
 the source code and any recommendations in the documentation. As far as I
 understand, there isn't any right way to use the Handler.Callback with the
 Handler, is there?

 On Saturday, April 4, 2009 9:52:06 PM UTC+4, Romain Guy wrote:

 I wrote that debugging code because of a couple of memory leaks I
 found in the Android codebase. Like you said, a Message has a
 reference to the Handler which, when it's inner and non-static, has a
 reference to the outer this (an Activity for instance.) If the Message
 lives in the queue for a long time, which happens fairly easily when
 posting a delayed message for instance, you keep a reference to the
 Activity and leak all the views and resources. It gets even worse
 when you obtain a Message and don't post it right away but keep it
 somewhere (for instance in a static structure) for later use.

 If you want to use the equivalent of an inner-class but not risk a
 leak, here's a simple pattern:

 class OuterClass {
   class InnerClass {
 private final WeakReferenceOuterClass mTarget;

 InnerClass(OuterClass target) {
   mTarget = new WeakReferenceOuterClass(**target);
 }

 void doSomething() {
   OuterClass target = mTarget.get();
   if (target != null) target.do();
 }
   }
 }

 On Sat, Apr 4, 2009 at 12:15 AM, Greg Krimer wrote:
 
  Thank you very much for the reply! After reading what Fadden said
  weeks ago, I happily converted my static inner handler classes to non-
  static ones.
 
  Just recently, I was browsing the source code of Handler and came
  across this bit of internal Android debugging:
 
 /*
  * Set this flag to true to detect anonymous, local or member
  classes
  * that extend this Handler class and that are not static. These
  kind
  * of classes can potentially create leaks.
  */
 private static final boolean FIND_POTENTIAL_LEAKS = false;
 
  There is some code further down that uses reflection to locate such
  subclasses if this flag is true.
 
  My handlers fall into the category of non-static member classes, so I
  am curious how such classes could cause a memory leak. My initial
  thinking was that handlers could perhaps accumulate in a collection
  associated with the MessageQueue. But handlers are never placed into
  collections, as far as I can tell. The reference to the handler is in
  the message. Clever! (And in any case if the memory leak is due to an
  ever-growing collection of handlers somewhere then that has nothing to
  do with whether or not the handler class is static or not.)
 
  Just wondering if someone can shed some light on this comment in the
  Android source code.
 
  Thanks,
 
  Greg
 
  On Mar 10, 4:08 pm, fadden fad...@android.com wrote:
  On Mar 9, 7:17 pm, Greg Krimer gkri...@gmail.com wrote:
 
   I have been finding it convenient to extend Handler in many of my
   activities to handle messages specific to the activity. The handler
   sublass is an inner class of the activity and needs to access its
   state. I am wondering if there is any performance difference
 between
   making the handler subclassstaticand passing in the activity
   explicitly in its constructor or making the subclass an instance
   class and letting the vm worry about my accessing members of the
   containing activity.
 
  There's no real difference between explicitly and implicitly passing
  the outer-class reference around.  Your example above is essentially
  doing what javac does automatically.
 
  Staticinner classes have some useful properties, e.g. you know
  they're not modifying state in the parent, and you can use
  Class.newInstance() with them.  There's no performance magic though.
 
  If 

[android-developers] OEM-Official ADB USB Driver support (rant)

2012-07-20 Thread JP
One of the most vexing problems over the years: Official ADB USB
driver support by OEMs.
With the exception of a few, every new device coming out seems to be
missing the ADB USB drivers. Even Nexus devices.
And once out, they may not even be available naked from the official
source, as they should be.
I got a Nexus 7 the other day and there still doesn't seem to be OEM-
official ADB USB driver support? Sure enough I got the Asus drivers
installed that cover the Transformer Prime, but the Nexus 7 draws a
blank. Or am I missing something (discount XDA developer'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


[android-developers] Re: Listener object referece after removing the view

2012-07-20 Thread bob
Why not override the finalize method in Java?

protected void finalize() throws Throwable {}

Maybe stick a Log statement in there and put a breakpoint on the Log 
statement?

When it gets called, that's when it's ready for collection.


On Friday, July 20, 2012 9:10:11 AM UTC-5, rk wrote:

 I am  adding Custom Views  and each View has few Custom-listeners.

 Based on the User settings I will remove existing views and create/add new 
 views to the UI.

 My Question:
 When I remove/delete the view, does my Listener objects are eligible for 
 garbage collection or NOT ?

 I dont need the view and listener references any more, once user changes 
 the settings.





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

2012-07-20 Thread bob
Sounds like a job for a TCP socket.  Will probably be something like this 
but more binary-ish:

Socket s = new Socket(Config_Manager.getIp(), Config_Manager.getPort());

OutputStream theOutput = s.getOutputStream();
OutputStreamWriter out = new OutputStreamWriter(theOutput);
out.write(content);

On Friday, July 20, 2012 1:42:34 AM UTC-5, ANKUR1486 wrote:

 Hi all , 

 how to upload large video file to server .

 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] JellyBean systrace in cygwin problem, does not write trace.html

2012-07-20 Thread JP
Using systrace, I am trying to create a system trace file as
demonstrated in the Google I/O session For Butter or Worse.
Configuration: Galaxy Nexus / JellyBean 4.1.1 (JR003C).
Windows 7 SP 1 with Cygwin and Python installed, which is different
from the demo in the session where they use a Mac.
When I run ./systrace, I get a binary dump in the console and a
trace.html is not written. I tried to pipe the output to a trace.html
file, but the output is not HTML. Below the output (abbreviated).
Anybody have any ideas?

$ ./systrace.py
capturing trace... done
TRACE:
x▒▒}k▒%O▒w=▒▒c`.▒? ▒?`r?↓♠1↑▒(▒Z6▒▒▒{▒{▒▒oF??▒♣▒tG▒L▒▒?
▒_▒▒⌂▒▒{▒?⌂▒▒▒⌂▒▒7?⌂▒▒n▒▒▒⌂m▒▒/⌂▒▒▒⌂▒?▒▒▒~▒▒?▒▒_?▒▒⌂▒▒▒|
▒▒?C▒▒⌂▒⌂▒w'▒c}▒▒⌂c▒▒▒%??▒h7?o?▒▒ï/w▒_?
▒:▒/?⌂e▒9▒▒▒|▒▒?▒▒z▒▒⌂{▒▒/▒wqs▒▒▒⌂v▒▒
14▒}▒▒0▒▒~y▒▒▒?▒▒o?▒▒x{▒G▒▒X▒▒zx▒H▒▒▒n?~▒?▒O_▒▒?
▒o▒▒(?l)?▒J▒▒*▒_?q▒4▒▒r1▒.*▒▒▒O⌂▒?▒▒-▒▒Y▒:▒b▒?
▒▒
*▒▒?tqun▒▒pw♠▒▒▒⌂▒▒▒t▒▒▒♣▒▒-▒▒?▒?
▒c▒▒v▒R▒▒TaV▒*▒►▒=▒▒L▒k\⌂▒▒▒z▒▒▒h▒Xm▒▒}▒▒u?
\▒8t▒◄▒▒▒J▒O⌂▒▒J►▒▒k^▒'o
s▒y▒/▒?,\▒s▒▒▒T▒k▒v▒?▒▒gOy▒♦Lj▒K`5_▒l▒?j`B([▒Lnñ?
b▒▒▒?2▒↓▒▒%▒  *nG▒Q▒↓'▒?;▒▒(k▒3l#▒n▒G+▒▒▒8▒▒cgA▒c`▒►▒▒(▒%}
▒▒▒[MEB▒\▒►O▒♠⌂?$▒♣▒tY▒▒▒7\;▒►'8▒▒[▒r▒8▒▒Xk▒▒,v▒?
p▒a▒3g▒↑'^▒▒,▒q▒▒▒8▒?▒BgO▒▒K▒▒`?▒U▒▒▒Wq▒h?◄WqC▒▒t?jY▒B▒x▒?
▒▒?y▒♣,b▒▒o
♦▒x▒r▒▒FVE♦▒▒{▒G▒6▒4▒RT▒▒d/1E-b▒E$?▒▒u▒?Z▒▒d◄sMI▒B▒P▒T▒▒▒'/▒RV?
r▒▒o▒▒♣R▒r_↑▒▒N=►▒P#▒►▒b1▒s▒▒u;▒%▒E1▒▒p▒eZ/▒,▒Iv-gQL▒.Yq▒E
!Y▒▒▒?▒(_3▒Y▒{R▒↓▒/DjY▒B▒xV▒T▒▒b4I=~▒P▒▒C▒▒▒?▒▒h▒a▒▒B▒Y►▒▒I▒u,▒▒i??
↑.▒▒Y▒W%F▒8zC▒b(_3▒9Z▒'5▒U=▒N▒▒-p▒m▒/▒▒?N▒▒BB5▒▒?▒▒▒ \
◄L▒!▒▒U▒▒$▒4▒\▒)L▒L▒!x}▒H▒\◄?▒C▒2▒`▒♣▒▒
▒x▒▒[▒*▒▒mC▒`◄  ▒mC▒g◄st?yI▒▒E▒1▒▒?▒1▒▒↓▒▒|
▒▒▒  5▒♣R-▒'E??▒5qia@*d▒▒b▒$T▒Z8▒▒↓▒T!▒,▒♠▒?
p▒[▒Y4▒\▒▒
 ?+▒q▒♦W▒S▒so+▒?x{J▒I▒3▒▒▒k▒+▒▒kW▒]Gs▒y▒▒u?v?▒▒,▒▒▒s▒ ▒??
▒1^▒w]n]▒S▒V(, ▒ae{▒▒q?▒▒?B▒:▒▒:▒rY▒
K▒▒#▒▒1grgQL)↓▒▒\#{▒▒▒F▒=▒▒$▒z!P▒m▒▒▒♣,▒▒n▒▒E▒Y▒/
5▒♣.D▒▒▒  5q◄▒▒{▒,1▒▒W1/h◄▒▒.?▒↑[;
8↓J▒c▒X▒,▒;▒▒a▒▒▒w▒▒♦▒▒'▒▒SX
W%?b
k#▒YCW/7▒'▒Xf▒U▒▒▒Q?▒▒▒?▒e▒SH▒W▒▒@▒▒◄▒I▒♠?▒r▒▒#7▒B▒0▒?
▒▒▒sM▒a▒c▒▒dI▒B▒H▒_▒\▒~.▒▒!.A▒▒X:▒H▒\Kv▒▒_▒▒!0▒s▒▒ZR▒▒
▒▒?Fb♥▒_▒▒K▒▒n▒#▒▒▒F}▒▒▒
+m▒▒▒q=▒a▒s▒(▒▒~▒♥▒0▒▒No_I▒▒▒6↑▒▒F
+▒_▒J▒_▒)ik5A▒w▒Z.)◄▒6▒▒▒i▒oa▒?wHo▒Rq▒▒*z.=►HY*▒f
;▒f▒p▒8►▒▒x▒▒z▒8▒r▒▒▒n▒+▒▒▒?7▒▒▒qgG*▒▒K♣k▒▒] ▒▒xZ▒▒nW?
▒▒♣ ▒!▒▒▒6▒▒p▒▒▒$t▒▒G▒▒▒u▒qJ▒5▒►t▒[▒▒▒ ▒upBag▒▒▒?▒Y$▒▒5▒▒▒y▒▒
▒\, ▒kv▒Y▒g{?▒y*▒?▒:▒a▒▒=z▒3O_t▒▒g▒`▒▒▒g▒▒{▒r▒p▒▒rq▒Lb▒sg▒▒?▒9▒{▒y▒▒
+g?SF▒pb?▒►▒▒L_▒ezwE▒▒▒
▒C▒▒Xr?▒:▒▒♦dO?▒FI▒I6V▒IBU▒▒▒~▒u?▒zX▒▒▒♣▒▒eh▒?
rgAw⌂▒s▒8s▒'gA▒+▒:▒Y8▒y▒?▒(_3▒Y?▒▒L▒▒??▒qT▒;▒▒▒↑6!
k=gp▒
h▒▒▒i▒:b▒v▒▒3n▒Z▒▒9b▒▒+x?↑WnR▒▒(▒9▒Pa▒▒Y!
▒▒r▒▒g▒▒*V♥▒vN▒▒*V▒▒▒/▒w'▒I:▒=MK▒Y▒k?-▒,J▒▒▒?3N\♦
▒Y▒Z▒wOL,♦▒▒N▒▒?▒▒w
Q.▒▒▒3▒g%P▒▒,q▒▒x6▒R▒♠d▒▒b0▒3?▒▒H▒▒b???▒raB▒c1U▒S▒↓7ra▒▒=▒8-4▒▒?
▒▒▒Q▒=▒▒^X_▒kF▒▒.►▒#▒9▒w▒8▒,▒=▒▒Q▒▒|▒'|▒▒j▒'▒?▒▒▒:▒t?▒▒?▒.▒♥▒▒▒
▒^▒▒▒ ▒▒u▒▒s▒q▒▒'▒,▒q6k8▒6▒L▒▒▒P#▒▒▒:▒▒▒'◄O▒~▒▒P▒▒H▒??T▒Y=~↑J0▒▒n▒m▒
$.▒,Jp▒▒:3▒▒=▒?▒♥▒,▒1▒▒▒E ▒▒▒v(▒▒▒P▒X▒▒r▒ ▒▒↓▒L\2?▒xf▒TB▒f▒8
z▒▒(?$▒E▒▒▒↓▒▒w▒=?▒▒C▒Y►▒▒▒w▒9b▒?
X▒▒↑▒▒♥▒↑G▒{$▒▒H▒▒▒◄▒tM▒:%▒}PO▒H-
▒i▒▒'▒↓▒a▒▒:♥▒eULbo▒X▒bHT⌂\k▒+▒,N6▒N+`Q▒▒▒]▒c▒▒tj
◄Z]▒▒▒_▒k1▒ktM▒O▒+▒3r}▒`▒$▒▒▒ ?B▒▒▒st?b
\VE▒◄▒▒Uu▒▒#▒▒ED▒Y?↑?z▒▒u▒q9x▒/D*▒A↓▒kF▒_F=?▒▒#▒▒▒*|
▒▒;▒▒eU▒+▒F%▒
5^N'u{▒▒♣▒i;%▒▒?▒rE▒x?↑;.▒▒,▒qX▒kR1▒V▒8:▒:▒Y
♥▒'▒=▒x♠▒▒{Th▒▒▒_B*▒?/Y▒
w▒▒I?▒▒▒TL5,4gA▒-?▒Y►c? 9▒▒▒O▒i▒\L▒◄▒l▒gj▒4▒⌂↑▒▒▒]8⌂J▒ç▒▒?f▒▒D▒!
▒▒et▒▒▒l~{▒~▒▒e▒▒=▒-jH5▒▒▒PR▒▒Yf▒~▒▒%♥▒/▒?l/♣~a▒s▒▒
▒P▒▒??▒▒/p▒⌂0g▒\▒▒♣▒▒▒g~♣▒▒▒*▒}G5~s▒.▒▒=▒▒`▒/~z▒▒d/▒G▒▒▒?
▒▒MAMO/]▒=T▒▒]5▒▒↓▒0▒3z▒S▒h=;?E▒?:▒
▒{▒▒[♣▒▒▒x▒▒▒?-KnB▒▒=▒W▒9▒N▒▒▒z▒+▒B'▒\gO▒+▒#?▒z▒G▒}j▒▒▒b▒}▒▒
Wcs▒^}1An error occured while capturing the trace.  Output file was
not written.

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

2012-07-20 Thread bob
 

Sounds like you are looking for the keytool command that you run at the 
command line.


I bet your keys are in a file called keystore on your hard drive.  If you 
combine the keytool command with the keystore file, that may give you what 
you're looking for.



On Friday, July 20, 2012 6:03:12 AM UTC-5, Narendra Singh Rathore wrote:

 Hi all, I need to know how can I get the platform signing key.
 I googled a lot, but unable to find the step by step process for that.

 Please guide me the way to do that.




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

[android-developers] Re: Accessing Android Transceiver Info.

2012-07-20 Thread bob
 

Do you want underwater sonar or above water sonar (like what bats use)?

On Thursday, July 19, 2012 10:16:36 PM UTC-5, Be Tox wrote:

 Does anyone know how to access the transceiver information (MIB?) on 
 an Android phone in order to create a Sonar type App?

 Kind Regards, Be Tox


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

2012-07-20 Thread bob
 

Why not get a Mac?


Almost all Android devices just work on a Mac.  I don't know why, but 
that is how it is.

On Friday, July 20, 2012 12:15:23 PM UTC-5, JP wrote:

 One of the most vexing problems over the years: Official ADB USB 
 driver support by OEMs. 
 With the exception of a few, every new device coming out seems to be 
 missing the ADB USB drivers. Even Nexus devices. 
 And once out, they may not even be available naked from the official 
 source, as they should be. 
 I got a Nexus 7 the other day and there still doesn't seem to be OEM- 
 official ADB USB driver support? Sure enough I got the Asus drivers 
 installed that cover the Transformer Prime, but the Nexus 7 draws a 
 blank. Or am I missing something (discount XDA developer'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

[android-developers] Re: Upload Video on youtube

2012-07-20 Thread bob
 

Make sure you have INTERNET permission and are linking to the JAR for the 
YouTube SDK.

On Wednesday, July 18, 2012 4:34:17 AM UTC-5, Mahesh Chunkhade wrote:

 Hello friends,
 I want to upload video on youtube via my application ,i tried 
 it lot but i am not getting how to upload video on youtube ,can anyone 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: Serial BluetoothSTREAM without packaging

2012-07-20 Thread bob
 

Why not append your data into one big buffer and do one send of the big 
buffer?

On Friday, July 20, 2012 6:51:01 AM UTC-5, superpsycho wrote:

 Hey devs,
 i would like to know if it´s possible to sent data over bluetooth without 
 interruption.
 With the source below i got fragmented packages on the reciverside.

 CODE:

 OutputStream outStream = serialSocket.getOutputStream();
 Log.d(TAG,outStream created success!);

 byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
 0x34, 0x42};
 outStream.write(buffer);
 byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
 0x34, 0x42};
 outStream.write(buffer);
 byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
 0x34, 0x42};
 outStream.write(buffer);

 RESULT:

 Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
 0x34, 0x42
 Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
 0x34, 0x42
 Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
 0x34, 0x42

 WANTED RESULT:
 NO_Connetionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 
 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
 0x34, 0x42, 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
 0x42 and so on and so on...

 My BT-chip on the reciverside supports a streammode where all the redudant 
 AT-Commands become supressed but only if booth sides support the type of 
 sending. The application for this provided service is a connection via 
 bluetooth nobody is able to 
 differentiatehttp://www.dict.cc/englisch-deutsch/differentiate.htmlfrom an 
 real cable.
 My usecase is an selfmade protocoll i need to speak with the ARM connected 
 to the reciverchip.



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

2012-07-20 Thread Bill Takats
Definitely NOT underwater.  I am looking at an APP to essentially bounce
sonic waves through/off materials -- probably in the 20 - 5000 Hz range.

On Fri, Jul 20, 2012 at 1:42 PM, bob b...@coolfone.comze.com wrote:

 Do you want underwater sonar or above water sonar (like what bats use)?

 On Thursday, July 19, 2012 10:16:36 PM UTC-5, Be Tox wrote:

 Does anyone know how to access the transceiver information (MIB?) on
 an Android phone in order to create a Sonar type App?

 Kind Regards, Be Tox

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




-- 
Bill

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

2012-07-20 Thread Nobu Games
Let the German bank account owner try to figure that one out. He could 
first of all ask his bank for free.

Be warned that the bank might be not amused when that account got opened 
under false pretenses (see 
http://europa.eu/youreurope/citizens/shopping/banking/opening-bank-account/index_en.htm
)

Then he can go to the local tax office and ask there for free. And if you 
want to be super-safe, hire a lawyer (best bet).

My guess is the following: since the EU makes these efforts for harmonizing 
business between EU countries it is OK to open a business bank 
accounthttp://www.businesslink.gov.uk/bdotg/action/detail?itemId=1083972719type=RESOURCESin
 Germany (or any other EU country). But you have to tell the bank and 
negotiate with them because there are different conditions depending on the 
bank account and business type.

In case of businesses there are additional conditions that require you to 
proof that your business is valid. Since your business is not located in 
Germany, and having your business at a real German address is a requirement 
for running a German business, I'm pretty sure that you do not have to pay 
German taxes. But that can be definitely cleared up by asking the local 
German tax office and / or a lawyer.

If the situation turns out to be too cumbersome you may consider opening a 
business bank account in the UK for 
examplehttp://www.bba.org.uk/customer/article/bank-account-access-in-the-uk-for-non-residents/banking-abroad/
.

Or you could found a subsidiary company in another EU country. There are at 
least efforts for eliminating 
double-taxationhttp://ec.europa.eu/taxation_customs/taxation/company_tax/parents-subsidiary_directive/index_en.htm#elim.
 
However, usually you need a real business address (not just a PO box). If 
you are considering that option, don't found your company in Germany. It is 
possible, but the laws and requirements there are a total pain in the 
backside for small businesses.

While googling around I found a website that says they help companies 
abroad with founding a UK based LLC and they serve as a proxy 
forhttp://www.sfsgo.com/nonukclientinfo.aspgetting you a real business 
address and local representatives. I'm not sure 
how shady that business is (it certainly looks fishy to me).
But anyway, in the past 10 years or so, UK was pretty popular for setting 
up companies from abroad. For some time the only thing you needed was an 
address there. I think due to heavy abuse they made things a bit stricter 
in the meanwhile.



On Friday, July 20, 2012 11:02:06 AM UTC-5, kaciula wrote:

 The entire business is located in Romania (which is in EU). Only the bank 
 account is in Germany and the owner is a regular guy who lives in Germany. 
 And the account is a Giro account at the Baden Wurtembergische Bank.

 Basically, we'd like from time to time to transfer the money from the 
 German bank account to our Romanian bank account and to pay all our taxes 
 in Romania and not bother at all with Germany. However, we don't know if 
 maybe the German bank raises some flags to the local authorities because of 
 the money transfers from Google Checkout to the German bank account.

 Thanks for the help

 On Friday, July 20, 2012 2:39:01 PM UTC+3, superpsycho wrote:

 I´m a german dev-beginner and i can tell you, our taxsystem is as complex 
 as hell... 
 I think you have a german giro-account right? So the way i would go is to 
 contact the local depatment of taxes where your bank is located. They might 
 help you much better than any dev because the whole thing depends on the 
 location of your business... If you have your business in germany you have 
 to pay full taxes at all... if you are located in EU you might have to pay 
 Mehrwertsteuer in germany but your countrydepending taxes (to YOUR 
 country) for the business.. If you locate the business in not EU countrys 
 you have to pay duty and so on and so on... so if you like to tell me which 
 institute you use i´m able to tell you witch departemnt you have to call.

 Have a great day!

 Am Donnerstag, 19. Juli 2012 14:09:04 UTC+2 schrieb kaciula:

 Is anyone here a developer who sells Android apps via Google Checkout 
 and is located in Germany?

 I need some basic info regarding the tax system in Germany. I am a Sole 
 Trader located in Romania and, in order to sell Android apps, I've linked 
 my Google Checkout with a German bank account owned by someone else. I've 
 started making some money and I have no clue if I should declare something 
 in Germany or pay my taxes in Romania etc. Any help would be much 
 appreciated.



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

Re: [android-developers] Usage of DisplayMetrics

2012-07-20 Thread Dianne Hackborn
I recommend never using them.  The real correct size will be given to you
through the view hierarchy.

On Thu, Jul 19, 2012 at 7:32 PM, Agus agus.sant...@gmail.com wrote:

 What are the uses cases in which width and height values of DisplayMetrics
 used ?

 Is it just for games ?

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

2012-07-20 Thread paladin
Code where I set the size:

public void surfaceChanged(SurfaceHolder holder, int format, int w, int 
h) {
Camera.Parameters parameters = camera.getParameters();
ListSize sizes = parameters.getSupportedPictureSizes();
int width = 0, height = 0;
if(sizes == null) {
width = 480; height = 320;
} else {
for(int i = 0; i  sizes.size(); i++) {
Size s = sizes.get(i);
if(width == 0 || (s.width  width  s.width = 1600)) {
width = s.width;
height = s.height;
}
}
parameters.setPictureSize(width, height);
camera.setParameters(parameters);
}

//AppGUI.ShowInfo((Activity)this.getContext(), str, Sizes);
camera.startPreview();
}

Code to take the picture:

buttonClick.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
taken = false;
buttonClick.setEnabled(false);
preview.camera.setPreviewCallback(null);
preview.camera.setOneShotPreviewCallback(null);
preview.camera.autoFocus(myAutoFocusCallback);
}
});

AutoFocusCallback myAutoFocusCallback = new AutoFocusCallback(){

public void onAutoFocus(boolean arg0, Camera arg1) {
preview.camera.takePicture(shutterCallback, rawCallback,
jpegCallback);
}};

PictureCallback jpegCallback = new PictureCallback() {
public void onPictureTaken(byte[] data, Camera camera) {
FormCamera.this.taken = true;
FileOutputStream outStream = null;
try {
if(which == FormRDC.MENU_ATTACH2 || only) {
Intent cameraRes = new Intent();
cameraRes.setData(Uri.parse(fname));
FormCamera.this.setResult(0, cameraRes);
}
File f = new File(FormCamera.this.getFilesDir(), fname);
outStream = new FileOutputStream(f);
outStream.write(data);
outStream.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if(which == FormRDC.MENU_ATTACH2 || only) {
FormCamera.this.finish();
} else {
try {
Thread.sleep(1500);
} catch(Exception e) {}
setup(FormRDC.MENU_ATTACH2);
preview.surfaceChanged(null, 0, 0, 0);
}
}
}
};

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-20 Thread Ran Manor
you're right.

- Ran


On Fri, Jul 20, 2012 at 5:49 PM, vt vadim.tkache...@gmail.com wrote:

 On Friday, July 20, 2012 2:50:19 AM UTC-7, Ran wrote:

 I just got the OTA for JellyBean on my Nexus S.
 READ_LOGS apps seem to work as before.. I can see all the logs in alogcat
 .

 is this a bug?


 It looks like previously installed applications have inherited permissions
 that were given at installation time.

 --vt

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

2012-07-20 Thread Nobu Games
In addition to what I said: the German bank account owner might get into 
trouble with the German tax system because of the money you earn for him. 
He is actually obliged to tell the tax office about any kind of income he 
has and in my book that money you earn counts as his income, since he owns 
the account.

I don't know how the German tax office networks with German banks and 
whether they try to peek into transactions but I think that's a possibility 
for uncovering fraud. I don't think that you and your company are at any 
risk here, but your German friend might be.

In my opinion the only sane way out of this situation is that the German 
account owner terminates that account and that you open a real business 
bank account in your company's name.

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

2012-07-20 Thread Streets Of Boston
The problem is with a non-static inner class is that you don't 'see' the 
implicit reference to the outer instance (OuterClass.this). It is easy to 
forget about this one and later realize what problems it causes.

Usually, 
when the lifetime cycle of an inner class matches the lifecycle of the 
outer class (e.g. OnClickListeners,etc, or BroadCastReceivers that are 
unregistered in the (outer) Activity's onDestroy), I make it non-static.
When the lifetime cycle of an inner class does *not *match the lifecycle of 
the outer class, I make it static. If a reference to the outer class' 
instance is needed, I either 'wrap' it in a WeakReference or create 
specific methods for detaching the outer instance from the inner instance.

On Monday, March 9, 2009 10:17:01 PM UTC-4, Greg Krimer wrote:

 Hello, 

 I have been finding it convenient to extend Handler in many of my 
 activities to handle messages specific to the activity. The handler 
 sublass is an inner class of the activity and needs to access its 
 state. I am wondering if there is any performance difference between 
 making the handler subclass static and passing in the activity 
 explicitly in its constructor or making the subclass an instance 
 class and letting the vm worry about my accessing members of the 
 containing activity. 

 The static approach: 

 public class MyActivity extends Activity { 

private static final class MyHandler extends Handler { 
final MyActivity mParentActivity; 

public MyHandler(MyActivity parentActivity) { 
mParentActivity = parentActivity; 
} 

public void handleMessage(Message msg) { 
  // access mParentActivity 
} 
 } 
 } 

 The non-static approach (more concise!): 

 public class MyActivity extends Activity { 

 private final class Myhandler extends Handler { 
 public void handleMessage(Message msg) { 
  // access MyActivity.this 
 } 
 } 
  } 
 } 

 I read somewhere that non-static inner classes are to be avoided 
 because of the implicit reference to the containing class instance 
 that needs to be associated with the inner class. But in the static 
 example above I am just providing this reference explicitly. Also it 
 seems like non-static inner classes are used liberally in the Android 
 source code and examples. So maybe my fear of non-static inner classes 
 is unfounded? 

 (I have read the Designing for Performance best-practice doc and taken 
 its advice of using package scope with inner classes to heart. But I 
 don't think it quite answers my question -- all the more reason for 
 thinking that the distinction between static and non-static inner 
 classes is of no real significance?) 

 Thanks, 

 Greg


On Monday, March 9, 2009 10:17:01 PM UTC-4, Greg Krimer wrote:

 Hello, 

 I have been finding it convenient to extend Handler in many of my 
 activities to handle messages specific to the activity. The handler 
 sublass is an inner class of the activity and needs to access its 
 state. I am wondering if there is any performance difference between 
 making the handler subclass static and passing in the activity 
 explicitly in its constructor or making the subclass an instance 
 class and letting the vm worry about my accessing members of the 
 containing activity. 

 The static approach: 

 public class MyActivity extends Activity { 

private static final class MyHandler extends Handler { 
final MyActivity mParentActivity; 

public MyHandler(MyActivity parentActivity) { 
mParentActivity = parentActivity; 
} 

public void handleMessage(Message msg) { 
  // access mParentActivity 
} 
 } 
 } 

 The non-static approach (more concise!): 

 public class MyActivity extends Activity { 

 private final class Myhandler extends Handler { 
 public void handleMessage(Message msg) { 
  // access MyActivity.this 
 } 
 } 
  } 
 } 

 I read somewhere that non-static inner classes are to be avoided 
 because of the implicit reference to the containing class instance 
 that needs to be associated with the inner class. But in the static 
 example above I am just providing this reference explicitly. Also it 
 seems like non-static inner classes are used liberally in the Android 
 source code and examples. So maybe my fear of non-static inner classes 
 is unfounded? 

 (I have read the Designing for Performance best-practice doc and taken 
 its advice of using package scope with inner classes to heart. But I 
 don't think it quite answers my question -- all the more reason for 
 thinking that the distinction between static and non-static inner 
 classes is of no real significance?) 

 Thanks, 

 Greg


On Monday, March 9, 2009 10:17:01 PM UTC-4, Greg Krimer wrote:

 Hello, 

 I have been 

[android-developers] Re: ICS build error:GC overhead limit exceeded

2012-07-20 Thread pratik.prajap...@gmail.com
Any one fixed this?

On Sunday, April 8, 2012 5:11:38 AM UTC-7, justlove joyous wrote:

 any clues?


 On Thursday, April 5, 2012 4:27:31 AM UTC-4, kcobra wrote:

 The error is as following: 


 UNEXPECTED TOP-LEVEL ERROR: 
 Exception in thread main java.lang.OutOfMemoryError: GC overhead 
 limit exceeded 
 make: *** [out/target/common/obj/JAVA_LIBRARIES/ 
 framework_intermediates/noproguard.classes-with-local.dex] Error 1 


 I make ICS on Ubuntu 10.10 with jdk 1.6.Does anyone know the reason? 
 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

Re: [android-developers] Usage of DisplayMetrics

2012-07-20 Thread bob
Or like so:

Display display = 
((WindowManager).getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
float width = display.getWidth();
float height = display.getHeight();


On Friday, July 20, 2012 1:06:36 PM UTC-5, Dianne Hackborn wrote:

 I recommend never using them.  The real correct size will be given to you 
 through the view hierarchy.

 On Thu, Jul 19, 2012 at 7:32 PM, Agus agus.sant...@gmail.com wrote:

 What are the uses cases in which width and height values of 
 DisplayMetrics used ?

 Is it just for games ?

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

2012-07-20 Thread bob
 

Are you planning to use sound waves or electromagnetic waves?  For sound 
waves, I would expect you would use audio playback and the microphone, and 
not a transceiver.  


If you're using electromagnetic waves, that's radar… ish.




On Friday, July 20, 2012 12:54:56 PM UTC-5, Be Tox wrote:

 Definitely NOT underwater.  I am looking at an APP to essentially bounce 
 sonic waves through/off materials -- probably in the 20 - 5000 Hz range.

 On Fri, Jul 20, 2012 at 1:42 PM, bob b...@coolfone.comze.com wrote:

 Do you want underwater sonar or above water sonar (like what bats use)?

 On Thursday, July 19, 2012 10:16:36 PM UTC-5, Be Tox wrote:

 Does anyone know how to access the transceiver information (MIB?) on 
 an Android phone in order to create a Sonar type App?

 Kind Regards, Be Tox

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




 -- 
 Bill


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

2012-07-20 Thread bob
 

Is there a way to set the stroke color on Paint to something different than 
the text color?

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

2012-07-20 Thread Nobu Games
I'm not sure what you mean. You can call Paint.setColor() and provide an 
ARGB encoded integer as argument. You can use the Color class for 
constructing such an int with helper methods. Or you can call 
Paint.setARGB() for specifying the individual color channels.

If you want to draw a shape with different stroke and fill colors you could 
use two draw operations for that and change the Paint object's color and 
style in between.

On Friday, July 20, 2012 2:19:48 PM UTC-5, bob wrote:

 Is there a way to set the stroke color on Paint to something different 
 than the text color?


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

2012-07-20 Thread Justin Anderson
Doesn't look like there is an easy way to do that, but depending on what
you are trying to do, a quick google search brought up this workaround that
may help...

http://stackoverflow.com/questions/2145131/trying-to-draw-a-button-how-to-set-a-stroke-color-and-how-to-align-a-gradient

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


On Fri, Jul 20, 2012 at 1:19 PM, bob b...@coolfone.comze.com wrote:

 Is there a way to set the stroke color on Paint to something different
 than the text color?

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

2012-07-20 Thread JP
I figured somebody was going to offer that.
I got a Mac, but this is about my Windows boxen where I need this to
work on Windows.

But while ranting (;-). The part that sucks with Macs is that Apple
drops older versions of OS X like hot potatoes.
If I know a certain application that I rely on is going to break FUBAR
with Lion or I don't like buying into the whole backwards swipy thing
because I switch between computers a bunch, well tough luck buddy
staying on the XCode update wagon.
So I got to have two of them or dual boot or whatever, and
methinksnot... How about it just work, oh nevermind.



On Jul 20, 10:45 am, bob b...@coolfone.comze.com wrote:
 Why not get a Mac?

 Almost all Android devices just work on a Mac.  I don't know why, but
 that is how it is.







 On Friday, July 20, 2012 12:15:23 PM UTC-5, JP wrote:

  One of the most vexing problems over the years: Official ADB USB
  driver support by OEMs.
  With the exception of a few, every new device coming out seems to be
  missing the ADB USB drivers. Even Nexus devices.
  And once out, they may not even be available naked from the official
  source, as they should be.
  I got a Nexus 7 the other day and there still doesn't seem to be OEM-
  official ADB USB driver support? Sure enough I got the Asus drivers
  installed that cover the Transformer Prime, but the Nexus 7 draws a
  blank. Or am I missing something (discount XDA developer'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] onSaveInstanceState() killed by OS

2012-07-20 Thread TreKing
On Fri, Jul 20, 2012 at 7:06 AM, Andrew
andrew.masl...@allegrowireless.comwrote:

 Yes, I agree that this probably is freezing UI.  But there's a problem
 here: this cannot be run on a spawned thread as OS may kill the process
 right after this call returns, thus, again, killing the saving thread in
 the middle!


This method, or it's fancy new Fragments version, might be of interest to
you:
http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance%28%29

-
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] set the different ringtone for an single contact

2012-07-20 Thread David Toledo
Hi All
How can I set the different ringtone for an single contact from address
book?
Thanks
David

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

2012-07-20 Thread Kostya Vasilyev
Since no-one's offered you try using Linux, I'll do that now. Some devices
still need some magic in the udev config file, but most don't.

I'm seeing a big difference in how fast Eclipse launches an app after it's
been built, it's much faster on Linux than on Windows (same computer, same
Eclipse versions).

You can make up for the increased efficiency by trying different
distributions, kernels, desktop environments, or figuring out what
configuration file controls X, Y or Z that could be easily changed by
pointing and clicking on Windows or Mac.

Faster launch time is the killer difference for me though.

And back to Windows, some manufacturers started posting their ADB drivers
to the Windows Update Center, so they install automagically. Out of the
devices I have, Sony Ericsson Xperia Arc was the first one, and today I saw
it with my Galaxy Nexus.

The funny (and sad) part is that the adb driver appears to be the same,
it's just the PNP ID's that are different.

-- K

2012/7/21 JP joachim.pfeif...@gmail.com

 I figured somebody was going to offer that.
 I got a Mac, but this is about my Windows boxen where I need this to
 work on Windows.

 But while ranting (;-). The part that sucks with Macs is that Apple
 drops older versions of OS X like hot potatoes.
 If I know a certain application that I rely on is going to break FUBAR
 with Lion or I don't like buying into the whole backwards swipy thing
 because I switch between computers a bunch, well tough luck buddy
 staying on the XCode update wagon.
 So I got to have two of them or dual boot or whatever, and
 methinksnot... How about it just work, oh nevermind.



 On Jul 20, 10:45 am, bob b...@coolfone.comze.com wrote:
  Why not get a Mac?
 
  Almost all Android devices just work on a Mac.  I don't know why, but
  that is how it is.
 
 
 
 
 
 
 
  On Friday, July 20, 2012 12:15:23 PM UTC-5, JP wrote:
 
   One of the most vexing problems over the years: Official ADB USB
   driver support by OEMs.
   With the exception of a few, every new device coming out seems to be
   missing the ADB USB drivers. Even Nexus devices.
   And once out, they may not even be available naked from the official
   source, as they should be.
   I got a Nexus 7 the other day and there still doesn't seem to be OEM-
   official ADB USB driver support? Sure enough I got the Asus drivers
   installed that cover the Transformer Prime, but the Nexus 7 draws a
   blank. Or am I missing something (discount XDA developer'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


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

2012-07-20 Thread ssocco
 

Hello,

I'm working with the Jelly Bean MediaCodec API, trying to configure a 
decoder and display pipeline for an open (unencrypted) container. How 
should I create a MediaCrypto object for the configure() API?

Thanks, Steve 

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

Re: [android-developers] set the different ringtone for an single contact

2012-07-20 Thread David Toledo
I answer myself, maybe is the solution from problem, the following

private void changeTonetoContact(int contactId,String uriString)
{
 ContentValues values = new ContentValues();
 values.put(ContactsContract.Contacts.CUSTOM_RINGTONE, uriString);
 getContentResolver().update(ContactsContract.Contacts.CONTENT_URI,
values, Contacts._ID + = + contactId, null);

}

2012/7/20 David Toledo dtole...@gmail.com

 Hi All
 How can I set the different ringtone for an single contact from address
 book?
 Thanks
 David




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

2012-07-20 Thread Justin Anderson

 This method, or it's fancy new Fragments version, might be of interest to
 you:

 http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance%28%29


I don't know... I can't see how there is much value in a method that you
must not rely on it being called


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


On Fri, Jul 20, 2012 at 2:12 PM, TreKing treking...@gmail.com wrote:

 On Fri, Jul 20, 2012 at 7:06 AM, Andrew 
 andrew.masl...@allegrowireless.com wrote:

 Yes, I agree that this probably is freezing UI.  But there's a problem
 here: this cannot be run on a spawned thread as OS may kill the process
 right after this call returns, thus, again, killing the saving thread in
 the middle!


 This method, or it's fancy new Fragments version, might be of interest to
 you:

 http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance%28%29


 -
 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: OEM-Official ADB USB Driver support (rant)

2012-07-20 Thread bob
 

There's something called PdaNet…  I think when you install it, it installs 
a bunch of drivers that help with Android devices…  I installed it, and it 
may have helped me talk to a VIZIO tablet on Windows… but I'm not sure.  I 
discovered that waiting one or two minutes before doing adb devices 
caused the device to show up, so it may have worked all along.


YMMV.



On Friday, July 20, 2012 3:11:46 PM UTC-5, JP wrote:

 I figured somebody was going to offer that. 
 I got a Mac, but this is about my Windows boxen where I need this to 
 work on Windows. 

 But while ranting (;-). The part that sucks with Macs is that Apple 
 drops older versions of OS X like hot potatoes. 
 If I know a certain application that I rely on is going to break FUBAR 
 with Lion or I don't like buying into the whole backwards swipy thing 
 because I switch between computers a bunch, well tough luck buddy 
 staying on the XCode update wagon. 
 So I got to have two of them or dual boot or whatever, and 
 methinksnot... How about it just work, oh nevermind. 



 On Jul 20, 10:45 am, bob b...@coolfone.comze.com wrote: 
  Why not get a Mac? 
  
  Almost all Android devices just work on a Mac.  I don't know why, but 
  that is how it is. 
  
  
  
  
  
  
  
  On Friday, July 20, 2012 12:15:23 PM UTC-5, JP wrote: 
  
   One of the most vexing problems over the years: Official ADB USB 
   driver support by OEMs. 
   With the exception of a few, every new device coming out seems to be 
   missing the ADB USB drivers. Even Nexus devices. 
   And once out, they may not even be available naked from the official 
   source, as they should be. 
   I got a Nexus 7 the other day and there still doesn't seem to be OEM- 
   official ADB USB driver support? Sure enough I got the Asus drivers 
   installed that cover the Transformer Prime, but the Nexus 7 draws a 
   blank. Or am I missing something (discount XDA developer'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

[android-developers] Re: onPreviewFrame method not called

2012-07-20 Thread bob
 

I don't know, but I would consider upping your stuff to ICS.  They do all 
kinds of real-time camera filtering and such, and it's built-in.  Lots of 
neat effects like vignette.



On Thursday, July 19, 2012 8:32:27 PM UTC-5, mkerim wrote:

 Hello,

 I have seen these kinds of topics stating a similar issue on stackoverflow 
 or some other forums, but I wanted to give it another shot of my own to 
 finalize this.

 My app is currently processing every frame coming from the camera using 
 onPreviewFrame. I pass the frames to a native code, which processes them. 
 I'd like to enable video recording as well. My aim is to process the frames 
 and save the video at the same time. I don't need to alter the video frames 
 of any kind, I just need the information coming out from the process. 

 But whenever I start video recording, onPreviewFrame is not called. I 
 can't process the frames while video recording. I am using SDK 2.2 and HTC 
 Desire S as the platform.

 From what I have heard, whenever MediaRecorder starts recording, it takes 
 over the frames and prevents access. However, I want this verified by 
 people who are more into these kind of apps. Is this true or is there any 
 other way around to tackle this via SDK? 

 Thanks a lot.

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

Re: [android-developers] Re: Accessing Android Transceiver Info.

2012-07-20 Thread Bill Takats
I was/am planning to simply use the speaker and mic for sound doppler
spectral analysis of solid non-dense objects.  Being an Engineer, I would
imagine that real time capturing of the reflected sonic waves might be an
issue when compared to the initial sent ping signals.  Hence, in a
nut-shell, my problem -- real-time!.  I still need to work out the
frequencies and corresponding amplitudes for different object densities.  I
am obviously in the feasibility stage of development.

Someone suggested to me that Android devices (and most real-time cell/pda
devices) might contain an embedded MIB Module (Management Information Base)
*http://en.wikipedia.org/wiki/Management_information_base*.  If this is the
case, then it could be a simpler matter of extracting the information from
the MIB-module and doing the spectral analysis at that point.  ie, it would
look real-time.

I am looking for what might be proprietary information (schematics, etc) of
the guts of the Android or even iPhone, etc to see exactly how the
transmitted and received signals are handled and digested, even for simple
voice calls.  This whole issue might be a lot simpler than I think, but it
usually never is.

Thanks for any and all comments and suggestions
.

On Fri, Jul 20, 2012 at 3:14 PM, bob b...@coolfone.comze.com wrote:

 Are you planning to use sound waves or electromagnetic waves?  For sound
 waves, I would expect you would use audio playback and the microphone, and
 not a transceiver.


 If you're using electromagnetic waves, that's radar… ish.




 On Friday, July 20, 2012 12:54:56 PM UTC-5, Be Tox wrote:

 Definitely NOT underwater.  I am looking at an APP to essentially bounce
 sonic waves through/off materials -- probably in the 20 - 5000 Hz range.

 On Fri, Jul 20, 2012 at 1:42 PM, bob b...@coolfone.comze.com wrote:

 Do you want underwater sonar or above water sonar (like what bats use)?

 On Thursday, July 19, 2012 10:16:36 PM UTC-5, Be Tox wrote:

 Does anyone know how to access the transceiver information (MIB?) on
 an Android phone in order to create a Sonar type App?

 Kind Regards, Be Tox

  --
 You received this 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




 --
 Bill

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




-- 
Bill

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

2012-07-20 Thread Andy dev
Anyone at least confirm what I'm doing looks ok - even if you don't know 
the reason why. Just as a sanity check?

On Thursday, July 19, 2012 10:19:22 PM UTC+1, Andy dev wrote:

 I've got a service running (an accessibility service called 
 MainRunningService) and also use an alarmmanager within my app.
  
 On ICS when a user pulled up the task list and swiped the app away the 
 service kept running, but the user interface was cleared from the stack.
  
 On jelly bean I'm finding this to be a little different. It seems like it 
 kills off the service and then restarts it even if I've got an icon in the 
 notification bar and I've got the app set to run in the foreground. This is 
 killing off all my current app state and causing it to stop working.
  
 I'm seeing this in the logs
  
 07-19 21:47:42.213: I/ActivityManager(307): Killing 
 834:com.example.android.appname/u0a72: remove task
 07-19 21:47:42.236: W/AudioService(307):   AudioFocus   audio focus client 
 died
 07-19 21:47:42.236: I/AudioService(307):  AudioFocus  abandonAudioFocus(): 
 removing entry for 
 android.media.AudioManager@41a42020com.example.android.appname.service.MainRunningService$1@41963ec0
 07-19 21:47:42.244: W/ActivityManager(307): Scheduling restart of crashed 
 service com.rageconsulting.android.appname/.service.MainRunningService in 
 5000ms
  
 For the persistent Icon I'm doing the following:
 Notification foregroundNotification;
 foregroundNotification = new Notification(R.drawable.iconx,Example 
 starting notification,System.currentTimeMillis());
 Intent i=new Intent(this, MainUIActivity.class);
 i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);
 foregroundNotification.flags|=Notification.FLAG_NO_CLEAR;
 startForeground(9642, foregroundNotification);

  

 Is there something I'm doing wrong? I've never had a problem in the past 
 with this code, but it's not very good on jelly bean.

  


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

2012-07-20 Thread Kostya Vasilyev
Yep, I can confirm this with my own foreground service on 4.1.1 (Galaxy
Nexus).

-- K

2012/7/21 Andy dev andrewpmo...@gmail.com

 Anyone at least confirm what I'm doing looks ok - even if you don't know
 the reason why. Just as a sanity check?

 On Thursday, July 19, 2012 10:19:22 PM UTC+1, Andy dev wrote:

 I've got a service running (an accessibility service called
 MainRunningService) and also use an alarmmanager within my app.

 On ICS when a user pulled up the task list and swiped the app away the
 service kept running, but the user interface was cleared from the stack.

 On jelly bean I'm finding this to be a little different. It seems like it
 kills off the service and then restarts it even if I've got an icon in the
 notification bar and I've got the app set to run in the foreground. This is
 killing off all my current app state and causing it to stop working.

 I'm seeing this in the logs

 07-19 21:47:42.213: I/ActivityManager(307): Killing
 834:com.example.android.**appname/u0a72: remove task
 07-19 21:47:42.236: W/AudioService(307):   AudioFocus   audio focus
 client died
 07-19 21:47:42.236: I/AudioService(307):  AudioFocus
 abandonAudioFocus(): removing entry for android.media.AudioManager@**
 41a42020com.example.android.**appname.service.**
 MainRunningService$1@41963ec0android.media.AudioManager@41a42020com.example.android.appname.service.MainRunningService$1@41963ec0
 07-19 21:47:42.244: W/ActivityManager(307): Scheduling restart of crashed
 service com.rageconsulting.android.**appname/.service.**MainRunningService
 in 5000ms

 For the persistent Icon I'm doing the following:
 Notification foregroundNotification;
 foregroundNotification = new Notification(R.drawable.iconx,**Example
 starting notification,System.**currentTimeMillis());
 Intent i=new Intent(this, MainUIActivity.class);
 i.setFlags(Intent.FLAG_**ACTIVITY_CLEAR_TOP|Intent.**
 FLAG_ACTIVITY_SINGLE_TOP);
 foregroundNotification.flags|=**Notification.FLAG_NO_CLEAR;
 startForeground(9642, foregroundNotification);



 Is there something I'm doing wrong? I've never had a problem in the past
 with this code, but it's not very good on jelly bean.



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


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

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-20 Thread Andy dev
Thanks. I'll keep looking for a solution then!
 

On Friday, July 20, 2012 11:04:13 PM UTC+1, Kostya Vasilyev wrote:

 Yep, I can confirm this with my own foreground service on 4.1.1 (Galaxy 
 Nexus).

 -- K

 2012/7/21 Andy dev andrewpmo...@gmail.com

 Anyone at least confirm what I'm doing looks ok - even if you don't know 
 the reason why. Just as a sanity check?

 On Thursday, July 19, 2012 10:19:22 PM UTC+1, Andy dev wrote:

 I've got a service running (an accessibility service called 
 MainRunningService) and also use an alarmmanager within my app.
  
 On ICS when a user pulled up the task list and swiped the app away the 
 service kept running, but the user interface was cleared from the stack.
  
 On jelly bean I'm finding this to be a little different. It seems like 
 it kills off the service and then restarts it even if I've got an icon in 
 the notification bar and I've got the app set to run in the foreground. 
 This is killing off all my current app state and causing it to stop working.
  
 I'm seeing this in the logs
  
 07-19 21:47:42.213: I/ActivityManager(307): Killing 
 834:com.example.android.**appname/u0a72: remove task
 07-19 21:47:42.236: W/AudioService(307):   AudioFocus   audio focus 
 client died
 07-19 21:47:42.236: I/AudioService(307):  AudioFocus  
 abandonAudioFocus(): removing entry for android.media.AudioManager@**
 41a42020com.example.android.**appname.service.**
 MainRunningService$1@41963ec0android.media.AudioManager@41a42020com.example.android.appname.service.MainRunningService$1@41963ec0
 07-19 21:47:42.244: W/ActivityManager(307): Scheduling restart of 
 crashed service 
 com.rageconsulting.android.**appname/.service.**MainRunningService 
 in 5000ms
  
 For the persistent Icon I'm doing the following:
 Notification foregroundNotification;
 foregroundNotification = new Notification(R.drawable.iconx,**Example 
 starting notification,System.**currentTimeMillis());
 Intent i=new Intent(this, MainUIActivity.class);
 i.setFlags(Intent.FLAG_**ACTIVITY_CLEAR_TOP|Intent.**
 FLAG_ACTIVITY_SINGLE_TOP);
 foregroundNotification.flags|=**Notification.FLAG_NO_CLEAR;
 startForeground(9642, foregroundNotification);

  

 Is there something I'm doing wrong? I've never had a problem in the past 
 with this code, but it's not very good on jelly bean.

  

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

2012-07-20 Thread RLScott
I have a bug that so far only shows up on this obscure Chinese
tablet.  There are no OEM USB drivers for this device, so I can't use
Logcat the usual way.  Is there any other kind of logging that is
similar to Logcat that I could use to log some events in the code?  I
could write my own logging and display facility in the app itself, but
I would rather not do all that work if there is another way.

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

2012-07-20 Thread lbendlin
is the device rooted? you should be able to pipe the logcat on the device 
to a text file.

On Friday, July 20, 2012 9:19:01 PM UTC-4, RLScott wrote:

 I have a bug that so far only shows up on this obscure Chinese 
 tablet.  There are no OEM USB drivers for this device, so I can't use 
 Logcat the usual way.  Is there any other kind of logging that is 
 similar to Logcat that I could use to log some events in the code?  I 
 could write my own logging and display facility in the app itself, but 
 I would rather not do all that work if there is another way. 


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

2012-07-20 Thread TreKing
On Fri, Jul 20, 2012 at 4:07 PM, Justin Anderson magouyaw...@gmail.comwrote:

 This method, or it's fancy new Fragments version, might be of interest to
 you:

 http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance%28%29


 I don't know... I can't see how there is much value in a method that you
 must not rely on it being called


Well, if the OP was trying to save out a ton of data in onSaveInstanceState
for the purpose of surviving an orientation change, saving it via an object
to pass to the next Activity this way would prevent that lock up he was
experiencing. It was not entirely clear to me what the complete use case
was, so I thought I'd throw in the discussion as something to be aware of.

-
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: OEM-Official ADB USB Driver support (rant)

2012-07-20 Thread JP


On Friday, July 20, 2012 1:39:04 PM UTC-7, Kostya Vasilyev wrote:

 Since no-one's offered you try using Linux, I'll do that now. 


Well we are talking corporate laptops that will not go on a corp. network 
running Linux. Plus no Outlook and so forth. Well I suppose I'll keep the 
Nexus 7 dangling until ASUS or Google make the drivers available proper.

My personal development notebooks are a different story. These are a couple 
Thinkpad T42p's, in the top of the line configuration including the 
1600x1200 UXGA display. The last that IBM made before Lenovo took over. Oh 
yeah they came out in 2003, but ideal to run Eclipse or any other ole IDE 
and quick still with a replacement HD. But will Linux and the new UIs there 
(Unity?) run properly on these things? Hmmm... I suppose I'll stick to XP. 
That said, the first vendor that's going to be coming out with an Ultrabook 
sporting an UXGA 1600x1200 matte display is going to get my business. Dell 
perhaps as they're contemplating rolling dev notebooks featuring Ubuntu? 
The Intel Ultrabook reference design has a 1600x900 display so it's not too 
far fetched to think UXGA again one would think.

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