[android-developers] Help with App crackers

2012-06-15 Thread Giuseppe
Dear guys,
We work about two months, six people to make possible VOICE 
PROhttps://play.google.com/store/apps/details?id=com.voiceprofeature=more_from_developer#?t=W251bGwsMSwxLDEwMiwiY29tLnZvaWNlcHJvIl0.born.

We use PROGUARD and LICENSING together, but the day after the publication, 
we found the app cracked 
herehttp://sinfulandroid.com/applications-26/voice-pro-v1-0-apk-android-24441/

We are serious upset, we work to hard for months and now the app become 
crack in one night.

Our opinion is that GOOGLE LICENSING system has failed, Google must find a 
different solution to protect our work.

I know that this group is for developers question, but frankly, what to 
develop with this premises ?

Giuseppe Porcelli

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

[android-developers] Re: Using TableLayout to perform like expandable listview.

2012-06-15 Thread Raneez
Okay, I have customized BaseExpandableListAdapter class and in 
getChildView() method i have created layouts for different groups :

public View getChildView(int groupPosition, int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) 
{
 if(groupPosition==0)
{
   // Return TableLayout for group position 0.
 }
else if(groupPosition==1)
{
  // Return TableLayout for group position 1.
}
  }

am i going the right way so far?

On Tuesday, 12 June 2012 18:29:07 UTC+5:30, Raneez wrote:

 Is it possible to use TableLayout to get the same function of 
 ExpandableListView by dynamically adding the rows(when expanding) and 
 removing the rows ( when hiding) ?

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

2012-06-15 Thread Dianne Hackborn
The underlying binder mechanisms keeps track of references across objects.
 Native IBinder objects are reference counted; the framework holds a
reference on them as long as remote processes hold references.  The JNI
wrapper holds a reference on the Java object as long as the native binder
object is alive.

From a high-level perspective, if you hand a reference to a java IBinder
object across processes, a reference will be held on it (preventing it from
being GCed) until the remote proxy on the other side is JCed.

On Thu, Jun 14, 2012 at 9:13 PM, G. Blake Meike blake.me...@gmail.comwrote:

 I've been digging into Android IPC, recently and there's something
 puzzling me.

 Suppose I define a Parcelable that, as one of its arguments, takes a
 callback listener which is also Parcelable.

 Like this:

 oneway interface MyService {
 void start(in MyRequest req, in MyResponseListener listener);
 }

 oneway interface MyResponseListener {
 void onResponse(in MyResponse response);
 }

 In my code, I'm going to do something like this:

 listener = new MyResponseListener() { /*... */ }

 boundService.start(req, listener);

 I think this is pretty much how Cursors work. I see one of two
 possibilites here:

 1) the call to start() doesn't create an additional reference to the
 listener object.  That means that, to prevent its being gc'ed, my code
 must keep a reference to the listener, somewhere, until it ether gets the
 callback or doesn't want the it anymore. (btw, what happens if the listener
 is gone when the callback happens?)

 2) the call to start() creates a new, GC-visible reference to listener.  I
 can pass an anonymous class without fear that it will be GCed.  On the
 other hand, it and everything to which it holds references are leaked until
 that reference gets nulled.  When does that happen?

 I've followed this down as far as a Parcel.flatten_binder, but I kind of
 lose it after that.

 What is the right way to keep from leaking, for instance, implicit
 pointers to my Activity, when I use asynchronous callbacks with a bound
 Service?

 Thanks
   -blake

 G. Blake Meike
 Marakana
 The second edition of Programming Android is now on-line:
 http://shop.oreilly.com/product/0636920023005.do




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

2012-06-15 Thread imran ali
Hi,
Really, it is very shameful.
I think best option to apply in-app billing to sell android application.

Regards
Imran Ali

On Friday, June 15, 2012 11:30:37 AM UTC+5:30, Giuseppe wrote:

 Dear guys,
 We work about two months, six people to make possible VOICE 
 PROhttps://play.google.com/store/apps/details?id=com.voiceprofeature=more_from_developer#?t=W251bGwsMSwxLDEwMiwiY29tLnZvaWNlcHJvIl0.born.

 We use PROGUARD and LICENSING together, but the day after the publication, 
 we found the app cracked 
 herehttp://sinfulandroid.com/applications-26/voice-pro-v1-0-apk-android-24441/

 We are serious upset, we work to hard for months and now the app become 
 crack in one night.

 Our opinion is that GOOGLE LICENSING system has failed, Google must find a 
 different solution to protect our work.

 I know that this group is for developers question, but frankly, what to 
 develop with this premises ?

 Giuseppe Porcelli


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

2012-06-15 Thread Narendra Singh Rathore
Hello all,
I want to trace the mobile location using phone number.
What should be my approach for that.
Please suggest me what to do for that.
Or direct me the way, from where I should start proceeding.

Thanks  Regards,
NSR

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

[android-developers]

2012-06-15 Thread Vijay Krishnan
Hi all,
 How to call another activity when i press the back button.

Thanks,
vijay.k

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

2012-06-15 Thread yogendra G
 @Override

public boolean onKeyDown(int keyCode, KeyEvent event) {

 // TODO Auto-generated method stub


if(KeyEvent.ACTION_DOWN==KeyEvent.KEYCODE_BACK)

 {

startActivity(intent.setClass(getApplicationContext(), Anotheractivty.class
));

   }

return false;

}

Try this

Yogi


On Fri, Jun 15, 2012 at 12:21 PM, Vijay Krishnan
vijay.vijay...@gmail.comwrote:

 Hi all,
  How to call another activity when i press the back button.

 Thanks,
 vijay.k

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

2012-06-15 Thread superpsycho
Thx a lot,
but what about the number of seekbars... I need more informationinput... 
All my created SeekBaars have the same ID so its easy to write the values 
in an array an get the arry but what about change the other SeekBars again?

Am Donnerstag, 14. Juni 2012 16:45:52 UTC+2 schrieb MagouyaWare:

 The values of your Seekbars need to be stored in your adapter...  You can 
 then query the adapter for the information you need.

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


 On Thu, Jun 14, 2012 at 8:11 AM, superpsycho s.thues...@gmx.de wrote:

 I have a Problem with my customized ListView.
 Most of my Listviews recommend a seekbar, so I created a custom layout 
 with one and create a arrayadapter that matches to it.
 If I undestood right, every row in the ListView is an own View. 
 So far everything work fine. \o/
 New recommendations let me interlock the SeekBar against each other.
 For example 3 Seekbars: min=0 max=99

 -30--
 40---
 --70-

 If you pull the mid bar down till a level of 30 nothing happens casue the 
 upper is lower than the mid. O.o*
 Now the upper have to scroll similar as the mid one. Same for the lower 
 to the mid an inverter for upper to mid and mid to lower for increasing 
 values.
 So here my question... -.-
 How am I able to  get actual values of SeekBars in other rows and of 
 cause how to change the values... I thing if I´m able to do one the other 
 is just peanuts.

 U NO SEE CODE? SO DAMN - REPLY!  - I´ll try to post some.

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

2012-06-15 Thread Nikolay Elenkov
On Fri, Jun 15, 2012 at 4:17 PM, nicefuture nicefut...@126.com wrote:


 Then, I tried to implement the http authentication in my application, BUT
 I failed, I found the behavior is very strange, below is the step:



 1.   I already know the website’s userid and password, I tested using
 the path contain userinfo, as below:

 http://tma:nokia...@bewww05.wirelessfuture.com/Onlinetest/download/To_Content/descriptors/audio/dd_audio_mp4.dd


 2.   In my guess, the Download Manager should work well, and status
 200 should be reported. BUT, still status 401 is reported. And from the
 tcpdump, it is very strange, it obviously successfully be authenticated and
 retrieve the content, but then the client start a new http get, which cause
 to the status 401 occurred.   I wonder why the extra http get procedure
 happened??


