Re: [android-developers] Unexpected SecurityException

2013-09-30 Thread Piren
As far as i know, it's not the device, it's the OS. It fails on 4.2 and 
above.

On Sunday, September 29, 2013 8:25:40 PM UTC+3, Harri Smått wrote:

 Hi,

 I would be more interested why other devices you've ran this code on (?) 
 have not caused similar exception. According to docs 
 Intent.ACTION_AIRPLANE_MODE_CHANGED should be protected for system usage 
 only.

 --
 Harri


 On Sun, Sep 29, 2013 at 6:06 PM, elio francesconi 
 elio.fra...@gmail.comjavascript:
  wrote:

 Hi all,

 I wrote an application it controls dynamically the AIRPLANE_MODE, this is 
 the piece of code:

 *
  // toggle airplane mode
 android.provider.Settings.System.putInt(
   mContext.getContentResolver(),
   android.provider.Settings.System.AIRPLANE_MODE_ON, on ? 1 : 0);
  // Post an intent to reload
  Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
 intent.putExtra(state, on);
  mContext.sendBroadcast(intent);
 *
  
 I noticed a call stack exception on Nexus 4 only, 

 Full Stack Trace:

 java.lang.SecurityException
 android.os.Parcel.readException(Parcel.java:1431)

 android.os.Parcel.readException(Parcel.java:1385)
 android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2224)

 android.app.ContextImpl.sendBroadcast(ContextImpl.java:1046)
 android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:344)


 Have you experience on such kind of exceptions?

 Thanks 

 Elio

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 unsubscribe from this group and stop receiving emails from it, send an 
 email to android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




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


[android-developers] Re: Determine when view/views below my view have changed

2013-09-30 Thread Piren
onDraw should be the proper indicator of when you should update your view 
(though it will be called for any update to your view, not only just when 
the background changes).
I'm not sure there's even a way to distinguish who's responsible for the 
refresh - your own changes or background changes.

You can however try to figure out yourself if the background changed enough 
to warrant an update - compare the previous background image to the 
current, you can allow some percentage of acceptable difference between the 
images to lower the amount of times you call renderscript. 

On Sunday, September 29, 2013 5:26:42 PM UTC+3, Harri Smått wrote:

 Hello All,

 I'm in the midst of implementing somewhat dynamic background blur effect 
 for Android (similar to what iOS7 has) and I'm keen to have this one 
 optimisation in place.

 In my implementation I'm trying to achieve following:

 1. I extend default layout classes and call them blur layouts

 2. When view contents below blur layout in the view tree changes, I render 
 what ever content there is into scaled offscreen bitmap (this is the part 
 needing optimisation)

 3. Blur is applied on offscreen bitmap using RenderScript implementation 
 of stack blur

 4. From then on the blur layout draws this blurred image as it's background

 Now.. Currently.. I'm using ViewTreeObserver to determine when current 
 screen is about to update (OnPreDrawListener) but this doesn't give me any 
 indication whether content below my layout has changed. It's triggered no 
 matter what update happens on the screen and though I'm recreating the blur 
 image way too often - also in cases content below hasn't changed.

 It would be great if someone with better knowledge on Android drawing 
 internals could help me out on this one. Say, if my layout occupies 
 Rect(100, 100, 200, 200) on the screen, I would like to observe in this 
 layout when content below within it's area has changed. Or is this even 
 possible?

 For interested ones current implementation can be found here:
 https://github.com/harism/android_anndblur

 And precompiled application should appear in Play Market at some point.

 --
 Harri


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: InApp Billing v3 and multiple accounts

2013-09-30 Thread Alexander Osmanov
Thank you guys for your replies. I still have no clear understanding of how
to handle this problem more efficiently but at least now I am sure it's not
entirely myself missing something important.

Still I refuse to believe there is no one that ever faced the same problem
in android developers world, so I would really appreciate if someone anyone
described how they managed to handle it gracefully. I also have a question
with 100 rep bounty on SO:
http://stackoverflow.com/questions/18899870/android-appengine-endpoints-auth-and-inapp-billing
just
in case.