You probably need to add the proper (basic) authentication header using the
addRequestHeader() for this to work:

http://developer.android.com/reference/android/app/DownloadManager.Request.html#addRequestHeader(java.lang.String,
java.lang.String)

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

2012-06-15 Thread Parthi K
use gps code dude..


On Fri, Jun 15, 2012 at 12:11 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 Hello all,
 I want to trace the mobile location using phone number.
 What should be my approach for that.
 Please suggest me what to do for that.
 Or direct me the way, from where I should start proceeding.

 Thanks  Regards,
 NSR

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

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

2012-06-15 Thread dEEPESH PPM
Create two animation xmls in res/anim folder to start an activity. Then use
this code..

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
startActivity(new Intent(CurrentActivity.this,NextActivity.class));
overridePendingTransition(R.anim.left_to_right, R.anim.slideoutleft);
}
return true;
}

On Fri, Jun 15, 2012 at 12:21 PM, Vijay Krishnan
vijay.vijay...@gmail.comwrote:

 Hi all,
  How to call another activity when i press the back button.

 Thanks,
 vijay.k

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

2012-06-15 Thread Narendra Singh Rathore
On Fri, Jun 15, 2012 at 1:03 PM, Parthi K parthisof...@gmail.com wrote:

 use gps code dude..


Great suggestion buddy...I know using GPS code.
But, I guess, I have to remind my question to you.
My problem is to get the location of phone no.
So, how to use GPS code for finding particular phone number's location, as,
till now, I have used that (GPS code) for finding present location of user.

Please suggest if you know.

Hope, you understood my requirement.

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

2012-06-15 Thread Parthi K
use intent to call one page to another

On Fri, Jun 15, 2012 at 1:07 PM, dEEPESH PPM deepesh...@gmail.com wrote:

 Create two animation xmls in res/anim folder to start an activity. Then
 use this code..

 @Override
 public boolean onKeyDown(int keyCode, KeyEvent event) {
  if (keyCode == KeyEvent.KEYCODE_BACK) {
 startActivity(new Intent(CurrentActivity.this,NextActivity.class));
 overridePendingTransition(R.anim.left_to_right, R.anim.slideoutleft);
 }
 return true;
 }

 On Fri, Jun 15, 2012 at 12:21 PM, Vijay Krishnan vijay.vijay...@gmail.com
  wrote:

 Hi all,
  How to call another activity when i press the back button.

 Thanks,
 vijay.k

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


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


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

Re: [android-developers]

2012-06-15 Thread Narendra Singh Rathore
On Fri, Jun 15, 2012 at 12:21 PM, Vijay Krishnan
vijay.vijay...@gmail.comwrote:

 Hi all,
  How to call another activity when i press the back button.


It seems somewhat improperbut here is solution to your requirement.

 public void onBackPressed() {
Log.d(CDA, onBackPressed Called);
Intent setIntent = new Intent(Intent.ACTION_MAIN);
setIntent.addCategory(Intent.CATEGORY_HOME);
setIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(setIntent);

return;
}

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

2012-06-15 Thread Jeremy Dagorn
You got many snippets of code. Have you tried it ou? Also, check on the 
Android documentation, there is a part called FingerPaint.
Here is the link 
: 
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/FingerPaint.html

By modifying a few this snippet you could be easily able to do what you 
weant without any effort.

:)

On Thursday, June 14, 2012 8:21:00 AM UTC+2, Sadhna Upadhyay wrote:


 Hi everyone,
I am making an app in which i have to to draw circle with the help of 
 finger(on touch listener) in android ,
 can anyone help me





 Thanks and Regard
 sadhana





On Thursday, June 14, 2012 8:21:00 AM UTC+2, Sadhna Upadhyay wrote:


 Hi everyone,
I am making an app in which i have to to draw circle with the help of 
 finger(on touch listener) in android ,
 can anyone help me





 Thanks and Regard
 sadhana





On Thursday, June 14, 2012 8:21:00 AM UTC+2, Sadhna Upadhyay wrote:


 Hi everyone,
I am making an app in which i have to to draw circle with the help of 
 finger(on touch listener) in android ,
 can anyone help me





 Thanks and Regard
 sadhana





On Thursday, June 14, 2012 8:21:00 AM UTC+2, Sadhna Upadhyay wrote:


 Hi everyone,
I am making an app in which i have to to draw circle with the help of 
 finger(on touch listener) in android ,
 can anyone help me





 Thanks and Regard
 sadhana






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

2012-06-15 Thread Narendra Singh Rathore
On Fri, Jun 15, 2012 at 1:16 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:



 On Fri, Jun 15, 2012 at 12:21 PM, Vijay Krishnan vijay.vijay...@gmail.com
  wrote:

 Hi all,
  How to call another activity when i press the back button.


 It seems somewhat improperbut here is solution to your requirement.

  public void onBackPressed() {

 Log.d(CDA, onBackPressed Called);

 Intent setIntent = new Intent(Intent.ACTION_MAIN);

 setIntent.addCategory(Intent.CATEGORY_HOME);

 setIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

 startActivity(setIntent);

 return;

 }


*Don't forget to Override this.*

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

Re: Re: [android-developers] about HTTP Auth in DownloadManager

2012-06-15 Thread nicefuture
You probably need to add the proper (basic) authentication header using the
addRequestHeader() for this to work:

does it only affect the next download session, will it affect all the download 
session?

btw, is basic scheme api available in android?




nicefuture

From: Nikolay Elenkov
Date: 2012-06-15 15:30
To: android-developers
Subject: Re: [android-developers] about HTTP Auth in DownloadManager
On Fri, Jun 15, 2012 at 4:17 PM, nicefuture nicefut...@126.com wrote:


 Then, I tried to implement the http authentication in my application, BUT
 I failed, I found the behavior is very strange, below is the step:



 1.牋牋牋 I already know the website抯 userid and password, I tested using
 the path contain userinfo, as below:

 http://tma:nokia...@bewww05.wirelessfuture.com/Onlinetest/download/To_Content/descriptors/audio/dd_audio_mp4.dd


 2.牋牋牋 In my guess, the Download Manager should work well, and status
 200 should be reported. BUT, still status 401 is reported. And from the
 tcpdump, it is very strange, it obviously successfully be authenticated and
 retrieve the content, but then the client start a new http get, which cause
 to the status 401 occurred.牋 I wonder why the extra http get procedure
 happened??


You probably need to add the proper (basic) authentication header using the
addRequestHeader() for this to work:

http://developer.android.com/reference/android/app/DownloadManager.Request.html#addRequestHeader(java.lang.String,
java.lang.String)

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

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

Re: Re: [android-developers] about HTTP Auth in DownloadManager

2012-06-15 Thread Nikolay Elenkov
On Fri, Jun 15, 2012 at 5:01 PM, nicefuture nicefut...@126.com wrote:
 You probably need to add the proper (basic) authentication header using the
 addRequestHeader() for this to work:

 does it only affect the next download session, will it affect all the
 download session?


I haven't check the source, but it should affect all downloads linked
to this requests (i.e., redirects, retries).

 btw, is basic scheme api available in android?


Yes, but here you need to build the header yourself. Just
Base64 encode your username:password to construct the
header.

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

2012-06-15 Thread Kristoffer
Hello.
 
I have verifyed that the problem is on several phones as well, not only the 
emulator.
Is there a better way to repeat background images? that will work on all 
phones?
 

Den måndagen den 28:e maj 2012 kl. 11:38:01 UTC+2 skrev Kristoffer:

 Hello. 
 Iam using a small image and repeats it as a background in my app, 
 this 
 is how i do it. 

 bgrepeat.png 
 backgroundrepeat.xml 


 i have them in the drawable folder. 


 This is how the .xml look like. 


 bitmap 
 xmlns:android=http://schemas.android.com/apk/res/android; 
 android:src=@drawable/bgrepeat 
 android:tileMode=repeat 
 android:dither=true 
 / 


 And i just call in in xml like this. 
 android:background=@drawable/backgroundrepeat 


 If i run this on my Galaxy S2 then the background repeats and looks 
 good, but if i try on a tablet (galaxy 8.9) then it does not repeat 
 it 
 just zooms the bgrepeat.png file, and same result in emulator on my 
 pc. 

 I need to know that this will work on most devices, and why it doesent 
 work on every device.. bug? 
 Any idees? 


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

2012-06-15 Thread WebShaker
Hi.

I've just bought an Intel Android smartphone !

I've change My Application.mk to add a plateforme

APP_ABI := armeabi armeabi-v7a x86

And that works for Java a C code source.

But I have a assembly file too.
For ARM I used to compile it whit some options

Here is my Android.mk

LOCAL_MODULE := engine
LOCAL_ARM_MODE := arm
LOCAL_CFLAGS := -mfpu=neon -march=armv6t2 -O9
LOCAL_SRC_FILES := engine-arm.s
LOCAL_LDLIBS := -lm -llog -ljnigraphics
LOCAL_STATIC_LIBRARIES := cpufeatures

Well now My problem is that I have another assembly file for the x86
called engine-x68.s

What I'd like to do is compiling it with some gcc options
-msse2 -m32 -masm=intel

So My Android.mk file should be something like

LOCAL_MODULE := engine
LOCAL_CFLAGS := -msse2 -m32 -masm=intel
LOCAL_SRC_FILES := engine-x86.s
LOCAL_LDLIBS := -lm -llog -ljnigraphics
LOCAL_STATIC_LIBRARIES := cpufeatures

Finally my question is.

How Can I compile engine-arm.s with the first Android.mk param and
compile engine-x68.s with the second one ?
My goal is to have only one module (engine) and let Android loading
the correct library !

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

2012-06-15 Thread Sérgio Faria
You were doing some thing like thi and doesn't work?
BluetoothAdapter.getDefaultAdapter().enable();

Remeber that you need  the android.Manifest.permission.BLUETOOTH_ADMIN 
permission.
Sometimes Bluez fails to start it the first time, you can try to enable 
after some delay, it should end up working.

private final Runnable mBluetoothEnabler = new Runnable() {

@Override
public void run() {
if (!mBluetoothAdapter.isEnabled()) {
if (!mBluetoothAdapter.enable()) {
mHandler.postDelayed(mBluetoothEnabler, 200L);
}
} else {
onBluetoothEnabled();
}
}
};

Quarta-feira, 13 de Junho de 2012 9:20:53 UTC+1, İsacan Akkoca escreveu:

 Hi everyone,
 I want open bluetooth from my application but i didn't open. Can you show 
 how to work this?


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

Re: [android-developers] Re: Using TableLayout to perform like expandable listview.

2012-06-15 Thread TreKing
On Fri, Jun 15, 2012 at 1:14 AM, Raneez rane...@gmail.com wrote:

 am i going the right way so far?


If you want different TableLayout for each group, sure, that's one way to
do it.

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

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

[android-developers] Re: Controlling a SAXParser using buttons

2012-06-15 Thread Sérgio Faria
I think a 
FileChannelhttps://developer.android.com/reference/java/nio/channels/FileChannel.htmlis
 quite close to what you need. Get the FileChannel from a 
RandomAccessFilehttps://developer.android.com/reference/java/io/RandomAccessFile.htmlthen
 you can use the 
Channelshttps://developer.android.com/reference/java/nio/channels/Channels.htmlclass
 to convert it to an InputStream for the parser.

The problem is getting the *right* positions from within the Handler. I've 
no idea if its possible, its depends on the parser internals I guess (eg. 
buffering).

Sexta-feira, 15 de Junho de 2012 1:56:41 UTC+1, r4f4 escreveu:

  Use Document, which stores the data in memory, allowing you to traverse 
 the 
  hierarchy in any order. 

 That could work, but I forgot to mention that the file has something 
 like 8 Mb. 

 Isn't that too big to keep in memory ? 



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

Re: [android-developers] trace mobile location through phone number

2012-06-15 Thread Raghav Sood
This has nothing to do with the Android SDK. You'll need to find an online
website with an API that allows you to do this. This isn't the list to find
that website.

Raghav Sood
Sent from my Nexus S
On Jun 15, 2012 1:12 PM, Narendra Singh Rathore nsr.curi...@gmail.com
wrote:



 On Fri, Jun 15, 2012 at 1:03 PM, Parthi K parthisof...@gmail.com wrote:

 use gps code dude..


 Great suggestion buddy...I know using GPS code.
 But, I guess, I have to remind my question to you.
 My problem is to get the location of phone no.
 So, how to use GPS code for finding particular phone number's location,
 as, till now, I have used that (GPS code) for finding present location of
 user.

 Please suggest if you know.

 Hope, you understood my requirement.


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

2012-06-15 Thread Narendra Singh Rathore
I guess, what I want is not directly possible, as suggested here on the
following link.

http://stackoverflow.com/questions/7173769/finding-a-phones-location-from-its-number-using-gps

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

2012-06-15 Thread Narendra Singh Rathore
On Fri, Jun 15, 2012 at 4:59 PM, Raghav Sood raghavs...@gmail.com wrote:

 This has nothing to do with the Android SDK. You'll need to find an online
 website with an API that allows you to do this. This isn't the list to find
 that website.


Ok, thanks for the suggestion. I realized what I wanted can actually be
achieved in the manner, I thought, as I mentioned above.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Alert Dialog present but unable to look(Looks as a layer of dim color is present on screen). On Back Press it disappears.

2012-06-15 Thread Muhammad Rashid
Hi all,

I would like to say that i am using a alarm service and a broad cast
receiver. OnRecieve method i perform an operation that shows a
progressbar and an alert dialog. Alertdialog appears normally when
application  running foreground. But when i press HOME button and
application is now in background. Now i lock the device. When alarm
received and operation performs, and i run the app again, It should
show alart dialog. But it looks alert dialog is present but unable to
view. It shows as a dim layer is present on screen. When i back press,
it disappears. It mean alert dialog is there but not able to view it.

Regards

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


[android-developers] Alert Dialog present but unable to look(Looks as a layer of dim color is present on screen). On Back Press it disappears.

2012-06-15 Thread Muhammad Rashid
Hi all,

I would like to say that i am using a alarm service and a broad cast
receiver. OnRecieve method i perform an operation that shows a
progressbar and an alert dialog. Alertdialog appears normally when
application  running foreground. But when i press HOME button and
application is now in background. Now i lock the device. When alarm
received and operation performs, and i run the app again, It should
show alart dialog. But it looks alert dialog is present but unable to
view. It shows as a dim layer is present on screen. When i back press,
it disappears. It mean alert dialog is there but not able to view it.

Regards

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


Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-15 Thread Lars
I did as you wrote, and it seems to work. 
But, when I press the button, the app closes unexpectedly. I have declared 
the next activity in the android manifest. I can't show you the code till I get 
home.

Thanks for the help:-)

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


Re: [android-developers] AIDL callbacks leak memory?

2012-06-15 Thread G. Blake Meike
Got it. Thanks Dianne.