On Mon, Sep 30, 2013 at 6:26 AM, kj scwee...@gmail.com wrote:

 I'm not saying that getting the Google account name via the API wouldn't
 be useful, but unfortunately that doesn't exist right now. I agree that
 forcing accounts is not user friendly and probably isn't a good idea for
 the majority of apps, but it is an option that may be considered. Sticking
 with the default IAB model of purchases being tied to the Google account
 that downloaded the app works for most cases and users have a reasonable
 expectation of how that will work.

 What I meant by current Google account is what Alexander mentioned
 previously, that the Google account making the purchase is the one that
 downloaded the app from the Play store.

 On Sunday, September 29, 2013 9:48:18 PM UTC-4, Nikolay Elenkov wrote:

 On Mon, Sep 30, 2013 at 7:56 AM, kj scwe...@gmail.com wrote:
  The Google IAB dialog has the Google account name that will be
 associated
  with the purchase. In-app purchases are generally understood to be tied
 to
  your Google account and apps you download/purchase are associated with
 the
  account used in Google play.
 ...
  ... If you need more explicit guaruntees of user behavior, force them
 to make
  accounts.

 Your point being? Letting the developer know what account the user used
 to
 buy an IAB item, etc. is genuinely useful. It has been requested
 countless
 times, but the it's not part of the API. 'Force them to make accounts' is
 hardly user friendly and is really BS in a world where people are used to
 simply using their Google/FB, etc. account. Additionally Google is
 aggressively
 pushing OAuth and more specifically G+ accounts for *everything* now, so
 forcing people to create a bunch of throw-away accounts just to
 compensate for the limitations of the IAB API is not only bad advice, it
 also
 goes against even Google's policy. And BTW, what exactly is 'the current
 Google account'?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/EbcAdThiIWc/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Best regards,
AlexO

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: Strange SQLite error, possibly in native code?

2013-09-30 Thread Kostya Vasilyev
Just to follow up: building the query myself didn't help.

android.database.sqlite.SQLiteException: no such table: me (code 1): ,
while compiling: SELECT _id, generation, [snip], op_hide, misc_flags
*FROM me  age WHERE* folder_id = ? AND [condition here]

The query string is built in my Java code, and then passed to db.rawQuery.

The FROM me  age WHERE reads FROM message WHERE at that time, then
apparently gets corrupted inside system code, again, just in a slightly
different place.

I still don't know what makes this one query more special than the others,
oh well.

-- K



2013/9/29 Kostya Vasilyev kmans...@gmail.com

 Yes, that's what just did in a dev build, will see it helps.

 Curiously enough, the framework's SQLiteQueryBuilder uses a StringBuilder
 that is initially 120 chars long, and the corruption happens at 112'th
 character.

 I've long anticipated an Android device with firmware that calculates 2+2
 as 5... this is not quite it, but comes pretty close.

 -- K



 2013/9/29 Piren gpi...@gmail.com

 never came across such a report, but if it's isolated to that specific
 query maybe try replacing it with a rawQuery instead and see if it makes a
 difference.


 On Sunday, September 29, 2013 1:05:26 AM UTC+3, Kostya Vasilyev wrote:

 Hello,

 One of my users reports a crash like this:

 android.database.sqlite.**SQLiteException: no such column: _id (code 1): , 
 while compiling: SELECT _id, generation, flags, numeric_uid, 
 body_main_size, body_main_fetched_size, body_alt_size, body_alt_fetc¤   
 , search_token, op_flags, op_move_to_folder, op_hide, misc_flags FROM 
 message WHERE folder_id = ? AND numeric_uid = ? AND numeric_uid  ?
 at 
 android.database.sqlite.**SQLiteConnection.**nativePrepareStatement(Native 
 Method)
 at 
 android.database.sqlite.**SQLiteConnection.**acquirePreparedStatement(**SQLiteConnection.java:886)
 at 
 android.database.sqlite.**SQLiteConnection.**executeForCursorWindow(**SQLiteConnection.java:835)
 at 
 android.database.sqlite.**SQLiteSession.**executeForCursorWindow(**SQLiteSession.java:836)
 at 
 android.database.sqlite.**SQLiteQuery.fillWindow(**SQLiteQuery.java:62)
 at 
 android.database.sqlite.**SQLiteCursor.fillWindow(**SQLiteCursor.java:158)
 at 
 android.database.sqlite.**SQLiteCursor.getCount(**SQLiteCursor.java:148)
 at 
 android.database.**AbstractCursor.moveToPosition(**AbstractCursor.java:197)
 at 
 android.database.**AbstractCursor.moveToNext(**AbstractCursor.java:245)
 at my code here

 Note the weird character in the middle of:

 body_alt_fetc right here¤ , search_token.

 There are supposed to be a few more characters where this weird one is.

 My code here calls SQLiteDatabase.query with a String[] projection, a
 table name, a simple selection and its arguments, etc. All very basic stuff.

 The crash happens once in a while, even though this query runs
 literally all the time. It's always this query, too, even though there are
 dozens more, for same table, and in same source file.

 It looks to me like a memory overwrite, presumably in native code
 ('cause it's pretty hard to overwrite something by accident on the Java
 side of things).

 Has anyone ran into this or a similar query corruption?

 The device is a Zopo 980, if that means anything.

 Thanks,
 -- 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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