G. Blake Meike
Marakana

The second edition of Programming Android is now on-line:
http://shop.oreilly.com/product/0636920023005.do

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

2012-06-15 Thread surya phani
Hi,

   I have a doubt about  open android in-built music player using
jquery.What is the code to open android music player in jquery.!!
Any help will be appreciated.
-- 
PHANI SURYA

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

2012-06-15 Thread yccheok
Hi, in desktop development environment (Java SE), we are encouraged to
use Apache HttpClient over HttpURLConnection, as it offers

- Higher level API. Hence, easier to use
- Richer features

Please refer to 
http://stackoverflow.com/questions/643730/httpclient-vs-httpurlconnection?rq=1

However, for Android, they seem to recommend HttpURLConnection over
Apache HttpClient.

http://android-developers.blogspot.com/2011/09/androids-http-clients.html

I was confused then. Is that we will then loss the convenient of a
easier to use API? For me, I have been a happy user of HttpClient for
several years. Hence, I cannot convince myself of switching to
HttpURLConnection in Android platform.

I was wondering, anyone of you had used both before in Android? Mind
to share out their pros and cons? Which one would you actually
recommend?

Thanks.

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


Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-15 Thread Justin Anderson
When the app closes unexpectedly the best thing to do to figure out the
cause of the problem is to look at the logcat output... It will usually
tell you the file and the line where the crash happened, along with what
the problem is (e.g. NullPointerException, etc...)

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


On Fri, Jun 15, 2012 at 7:33 AM, Lars lars.breum...@gmail.com wrote:

 I did as you wrote, and it seems to work.
 But, when I press the button, the app closes unexpectedly. I have
 declared the next activity in the android manifest. I can't show you the
 code till I get home.

 Thanks for the help:-)

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


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

2012-06-15 Thread G. Blake Meike
... actually, on more thing.  I'd expect the remote reference to be 
released if I unbind the service.  Is that so?

-blake

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

2012-06-15 Thread Jorn Cruijsen
Only by putting the device in emulation mode would it be possible to
(contactlessly) read and write to the emulated mifare card, which will be
persisted to the SE. While sending NDEF data over P2P is perfectly
possible, it would not be persisted to the SE and would instead
(ultimately) be handled by the Android App Framework.

With the device in emulation mode, another device with NFC TagInfo or
comparable would be able to identify the targeted phone as a mifare card
and read/write from/to it. In this case a plain text NDEF message, as I
understand it.

And just to point out; the emulated mifare card would have NDEF data stored
on it, it would not 'simulate' an NDEF _tag_. This is a fundamental
difference, as Michael pointed out earlier.

Also, as Gorka mentioned, so long as card emulation is not adopted by the
Android Application Framework, it's not feasible to publish an app doing
this on the Android Market. (Putting a device in emulation mode, that is.
For a device to do this, it requires changing Android Source code,
recompiling and flashing a device with it).

Regards,

JMC
On Jun 12, 2012 9:03 AM, JoeAranda joeara...@gmail.com wrote:

 Gorka,
   if NFC taginfo app can provide all 16 sectors of the MIFARE
 couldn't shailen have sent this to another phone via peer to peer and
 avoided card emulation?

  Shailen, can you share some insight into how you did this using NFC
 taginfo?

 thanks,

 joe

 On May 17, 8:37 am, Gorka gork...@gmail.com wrote:
  Hi Shailen,
 
  I guess you have emulated your MIFARE4k tag rooting your mobile phone
  and applying any of the patches that are available on the Internet. Am
  I right? I ask you because this solution is fine for research
  purposes, but it cannot be applied if you want to publish your app or
  sell it.
 
  Regards.
 
  On 8 mayo, 01:20, Shailen Sobhee s.sob...@gmail.com wrote:
 
 
 
 
 
 
 
   Hello Michael,
 
   I see that you created the NFCTagInfo App, available on the market.
 This
   app is, by far, the best Tag reader, because of all the little
 information
   it can give us, for example the HEX/ASCII values of the sectors.
 
   Anyway, I just wanted to point out that it is possible to simulate an
 NFC
   Tag with card emulation. I was able to turn on card emulation on my
 Samsung
   Nexus S phone which sports a PN65 (=PN544+SmartMX) chip. The emulated
 card
   was a MIFARE 4K, which is a Type 4 NFC Tag. Using another Nexus S and
 the
   NXP TagWriter app, I was able to write a plain text message on the
   card-emulated Nexus S.
 
   Examining the HEX data, the latter was clearly an NDEF message.
   Furthermore, the NXP Tagreader app was able to extract the plain text
   message.
 
   That said, full card-emulation is possible on the Nexus S!!
 
   br
   Shailen
 
   On Wednesday, March 23, 2011 10:03:39 AM UTC+1, Michael Roland wrote:
 
Hallo,
 
the current SDK does not allow you to use card emulation.
 
Anyways, with card *emulation* you will not be able to simulate an
*NFC tag* (i.e. a tag where you store simple NDEF messages). Card
emulation mode allows to emulate a contactless smartcard (typically
used for applications with high security requirements, like credit
cards). While such a card (emulated or real) can be used to carry
 NDEF
messages, I really doubt that this possibility will be made available
for the Android phones.
 
br,
Michael
 
On Mar 23, 5:14 am, Zhihong GUO gzhh...@gmail.com wrote:
 Hi all,
 
 about NFC in Gingerbread, is it possible to simulate a tag by the
 SDK? I
 have found the support for tag read/write and P2P push message, but
haven't
 found any support on card simulate.
 
 thanks
 
 James

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

2012-06-15 Thread Dianne Hackborn
It will be, eventually (once garbage across processes is released) and
assuming no references are being held through other paths.

On Fri, Jun 15, 2012 at 9:13 AM, G. Blake Meike blake.me...@gmail.comwrote:

 ... actually, on more thing.  I'd expect the remote reference to be
 released if I unbind the service.  Is that so?

 -blake

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Debug using ADB with a rooted Samsung nexus S device!

2012-06-15 Thread mike digioia
 Debug using ADB with a rooted Samsung nexus S device!

I have been debugging my Native code changes to allow Bluetooth to function
as the transport inside the CCNX ccnd daemon. However, I am not able to get
any of my command line CCNX tools (like ccncat, etc) to execute. My process
includes unlocking the locked bootloader, download the superuser app and
recovery image to root the device. Then I remounted the mounted partitions
R/W so I can add, execute and debug with the many ccnx commands. However, I
am not able to get anyone to work.

rwxr-x system   sdcard_rw   235987 2012-02-12 19:16 ccncat
 shell@android:/mnt/sdcard # ./ccncat -h
sh: ./ccncat: cannot execute - Permission denied

So I copied the ccncat command to /system/bin and I get the same error.
Only thing that I can think of is that these commands were not cross
compiled for the correct ARM processor, since I was able to issue the mount
command and remount the filesystems as root without issue.

Anyone have other ideas?

I will work on the ARM issue. Is there any way to know if the commands are
arm from the exe files?

/mpd

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

2012-06-15 Thread Justin Anderson

 but what about the number of seekbars...

What about the number of them?

I need more informationinput...

So do I...

All my created SeekBaars have the same ID so its easy to write the values
 in an array an get the arry but

But they all have a unique position in your adapter

what about change the other SeekBars again?

Get the position of the seekbars you want to change, use the adapter to
update the values of the seekbars at that position, and call
notifyDataSetChanged().

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


On Fri, Jun 15, 2012 at 1:07 AM, superpsycho s.thues...@gmx.de wrote:

 Thx a lot,
 but what about the number of seekbars... I need more informationinput...
 All my created SeekBaars have the same ID so its easy to write the values
 in an array an get the arry but what about change the other SeekBars again?

 Am Donnerstag, 14. Juni 2012 16:45:52 UTC+2 schrieb MagouyaWare:

 The values of your Seekbars need to be stored in your adapter...  You can
 then query the adapter for the information you need.

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


 On Thu, Jun 14, 2012 at 8:11 AM, superpsycho s.thues...@gmx.de wrote:

 I have a Problem with my customized ListView.
 Most of my Listviews recommend a seekbar, so I created a custom layout
 with one and create a arrayadapter that matches to it.
 If I undestood right, every row in the ListView is an own View.
 So far everything work fine. \o/
 New recommendations let me interlock the SeekBar against each other.
 For example 3 Seekbars: min=0 max=99

 -30--
 40---
 --70-

 If you pull the mid bar down till a level of 30 nothing happens casue
 the upper is lower than the mid. O.o*
 Now the upper have to scroll similar as the mid one. Same for the lower
 to the mid an inverter for upper to mid and mid to lower for increasing
 values.
 So here my question... -.-
 How am I able to  get actual values of SeekBars in other rows and of
 cause how to change the values... I thing if I´m able to do one the other
 is just peanuts.

 U NO SEE CODE? SO DAMN - REPLY!  - I´ll try to post some.

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


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


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

Re: [android-developers] Re: Help with App crackers

2012-06-15 Thread Justin Anderson
I've heard that app crackers taste really good with cheese...  :-)

Seriously though, the licensing system hasn't failed... Nothing is
crack-proof.  The only thing you can do is try to make it as difficult as
possible.

Did you just use the default LVL code that Google gave you or did you add
stuff to it or otherwise modify it to make it more difficult to crack?

Google specifically recommends not using the LVL code they provide without
modifying it Since that code is plainly available to all, hackers have
all the information they need to crack the app.  Plus, I have heard that
there are scripts out there that will do all the work of cracking an app
for you, especially if you use unmodified LVL code...

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


On Fri, Jun 15, 2012 at 12:26 AM, imran ali imran...@gmail.com wrote:

 Hi,
 Really, it is very shameful.
 I think best option to apply in-app billing to sell android application.

 Regards
 Imran Ali


 On Friday, June 15, 2012 11:30:37 AM UTC+5:30, Giuseppe wrote:

 Dear guys,
 We work about two months, six people to make possible VOICE 
 PROhttps://play.google.com/store/apps/details?id=com.voiceprofeature=more_from_developer#?t=W251bGwsMSwxLDEwMiwiY29tLnZvaWNlcHJvIl0.born.

 We use PROGUARD and LICENSING together, but the day after the
 publication, we found the app cracked 
 herehttp://sinfulandroid.com/applications-26/voice-pro-v1-0-apk-android-24441/

 We are serious upset, we work to hard for months and now the app become
 crack in one night.

 Our opinion is that GOOGLE LICENSING system has failed, Google must find
 a different solution to protect our work.

 I know that this group is for developers question, but frankly, what to
 develop with this premises ?

 Giuseppe Porcelli

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

2012-06-15 Thread Giuseppe
Hi Justin, nice to meet you.
Yeah I have used the code Google show on the site, probably this is 
my biggest mistake.
Do you want to help me to improve my LVL code?

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

2012-06-15 Thread Justin Anderson
I wouldn't be much help...  I'm not an expert on preventing hackers from
cracking security mechanisms.  I just know that Google says using the LVL
code is a good starting point but that you should make custom changes to it
to help prevent hackers from figuring out how to crack your app.

But, like I said, nothing is foolproof.  No matter what you do, someone
will be able to crack it.

For what it's worth, I just use the default LVL code in my apps.  I only
sell them for $0.99 and figure that people are less likely to spend the
time trying to figure out how to crack a $0.99 app.  Also, those that are
using the cracked version of my apps would probably not have purchased
anyway, so I'm really not out that much in sales.

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


On Fri, Jun 15, 2012 at 11:14 AM, Giuseppe porcelli.giuse...@gmail.comwrote:

 Hi Justin, nice to meet you.
 Yeah I have used the code Google show on the site, probably this is
 my biggest mistake.
 Do you want to help me to improve my LVL code?

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

2012-06-15 Thread Kristopher Micinski
On Fri, Jun 15, 2012 at 1:14 PM, Giuseppe porcelli.giuse...@gmail.com wrote:
 Hi Justin, nice to meet you.
 Yeah I have used the code Google show on the site, probably this is
 my biggest mistake.
 Do you want to help me to improve my LVL code?


Your app will probably be cracked eventually, no matter what.  I'm
surprised the lvl code was subverted.  But to be honest, a large
percentage of your potential users will not be downloading the cracked
app..., how much is it listed for?  (Perhaps if it's over $5 people
would take the time to go and find it online)

kris

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


Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-15 Thread Lars
I tried that. The logcat output shows me 14 red error lines.
I don't understand very little of what it tell.

Here is the errors: (do you need to see my androidManifest.xml?)

06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main
06-15 19:21:53.139: E/AndroidRuntime(28730): 
android.content.ActivityNotFoundException: Unable to find explicit activity 
class {lars.browser/lars.browser.dagensbilde}; have you declared this 
activity in your AndroidManifest.xml?
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.app.Activity.startActivityForResult(Activity.java:3190)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.app.Activity.startActivity(Activity.java:3297)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
lars.browser.BrowserActivity$1.onClick(BrowserActivity.java:24)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.view.View.performClick(View.java:3511)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.view.View$PerformClick.run(View.java:14105)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.os.Handler.handleCallback(Handler.java:605)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.os.Handler.dispatchMessage(Handler.java:92)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.os.Looper.loop(Looper.java:137)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
android.app.ActivityThread.main(ActivityThread.java:4575)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
java.lang.reflect.Method.invokeNative(Native Method)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
java.lang.reflect.Method.invoke(Method.java:511)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
06-15 19:21:53.139: E/AndroidRuntime(28730): at 
dalvik.system.NativeStart.main(Native Method)


Den fredag den 15. juni 2012 17.49.15 UTC+2 skrev MagouyaWare:

 When the app closes unexpectedly the best thing to do to figure out the 
 cause of the problem is to look at the logcat output... It will usually 
 tell you the file and the line where the crash happened, along with what 
 the problem is (e.g. NullPointerException, etc...)

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


 On Fri, Jun 15, 2012 at 7:33 AM, Lars lars.breum...@gmail.com wrote:

 I did as you wrote, and it seems to work.
 But, when I press the button, the app closes unexpectedly. I have 
 declared the next activity in the android manifest. I can't show you the 
 code till I get home.

 Thanks for the help:-)

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




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-15 Thread Raghav Sood
You haven't declared one of your Activities in your manifest, or it has
been declared incorrectly. So yeah, we would need to see your manifest.