[android-developers] Public developer response

2013-09-30 Thread A.F.
Some month ago an user wrote a comment on play store for my app. It says it 
doesn't work anymore in his city.
I replied politely that there apparently were no problems for his city, and 
I ask him to give more infos.

Now he changes his mind, and wrote great app!. So, how can I remove my 
reply? It doesn't make any sense...
I can only change it, but it seems there's no way to remove.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: mixing themes

2013-09-30 Thread A.F.
I guess you have to create widget using the right context.

I use a ContextThemeWrapper to show a dark popup also if app has a light 
theme:

popupContext = new ContextThemeWrapper(this, R.style.AppThemeDark); 
AlertDialog.Builder b = new AlertDialog.Builder(popupContext);
...
...
...
b.show();


Il giorno domenica 29 settembre 2013 05:56:15 UTC+2, bob ha scritto:

 Is there an easy way to have a widget take on the style of a theme other 
 than the current one?

 For instance, maybe the current theme is Theme.Holo but you want a widget 
 to look like Theme.Light.

 Thanks.



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


Re: [android-developers] Re: Strange SQLite error, possibly in native code?

2013-09-30 Thread Piren
bizarre... seems like you should file a bug report.

On Monday, September 30, 2013 12:02:31 PM UTC+3, Kostya Vasilyev wrote:

 Just to follow up: building the query myself didn't help.

 android.database.sqlite.SQLiteException: no such table: me (code 1): , while 
 compiling: SELECT _id, generation, [snip], op_hide, misc_flags *FROM me  age 
 WHERE* folder_id = ? AND [condition here]

 The query string is built in my Java code, and then passed to db.rawQuery.

 The FROM me  age WHERE reads FROM message WHERE at that time, then 
 apparently gets corrupted inside system code, again, just in a slightly 
 different place.

 I still don't know what makes this one query more special than the others, 
 oh well.

 -- K



 2013/9/29 Kostya Vasilyev kman...@gmail.com javascript:

 Yes, that's what just did in a dev build, will see it helps.

 Curiously enough, the framework's SQLiteQueryBuilder uses a StringBuilder 
 that is initially 120 chars long, and the corruption happens at 112'th 
 character.

 I've long anticipated an Android device with firmware that calculates 2+2 
 as 5... this is not quite it, but comes pretty close.

 -- K



 2013/9/29 Piren gpi...@gmail.com javascript:

 never came across such a report, but if it's isolated to that specific 
 query maybe try replacing it with a rawQuery instead and see if it makes a 
 difference. 


 On Sunday, September 29, 2013 1:05:26 AM UTC+3, Kostya Vasilyev wrote:

 Hello,

 One of my users reports a crash like this:

 android.database.sqlite.**SQLiteException: no such column: _id (code 1): , 
 while compiling: SELECT _id, generation, flags, numeric_uid, 
 body_main_size, body_main_fetched_size, body_alt_size, body_alt_fetc¤  
  , search_token, op_flags, op_move_to_folder, op_hide, misc_flags FROM 
 message WHERE folder_id = ? AND numeric_uid = ? AND numeric_uid  ?
at 
 android.database.sqlite.**SQLiteConnection.**nativePrepareStatement(Native 
 Method)
at 
 android.database.sqlite.**SQLiteConnection.**acquirePreparedStatement(**SQLiteConnection.java:886)
at 
 android.database.sqlite.**SQLiteConnection.**executeForCursorWindow(**SQLiteConnection.java:835)
at 
 android.database.sqlite.**SQLiteSession.**executeForCursorWindow(**SQLiteSession.java:836)
at 
 android.database.sqlite.**SQLiteQuery.fillWindow(**SQLiteQuery.java:62)
at 
 android.database.sqlite.**SQLiteCursor.fillWindow(**SQLiteCursor.java:158)
at 
 android.database.sqlite.**SQLiteCursor.getCount(**SQLiteCursor.java:148)
at 
 android.database.**AbstractCursor.moveToPosition(**AbstractCursor.java:197)
at 
 android.database.**AbstractCursor.moveToNext(**AbstractCursor.java:245)
at my code here

 Note the weird character in the middle of:

 body_alt_fetc right here¤ , search_token.

 There are supposed to be a few more characters where this weird one is.

 My code here calls SQLiteDatabase.query with a String[] projection, a 
 table name, a simple selection and its arguments, etc. All very basic 
 stuff.

 The crash happens once in a while, even though this query runs 
 literally all the time. It's always this query, too, even though there are 
 dozens more, for same table, and in same source file.

 It looks to me like a memory overwrite, presumably in native code 
 ('cause it's pretty hard to overwrite something by accident on the Java 
 side of things).

 Has anyone ran into this or a similar query corruption?

 The device is a Zopo 980, if that means anything.

 Thanks,
 -- 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 unsubscribe from this group and stop receiving emails from it, send 
 an email to android-developers+unsubscr...@googlegroups.comjavascript:
 .
 For more options, visit https://groups.google.com/groups/opt_out.





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


[android-developers] Re: Public developer response

2013-09-30 Thread Piren
Change it to say thanks :)

On Monday, September 30, 2013 1:08:17 PM UTC+3, A.F. wrote:

 Some month ago an user wrote a comment on play store for my app. It says 
 it doesn't work anymore in his city.
 I replied politely that there apparently were no problems for his city, 
 and I ask him to give more infos.

 Now he changes his mind, and wrote great app!. So, how can I remove my 
 reply? It doesn't make any sense...
 I can only change it, but it seems there's no way to remove.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] delete in-app product : can I reuse product id

2013-09-30 Thread TobyKaos
Hello,

I read in doc that we cannot reuse product ID. But even if we delete 
product and recreate it with a differente product type?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Widevine Adaptive Streaming

2013-09-30 Thread Larry Meadors
Ahoj Honza,

Yes - sorry for not posting an eventual resolution here.

For me, the simple change that made it work was replacing http://;
with widevine:// in the URL to stream.

So instead of http://blah.com/foo.wmv;, try widevine://blah.com/foo.wmv.

Larry

On Mon, Sep 30, 2013 at 8:40 AM, Hoa Quoc Tran traninh...@gmail.com wrote:
 Hi,

 I am also stucked with this. I am using DRM and widevine with videoview.

 On Samsung S4 4.2.2: video seems to have good quality, but If I seek into
 different position then video will have bad quality.
 On Samsung TAB 2 10 4.0.3: video starts in poor quality, never get better
 quality
 On Samsung Tab 3 8 4.2.2: video starts in good quality, but if I seek into
 different position then video will stop playback with error.


 did you resolve this somehow?

 Thanks,
 Honza.

 Dne čtvrtek, 17. ledna 2013 23:24:23 UTC+1 Larry Meadors napsal(a):

 Crap, this appears to vary by device.

 On a Samsung Galaxy Tab 8.9, it's perfect. This is running 3.2.

 On a Nexus 7, it's crap. This is running 4.1.2.

 On a Samsung Galaxy S2 Skyrocket running 4.0.4, it's hit and miss.

 Larry


 On Thu, Jan 17, 2013 at 5:37 AM, Larry Meadors larry@gmail.com
 wrote:
  I'm using the built-in DRM support for widevine video playback, and
  the video quality seems really poor.
 
  The same video played on an ios device or using their web player seems
  fine, but on android it's super blocky.
 
  Is anyone here familiar with this problem?
 
  Larry
 
 
  PS: Yes, I know it's not EXCLUSIVELY android development. But it is
  exclusively an android (and widevine) issue.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Unexpected SecurityException