On Fri, Jun 15, 2012 at 10:58 PM, Lars lars.breum...@gmail.com wrote:

 I tried that. The logcat output shows me 14 red error lines.
 I don't understand very little of what it tell.

 Here is the errors: (do you need to see my androidManifest.xml?)

 06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main
 06-15 19:21:53.139: E/AndroidRuntime(28730):
 android.content.ActivityNotFoundException: Unable to find explicit activity
 class {lars.browser/lars.browser.dagensbilde}; have you declared this
 activity in your AndroidManifest.xml?
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.app.Activity.startActivityForResult(Activity.java:3190)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.app.Activity.startActivity(Activity.java:3297)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 lars.browser.BrowserActivity$1.onClick(BrowserActivity.java:24)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.view.View.performClick(View.java:3511)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.view.View$PerformClick.run(View.java:14105)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.os.Handler.handleCallback(Handler.java:605)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.os.Handler.dispatchMessage(Handler.java:92)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.os.Looper.loop(Looper.java:137)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.app.ActivityThread.main(ActivityThread.java:4575)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 java.lang.reflect.Method.invokeNative(Native Method)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 java.lang.reflect.Method.invoke(Method.java:511)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 dalvik.system.NativeStart.main(Native Method)


 Den fredag den 15. juni 2012 17.49.15 UTC+2 skrev MagouyaWare:

 When the app closes unexpectedly the best thing to do to figure out the
 cause of the problem is to look at the logcat output... It will usually
 tell you the file and the line where the crash happened, along with what
 the problem is (e.g. NullPointerException, etc...)

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


 On Fri, Jun 15, 2012 at 7:33 AM, Lars lars.breum...@gmail.com wrote:

 I did as you wrote, and it seems to work.
 But, when I press the button, the app closes unexpectedly. I have
 declared the next activity in the android manifest. I can't show you the
 code till I get home.

 Thanks for the help:-)

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


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




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

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

Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-15 Thread Lars
Were you able to see that from the error log?

 I can't find any errors, when i look in my book it seems i wrote the 
same(with the modifications of the names). But i am probably not writing 
the same =)

Here's my entire androidManifest.xml:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=lars.browser
android:versionCode=1
android:versionName=1.0 
xmlns:tools=http://schemas.android.com/tools; 
tools:ignore=HardcodedDebugMode

uses-sdk android:minSdkVersion=8 /

application
android:icon=@drawable/ic_launcher
android:label=@string/app_name 
android:debuggable=true  
activity
android:name=.BrowserActivity
android:label=@string/app_name 
activity
android:name=.dagensbilde
android:label=@string/dagens_label
android:launchMode=standard

/activity
intent-filter
action android:name=android.intent.action.MAIN /

category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application

/manifest

Den fredag den 15. juni 2012 19.35.11 UTC+2 skrev Raghav Sood:

 You haven't declared one of your Activities in your manifest, or it has 
 been declared incorrectly. So yeah, we would need to see your manifest.

 On Fri, Jun 15, 2012 at 10:58 PM, Lars lars.breum...@gmail.com wrote:

 I tried that. The logcat output shows me 14 red error lines.
 I don't understand very little of what it tell.

 Here is the errors: (do you need to see my androidManifest.xml?)

 06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main
 06-15 19:21:53.139: E/AndroidRuntime(28730): 
 android.content.ActivityNotFoundException: Unable to find explicit activity 
 class {lars.browser/lars.browser.dagensbilde}; have you declared this 
 activity in your AndroidManifest.xml?
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.app.Activity.startActivityForResult(Activity.java:3190)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.app.Activity.startActivity(Activity.java:3297)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 lars.browser.BrowserActivity$1.onClick(BrowserActivity.java:24)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.view.View.performClick(View.java:3511)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.view.View$PerformClick.run(View.java:14105)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.os.Handler.handleCallback(Handler.java:605)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.os.Handler.dispatchMessage(Handler.java:92)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.os.Looper.loop(Looper.java:137)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 android.app.ActivityThread.main(ActivityThread.java:4575)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 java.lang.reflect.Method.invokeNative(Native Method)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 java.lang.reflect.Method.invoke(Method.java:511)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at 
 dalvik.system.NativeStart.main(Native Method)


 Den fredag den 15. juni 2012 17.49.15 UTC+2 skrev MagouyaWare:

 When the app closes unexpectedly the best thing to do to figure out 
 the cause of the problem is to look at the logcat output... It will usually 
 tell you the file and the line where the crash happened, along with what 
 the problem is (e.g. NullPointerException, etc...)

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


 On Fri, Jun 15, 2012 at 7:33 AM, Lars lars.breum...@gmail.com wrote:

 I did as you wrote, and it seems to work.
 But, when I press the button, the app closes unexpectedly. I have 
 declared the next activity in the android manifest. I can't show you the 
 code till I get home.

 Thanks for the help:-)

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

Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-15 Thread Raghav Sood
You've put an activity tag inside another activity tag. You aren't
supposed to do that. Try using:

manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=lars.browser
android:versionCode=1
android:versionName=1.0 xmlns:tools=http://schemas.android.com/tools;
tools:ignore=HardcodedDebugMode

uses-sdk android:minSdkVersion=8 /

application
android:icon=@drawable/ic_launcher
android:label=@string/app_name
android:debuggable=true
activity
android:name=.BrowserActivity
android:label=@string/app_name 
intent-filter
action android:name=android.intent.action.MAIN /

category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity
android:name=.dagensbilde
android:label=@string/dagens_label
android:launchMode=standard

/activity
/application

/manifest

On Sat, Jun 16, 2012 at 12:12 AM, Lars lars.breum...@gmail.com wrote:

 Were you able to see that from the error log?

  I can't find any errors, when i look in my book it seems i wrote the
 same(with the modifications of the names). But i am probably not writing
 the same =)

 Here's my entire androidManifest.xml:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
 package=lars.browser
 android:versionCode=1
 android:versionName=1.0 xmlns:tools=
 http://schemas.android.com/tools; tools:ignore=HardcodedDebugMode

 uses-sdk android:minSdkVersion=8 /

 application
 android:icon=@drawable/ic_launcher
 android:label=@string/app_name
 android:debuggable=true
 activity
 android:name=.BrowserActivity
 android:label=@string/app_name 
 activity
 android:name=.dagensbilde
 android:label=@string/dagens_label
 android:launchMode=standard
 
 /activity
 intent-filter
 action android:name=android.intent.action.MAIN /

 category android:name=android.intent.category.LAUNCHER
 /
 /intent-filter
 /activity
 /application

 /manifest

 Den fredag den 15. juni 2012 19.35.11 UTC+2 skrev Raghav Sood:

 You haven't declared one of your Activities in your manifest, or it has
 been declared incorrectly. So yeah, we would need to see your manifest.

 On Fri, Jun 15, 2012 at 10:58 PM, Lars lars.breum...@gmail.com wrote:

 I tried that. The logcat output shows me 14 red error lines.
 I don't understand very little of what it tell.

 Here is the errors: (do you need to see my androidManifest.xml?)

 06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main
 06-15 19:21:53.139: E/AndroidRuntime(28730): 
 android.content.**ActivityNotFoundException:
 Unable to find explicit activity class 
 {lars.browser/lars.browser.**dagensbilde};
 have you declared this activity in your AndroidManifest.xml?
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.app.Instrumentation.**checkStartActivityResult(**
 Instrumentation.java:1508)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.app.Instrumentation.**execStartActivity(**
 Instrumentation.java:1384)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.**
 startActivityForResult(**Activity.java:3190)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.**
 startActivity(Activity.java:**3297)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 lars.browser.BrowserActivity$**1.onClick(BrowserActivity.**java:24)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.view.View.**
 performClick(View.java:3511)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.view.View$**
 PerformClick.run(View.java:**14105)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Handler.**
 handleCallback(Handler.java:**605)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Handler.**
 dispatchMessage(Handler.java:**92)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.os.Looper.loop(Looper.**java:137)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 android.app.ActivityThread.**main(ActivityThread.java:4575)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 java.lang.reflect.Method.**invokeNative(Native Method)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 java.lang.reflect.Method.**invoke(Method.java:511)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at com.android.internal.os.
 **ZygoteInit$**MethodAndArgsCaller.run(**ZygoteInit.java:789)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at com.android.internal.os.
 **ZygoteInit.main(ZygoteInit.**java:556)
 06-15 19:21:53.139: E/AndroidRuntime(28730): at
 dalvik.system.NativeStart.**main(Native Method)


 Den fredag den 15. juni 2012 17.49.15 UTC+2 skrev MagouyaWare:

 When the app closes 