2013-09-30 Thread elio
Thanks guys,
I confirm Nexus 4 is the only one with version 4.3 installed.
On Monday, September 30, 2013 8:53:16 AM UTC+2, Piren wrote:

 As far as i know, it's not the device, it's the OS. It fails on 4.2 and 
 above.

 On Sunday, September 29, 2013 8:25:40 PM UTC+3, Harri Smått wrote:

 Hi,

 I would be more interested why other devices you've ran this code on (?) 
 have not caused similar exception. According to docs 
 Intent.ACTION_AIRPLANE_MODE_CHANGED should be protected for system usage 
 only.

 --
 Harri


 On Sun, Sep 29, 2013 at 6:06 PM, elio francesconi 
 elio.fra...@gmail.comwrote:

 Hi all,

 I wrote an application it controls dynamically the AIRPLANE_MODE, this 
 is the piece of code:

 *
  // toggle airplane mode
 android.provider.Settings.System.putInt(
   mContext.getContentResolver(),
   android.provider.Settings.System.AIRPLANE_MODE_ON, on ? 1 : 0);
  // Post an intent to reload
  Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
 intent.putExtra(state, on);
  mContext.sendBroadcast(intent);
 *
  
 I noticed a call stack exception on Nexus 4 only, 

 Full Stack Trace:

 java.lang.SecurityException
 android.os.Parcel.readException(Parcel.java:1431)

 android.os.Parcel.readException(Parcel.java:1385)
 android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2224)

 android.app.ContextImpl.sendBroadcast(ContextImpl.java:1046)
 android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:344)


 Have you experience on such kind of exceptions?

 Thanks 

 Elio

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send 
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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


[android-developers] Get the camera preview frame rate

2013-09-30 Thread TimeManx
I'm having a very hard time figuring this out. I'm using a SurfaceView to 
display the camera preview using camera.setPreviewDisplay(surfaceview).

But I can't figure out how to get the frame rate. I've tried using the 
Camera.PreviewCallback interface but it seems it's onPreviewCallback() method 
calls lag behind the actual preview. In other words, even with a smooth preview 
I only get about 15 calls to onPreviewCallback().

Is there any way to get the frame rate directly from the camera? Maybe there's 
an NDK solution?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] how to create button with one image background and one image inside and text

2013-09-30 Thread TreKing
On Sun, Sep 29, 2013 at 3:19 PM, Amit Mangal forum.amit.man...@gmail.comwrote:

 i have attached the sample picture any idea how to create that .
 i want to add text inside button image dynamically .


That's just a TextView with a custom, stretchable background. Look up PNG9.

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

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


[android-developers] editTextBackground

2013-09-30 Thread bob
I saw this in styles.xml:

item name=android:background?android:attr/editTextBackground/item

Is there a way to figure out exactly what ?android:attr/editTextBackground 
is?

Is that a nine-patch somewhere?

Thanks.

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


[android-developers] Android Dataset

2013-09-30 Thread Moutaz Alazab
Hello Everyone,

Is there any automatic method for downloading Android applications from
Google market directly to my PC, I want to do some static analysis on them?

I need to collect a large dataset for some research.

Many thank you in advance for explanation.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Android Dataset

2013-09-30 Thread Kristopher Micinski
FYI:

http://www.malgenomeproject.org/

https://github.com/chadrem/market_bot

Kris



On Mon, Sep 30, 2013 at 8:49 PM, Moutaz Alazab azabk...@gmail.com wrote:

 Hello Everyone,

 Is there any automatic method for downloading Android applications from
 Google market directly to my PC, I want to do some static analysis on them?

 I need to collect a large dataset for some research.

 Many thank you in advance for explanation.


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


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