[android-developers] Re: onConfigurationChanged() is not called when flipping between landscape and reverse landscape?

2012-06-15 Thread Farmer
I am using a rotation listener as work around for this, but that means my 
code has to be synced with framework
in terms of orientation change (I mean landscape vs reverse landscape). In 
theory, that's an issue, isn't it.

Hi Dianne, thanks for your reply! Actually I have a camera preview running 
when user flips the phone. In that case
if I don't handle the camera rotation myself, all widgets are good except 
that preview is upside down.

As Streets Of Bostom suggested, I can make it work by writing a rotation 
listener. Just want to ask is there any
better, or official solution for this?

Thanks in advance! 

On Friday, June 15, 2012 10:02:20 AM UTC+8, Streets Of Boston wrote:

 You could write a listener to the sensors to get the *rotation*.

 On Thursday, June 14, 2012 7:36:41 PM UTC-4, Farmer wrote:

 Thanks guys for your reply!

 I tried to set 
 android:configChanges=keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize,
 but it didn't help.

 To Hoang, I can understand that Configuration does not change when I flip 
 the phone. Actually I am calling getRotation() to decide
 current display rotation. The thing is that I need a trigger to call the 
 method when orientation is changing between landscape and
 reverse landscape. And onConfigurationChanged() is my first thought. Any 
 idea?

 On Friday, June 8, 2012 1:26:08 AM UTC+8, Hoang DN wrote:

 Hi guy, 

 In your case, actually, Configuration did not change, therefore the 
 method onConfigurationChanged() won't be called. 
 If you want handle this event, you can use 
 android.view.Display.getRotation(). The returned value may be 
 Surface.ROTATION_0 (no rotation), Surface.ROTATION_90, 
 Surface.ROTATION_180, or Surface.ROTATION_270. 

 Hope this useful for you. Good luck! 


 Br, 
 hoangdn 

 On 7 Tháng Sáu, 23:49, Farmer duanxiao...@gmail.com wrote: 
  Hi there, 
  
  On ICS, when I flip the phone between landscape and reverse landscape, 
  it seems onConfigurationChanged() won't be called. How can I get 
  notified when such event happens, or did I miss anything here? 
  
  Thanks in advance! 
  
  best, 
  duanxiaotao



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

[android-developers] Re: Using HttpClient in Desktop and HttpURLConnection in Android

2012-06-15 Thread b0b
If you are happy and familiar with HttpClient, use it.
But the Android HttpClient client version is old and buggy and unmaintained 
and I wouldn't use it as is. 
Hopefully you can use the latest jars from the Apache HttpComponents site, 
but you will have to repackage 
them in another package root than org.apache with a tool like JarJar (for 
example com.mycompany.org.apache...)

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

2012-06-15 Thread Kaiduan Xie
Where is the implementation of HttpsURLConnection?

From javax\net\ssl\HttpsURLConnection.java, it is an abstract class.

public abstract class HttpsURLConnection extends HttpURLConnection {

I would like to dig into the implementation to see how it adds SNI support.

For non-HTTPS connection I mean the usage of SSL connection is not HTTP.

I really hope there is some corresponding openSSL API in JAVA to setup
SNI value.

In openssl, the API is SSL_set_tlsext_host_name(SSL* ssl, char* name).

Thanks,

/Kaiduan

On Thu, Jun 14, 2012 at 11:34 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 On Fri, Jun 15, 2012 at 12:14 PM, Kaiduan Xie kaidu...@gmail.com wrote:
 Nikolay,

 Thank you for quick response.

 Does it support for a non HTTPS connection?

 What is a 'non HTTPS' connection? SNI is for SSL.
 If you are using HTTP all you need is to set the Host header
 properly.


 I would like to have an API to set the SNI value while starting handshake.

 There is no such low level API. This should be handled automatically by
 the underlying OpenSSL SSL socket.

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

2012-06-15 Thread Baggtrixx
So Im still having this problem, here's the full stack trace:

06-16 00:06:22.192: W/dalvikvm(6989): threadid=1: thread exiting with
uncaught exception (group=0x2aac8578)
06-16 00:06:22.272: E/AndroidRuntime(6989): FATAL EXCEPTION: main
06-16 00:06:22.272: E/AndroidRuntime(6989):
java.lang.RuntimeException: org.xmlpull.v1.XmlPullParserException:
Error parsing document. (position:line -1, column -1) caused by:
org.apache.harmony.xml.ExpatParser$ParseException: At line 192, column
6: not well-formed (invalid token)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
Hello.Android.XMLReader.parse(XMLReader.java:67)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
Hello.Android.Hello_AndroidActivity
$DownloadWebpageText.onPostExecute(Hello_AndroidActivity.java:182)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
android.os.AsyncTask.finish(AsyncTask.java:417)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
android.os.AsyncTask.access$300(AsyncTask.java:127)
06-16 00:06:22.272: E/AndroidRuntime(6989): at android.os.AsyncTask
$InternalHandler.handleMessage(AsyncTask.java:429)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
android.os.Looper.loop(Looper.java:130)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
android.app.ActivityThread.main(ActivityThread.java:3701)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
java.lang.reflect.Method.invokeNative(Native Method)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
java.lang.reflect.Method.invoke(Method.java:507)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:866)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
dalvik.system.NativeStart.main(Native Method)
06-16 00:06:22.272: E/AndroidRuntime(6989): Caused by:
org.xmlpull.v1.XmlPullParserException: Error parsing document.
(position:line -1, column -1) caused by:
org.apache.harmony.xml.ExpatParser$ParseException: At line 192, column
6: not well-formed (invalid token)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
org.apache.harmony.xml.ExpatPullParser
$ByteDocument.flush(ExpatPullParser.java:958)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
org.apache.harmony.xml.ExpatPullParser
$Document.pump(ExpatPullParser.java:769)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
org.apache.harmony.xml.ExpatPullParser
$Document.dequeue(ExpatPullParser.java:813)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
org.apache.harmony.xml.ExpatPullParser.nextText(ExpatPullParser.java:
328)
06-16 00:06:22.272: E/AndroidRuntime(6989): at
Hello.Android.XMLReader.parse(XMLReader.java:47)
06-16 00:06:22.272: E/AndroidRuntime(6989): ... 12 more




On Jun 4, 10:14 pm, Baggtrixx baggtr...@gmail.com wrote:
 Trying to parse rss feed, it works on the avd but when i debug on my
 hardware device(2.3.4) i get following error.

 06-04 22:12:10.071: E/AndroidRuntime(22910):
 java.lang.RuntimeException: org.xmlpull.v1.XmlPullParserException:
 Error parsing document. (position:line -1, column -1) caused by:
 org.apache.harmony.xml.ExpatParser$ParseException: At line 188, column
 6: not well-formed (invalid token)

 On my avd this works perfect.Im lost.

 /Baggtrixx

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

2012-06-15 Thread John
I have tried the checkout API and that's working for my in app billing 
purchase.

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

2012-06-15 Thread Baggtrixx
---SOLVED---

Had a try catch when i was parsing the document and it went fine on the 
emulator, but on device it throwed an exception, removed the code in the 
catch and it worked.

On Monday, June 4, 2012 10:14:06 PM UTC+2, Baggtrixx wrote:

 Trying to parse rss feed, it works on the avd but when i debug on my 
 hardware device(2.3.4) i get following error. 

 06-04 22:12:10.071: E/AndroidRuntime(22910): 
 java.lang.RuntimeException: org.xmlpull.v1.XmlPullParserException: 
 Error parsing document. (position:line -1, column -1) caused by: 
 org.apache.harmony.xml.ExpatParser$ParseException: At line 188, column 
 6: not well-formed (invalid token) 

 On my avd this works perfect.Im lost. 

 /Baggtrixx

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

2012-06-15 Thread mike digioia
Bluetooth error on socket call-

Anyone know what the issues are with my Samsung Nexus S device when I get
this error in my native code call to the socket LIB --  code starts here:

btface = -1;
btDevice = NULL;
btsock = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);

if ( btsock  0 ) {
btDevice=NULL;
#ifdef DEBUG
ccnd_msg(h, ccnd_run: btDevice is NULL\n);
#endif
__code end

__Debug Message

I/CCND(  709): 1339785624.784335 ccnd[709]: ccnd_run: btDevice is NULL

I can use the example BT chat application fine on this phone with
discovery. So the BT device is working fine. Something with the socket call
or libbluetooth.so (copied from the phone) I am using.

/mpd

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

2012-06-15 Thread Nikolay Elenkov
On Sat, Jun 16, 2012 at 5:16 AM, Kaiduan Xie kaidu...@gmail.com wrote:
 Where is the implementation of HttpsURLConnection?

 From javax\net\ssl\HttpsURLConnection.java, it is an abstract class.

 public abstract class HttpsURLConnection extends HttpURLConnection {

 I would like to dig into the implementation to see how it adds SNI support.

 For non-HTTPS connection I mean the usage of SSL connection is not HTTP.

 I really hope there is some corresponding openSSL API in JAVA to setup
 SNI value.

 In openssl, the API is SSL_set_tlsext_host_name(SSL* ssl, char* name).


There is an setHostname() method in OpenSSLSocketImpl that if called
causes NativeCrypto.SSL_set_tlsext_host_name() to be called. That in
turn calls SSL_set_tlsext_host_name(). This is not available via the SDK
AFAIK, but you could probably try to cast the socket instance and try to
use the setHostname() method.

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

2012-06-15 Thread Kaiduan Xie
Thank you very much Nikolay.

I also found the code from the following link,

http://source-android.frandroid.com/libcore/luni/src/main/java/libcore/net/http/HttpsURLConnectionImpl.java

http://source-android.frandroid.com/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLSocketImpl.java

http://source-android.frandroid.com/libcore/luni/src/main/java/libcore/net/http/HttpConnection.java

Cheers,

/Kaiduan

On Fri, Jun 15, 2012 at 8:47 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 On Sat, Jun 16, 2012 at 5:16 AM, Kaiduan Xie kaidu...@gmail.com wrote:
 Where is the implementation of HttpsURLConnection?

 From javax\net\ssl\HttpsURLConnection.java, it is an abstract class.

 public abstract class HttpsURLConnection extends HttpURLConnection {

 I would like to dig into the implementation to see how it adds SNI support.

 For non-HTTPS connection I mean the usage of SSL connection is not HTTP.

 I really hope there is some corresponding openSSL API in JAVA to setup
 SNI value.

 In openssl, the API is SSL_set_tlsext_host_name(SSL* ssl, char* name).


 There is an setHostname() method in OpenSSLSocketImpl that if called
 causes NativeCrypto.SSL_set_tlsext_host_name() to be called. That in
 turn calls SSL_set_tlsext_host_name(). This is not available via the SDK
 AFAIK, but you could probably try to cast the socket instance and try to
 use the setHostname() method.

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

2012-06-15 Thread Satya Komatineni
It turns out there is a little bit of depth to android custom
attributes. These are the XML attributes that you can use for your own
custom views in layout files.

I have collected my research notes into a proper article and posted it at

http://satyakomatineni.com/item/4169

This article will answer the following questions

What are custom attributes?
Why use custom attributes?
How do you code a custom class?
How do you specify a custom attribute?
Do you have to define a custom attribute to Android?
Where do you have to define a custom attribute to Android?
What is AttributeSet?
What is TypedArray?
How do you read a custom attribute in your java code?
What is the styleable tag?
What is attrs.xml?
Does the name of a styleable tag need to match your java custom view name?
How do you declare a namespace for your custom attribute?
Do you need to declare your namespace differently if you have a sub package?
Do you need to specify package/sub-package name for your custom view
class in a styleable?
Does an attribute name has to be unique in your entire package?
Can a styleable grouping avoid attribute name uniqueness constraint?

http://satyakomatineni.com/android/training
http://satyakomatineni.com
http://androidbook.com
http://twitter.com/SatyaKomatineni

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

2012-06-15 Thread TreKing
On Fri, Jun 15, 2012 at 7:54 PM, Vance Turnewitsch 
betweenthehi...@gmail.com wrote:

  I cannot access the on* methods of the activity to properly dismiss this
 Dialog.


Why not ... ?

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

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

[android-developers] Re: trace mobile location through phone number

2012-06-15 Thread gjs
Hi,

That capability is usually reserved for telco's  government agencies
with warrants using cell phone tower triangulation.

Regards

On Jun 15, 10:34 pm, Narendra Singh Rathore nsr.curi...@gmail.com
wrote:
 On Fri, Jun 15, 2012 at 4:59 PM, Raghav Sood raghavs...@gmail.com wrote:
  This has nothing to do with the Android SDK. You'll need to find an online
  website with an API that allows you to do this. This isn't the list to find
  that website.

 Ok, thanks for the suggestion. I realized what I wanted can actually be
 achieved in the manner, I thought, as I mentioned above.

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

2012-06-15 Thread Sam
Anyone?

On Tuesday, June 5, 2012 5:38:02 PM UTC-7, Sam wrote:

 Hello everyone. I had a serious problem with Eclipse and it pretty 
 much renders my app useless if it isn't fixed. When i'm in the XML 
 editor of one of my XML files, and i place an image, all of the code 
 below the image cannot be edited. In fact, when i even click or try to 
 highlight anything below the images code, the code moves and 
 disappears and duplicates and completely destroys my page. You cant 
 undo it either. I'm not sure what to do because one of my pages is 
 pretty much all text and images, and i cant edit any of the text after 
 i place the images or ill have to delete and re-make the page from 
 scratch. If ANYONE had any thoughtful tips and suggestions it would be 
 very much appreciated. Thanks!

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

Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-15 Thread asheesh arya
your activity declaration is missing !!! try to include activity in your
manifest file

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] In App Billing V2: Item not found, but purchase OK

2012-06-15 Thread John
Have In App Billing V2 incorporated into my code and be able to buy 
one-time purchase item and yearly subscription item. But when 
purchasing one-time purchase item, always get the message Item not found. 
Is this a Google bug? Any help? Thanks in advance.

-John

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

Re: [android-developers] Eclipse Image Bug

2012-06-15 Thread Todd Grigsby
How are you editing the page?

On Jun 12, 2012 12:07 AM, Sam scoutamis...@gmail.com wrote:

 Hello everyone. I had a serious problem with Eclipse and it pretty
 much renders my app useless if it isn't fixed. When i'm in the XML
 editor of one of my XML files, and 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

Re: [android-developers] Eclipse Image Bug

2012-06-15 Thread Todd Grigsby
Let me rephrase that:  are you using the visual editor or are you editing
the XML directly?  The reason I ask is because the visual editor is, IMHO,
a bit frustrating.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Fwd: فراخوان جهیزیه ای برای نوعروسی دیگر با مدد حضرت موسی بن جعفر علیه السلام* لطفا اطلاع رسانی کنید به دوستان

2012-06-15 Thread asheesh arya
what the language ?

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