Re: [android-developers] Re: session mangement

2012-07-16 Thread laxman k
ya  i try level my best. unkonown error come

>
see attachedment and reply me with 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<>

Re: [android-developers] Slow Android Developer Account Approval

2012-07-16 Thread Alfred Sung
I have send an email to the google play team, however i only got the 
computer-generate reply.

My account still pending the registration compete .. sosad 


:( :(

TreKing於 2012年7月16日星期一UTC+8下午2時33分58秒寫道:
>
> On Sun, Jul 15, 2012 at 10:15 PM, Alfred Sung  wrote:
>
>> My accounts has been pending for few days, is there anyway I could 
>> escalate my account creation?
>
>
>
> http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=136601
>
>
> -
> 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] Problem with capturing images.

2012-07-16 Thread Seshu
HI all,
I am facing a issue regarding the camera i.e., i captured the
image from camera now i ll take the image path and converted to bitmap
format and then pushed to some array list. now i want to delete the
image from the gallery. i used these concept
Bitmap bmp = null;
String[] projection = { MediaStore.Images.ImageColumns.SIZE,
MediaStore.Images.ImageColumns.DISPLAY_NAME,
MediaStore.Images.ImageColumns.DATA, 
BaseColumns._ID, };
Cursor c = null;
Uri u = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
try {
if (u != null) {
c = managedQuery(u, projection, null, null, 
null);
}
if ((c != null) && (c.moveToLast())) {
bmp = getBitMap(c.getString(2), 3);
ContentResolver cr = getContentResolver();
cr.delete( 
MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
BaseColumns._ID + "=" + 
c.getString(3), null);
}
} catch (Exception e) {
e.printStackTrace();
//bmp = null;
}
finally {
if (c != null) {
c.close();
}
}

but the problem is sometimes i am getting another images path which is
in gallery folder. how to solve these problem.

Thanks and Regards,
S.Seshu

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


[android-developers] How to block Sharing data via share intent

2012-07-16 Thread Bunty syed
Hi,

In android, on long clicking some link or text, System generates a menu 
with some share via option.
On clicking that, it pops up a screen with facebook gmail,etc..

My doubt is that is there any way to remove that option from that menu.

or is there any callback call when some intent is launched from the 
application..




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

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Kristopher Micinski
For your application or anyone's app?  For your app, don't implement the
filter, for anyone's app, this will be a lot trickier
On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:

> Hi,
>
> In android, on long clicking some link or text, System generates a menu
> with some share via option.
> On clicking that, it pops up a screen with facebook gmail,etc..
>
> My doubt is that is there any way to remove that option from that menu.
>
> or is there any callback call when some intent is launched from the
> application..
>
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: session mangement

2012-07-16 Thread Kristopher Micinski
Err what are you trying to do and why are you asking here? This has
nothing to do with Android
On Jul 16, 2012 3:35 AM, "laxman k"  wrote:

> ya  i try level my best. unkonown error come
>
>>
> see attachedment and reply me with 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to flip the page similar to what Flipboard app does

2012-07-16 Thread Harri Smått
I played around with the idea - and this mockup works more/less properly.
Nothing too fancy but guess it would be possible to extend it for more
generalized usage.

https://github.com/harism/android_viewbinder

--
H
 On Jul 16, 2012 2:54 PM, "KK"  wrote:

> hi All,
> I'm working on creating a basic app and planning to use the page flip
> feature available on Flipboard app @
> https://play.google.com/store/apps/details?id=flipboard.app&feature=related_apps
>
> Would appreciate, if someone could point me to some sample code that does
> similar job.
>
>
> Thanks  in advance!
>
> Regards,
> KK
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] session mangement

2012-07-16 Thread laxman k
how to mange session..plz tell m.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: TextView textSize unknown during Constrcutor (Jellybean)?

2012-07-16 Thread Piren
Just wanted to add some information that might be relevant:
My project is compiled against Google API 7, minSDK is 7 and target SDK is 
8.

On Sunday, July 15, 2012 5:54:35 PM UTC+3, Piren wrote:
>
> Hi
>
> I've noticed Jellybean is having a different behavior when it comes to 
> creating TextViews. 
> I have a class that extends Widget.TextView, up until API 16 the textSize 
> was already known after you initialize your class using TextView's 
> constructors (at least on APIs 7-15)
>
> Why is this no longer true on API 16? is that a bug or on purpose?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Make SlidingDrawer's content always visible?

2012-07-16 Thread user123
Hi golf oo, your answer is empty.

On Sunday, July 15, 2012 5:02:25 PM UTC+2, user123 wrote:
>
> I'm using android:bottomOffset to make the drawer stick out 100dip from 
> the bottom. That works fine, but my content is not visible. It's only 
> visible when I touch the drawer. How can I make that its always visible 
> (the 100dip show the content)?
>
> I first thought it's a visibility issue, because the visibility of the 
> content is set to GONE in onFinishInflate(), prepareContent(), 
> closeDrawer()... copied the SlidingDrawer and removed these lines, didn't 
> solve it. It seems that it is a position issue, currently I'm playing with 
> the numbers but still don't find how to make the view appear where it 
> should be... and don't have more time for this... any help is greatly 
> appreciated.
>

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

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Bunty syed
Thanks.  I want to do it only for my app.

But I did not understand what  filter r u talking about & will it affect
the system generated menu...

On 16 July 2012 13:49, Kristopher Micinski  wrote:

> For your application or anyone's app?  For your app, don't implement the
> filter, for anyone's app, this will be a lot trickier
> On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:
>
>> Hi,
>>
>> In android, on long clicking some link or text, System generates a menu
>> with some share via option.
>> On clicking that, it pops up a screen with facebook gmail,etc..
>>
>> My doubt is that is there any way to remove that option from that menu.
>>
>> or is there any callback call when some intent is launched from the
>> application..
>>
>>
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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

[android-developers] Re: Your Registration to Google Play is still being processed.

2012-07-16 Thread elirev4
Help... someone?

On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote:
>
> I registered to the Google Play Developers 24 hours ago and this message 
> "Your Registration to Google Play is still being processed." is still 
> there...
>
>
> How much time will I have to wait for Google to approve my 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

Re: [android-developers] NFC game

2012-07-16 Thread iconapp 2010
Actually,

https://play.google.com/store/apps/details?id=jp.co.hayatoinformation.nfchunter&hl=en
this is the link which i need to develop application same as that,
   In that after clicking nfc tag i need to display monster for tapping
but, in my application if i click on that tag it shows following error

event=MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=286.0, y[0]=322.0,
toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0,
edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1303299,
downTime=1303299, deviceId=0, source=0x1002 }

and NFChunterexception:HTTP :404

so plz let me knw how can i solve this problem,



On Sat, Jul 14, 2012 at 12:49 AM, TreKing  wrote:

> On Fri, Jul 13, 2012 at 2:01 AM, iconapp 2010 wrote:
>
>> I am doing Android project for NFC hunter game, in that i want some idea
>> with sample code about how to search UID from google app engine database.
>>
>
> That is not much clearer.
> Again: http://www.catb.org/~esr/faqs/smart-questions.html
>
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Your Registration to Google Play is still being processed.

2012-07-16 Thread Michael Banzon
Please contact Google with this problem.

This list is for development questions/problems using the Android SDK.
You can't get any help for your problem here.


On Mon, Jul 16, 2012 at 11:21 AM, elirev4  wrote:
> Help... someone?
>
>
> On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote:
>>
>> I registered to the Google Play Developers 24 hours ago and this message
>> "Your Registration to Google Play is still being processed." is still
>> there...
>>
>>
>> How much time will I have to wait for Google to approve my 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



-- 
Michael Banzon
http://michaelbanzon.com/

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


Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Kristopher Micinski
The system will only "share" from your app if you declare it in the
manifest. In reality, however, you can't hide the data from the user
without encryption...
On Jul 16, 2012 5:12 AM, "Bunty syed"  wrote:

> Thanks.  I want to do it only for my app.
>
> But I did not understand what  filter r u talking about & will it affect
> the system generated menu...
>
> On 16 July 2012 13:49, Kristopher Micinski  wrote:
>
>> For your application or anyone's app?  For your app, don't implement the
>> filter, for anyone's app, this will be a lot trickier
>>  On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:
>>
>>> Hi,
>>>
>>> In android, on long clicking some link or text, System generates a menu
>>> with some share via option.
>>> On clicking that, it pops up a screen with facebook gmail,etc..
>>>
>>> My doubt is that is there any way to remove that option from that menu.
>>>
>>> or is there any callback call when some intent is launched from the
>>> application..
>>>
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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

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

2012-07-16 Thread elirev4
How can I contact Google? 

On Monday, July 16, 2012 12:25:50 PM UTC+3, mbanzon wrote:
>
> Please contact Google with this problem. 
>
> This list is for development questions/problems using the Android SDK. 
> You can't get any help for your problem here. 
>
>
> On Mon, Jul 16, 2012 at 11:21 AM, elirev4  wrote: 
> > Help... someone? 
> > 
> > 
> > On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote: 
> >> 
> >> I registered to the Google Play Developers 24 hours ago and this 
> message 
> >> "Your Registration to Google Play is still being processed." is still 
> >> there... 
> >> 
> >> 
> >> How much time will I have to wait for Google to approve my 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 
>
>
>
> -- 
> Michael Banzon 
> http://michaelbanzon.com/ 
>

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

Re: [android-developers] Re: Your Registration to Google Play is still being processed.

2012-07-16 Thread Michael Banzon
http://bit.ly/NqUTn9

On Mon, Jul 16, 2012 at 12:10 PM, elirev4  wrote:
> How can I contact Google?
>
>
> On Monday, July 16, 2012 12:25:50 PM UTC+3, mbanzon wrote:
>>
>> Please contact Google with this problem.
>>
>> This list is for development questions/problems using the Android SDK.
>> You can't get any help for your problem here.
>>
>>
>> On Mon, Jul 16, 2012 at 11:21 AM, elirev4  wrote:
>> > Help... someone?
>> >
>> >
>> > On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote:
>> >>
>> >> I registered to the Google Play Developers 24 hours ago and this
>> >> message
>> >> "Your Registration to Google Play is still being processed." is still
>> >> there...
>> >>
>> >>
>> >> How much time will I have to wait for Google to approve my 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
>>
>>
>>
>> --
>> Michael Banzon
>> http://michaelbanzon.com/



-- 
Michael Banzon
http://michaelbanzon.com/

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


Re: [android-developers] Jelly Bean Crash with Bitmap Recycle "Sorry, an error has occurred: bitmap is recycled"

2012-07-16 Thread Francisco M. Marzoa Alonso
I have had the same problem with some devices, but I did not study the
case in deep, just applied this workaround directly:

if ( ! oldBitmap.isRecycled())
oldBitmap.recycle();

It may be faster than comparing one bitmap to another, but to be honest
I did not try the other method.

Regards,


On 13/07/12 15:42, Craigo wrote:
> Hi Google,
>
> My app that has been running for over 2 years without an update, finally 
> broke with Jelly Bean.  The error: "Sorry, an error has occurred: bitmap is 
> recycled".
>
> The problem was with calling recycle on a bitmap:
>
> Bitmap bitmapOld = bitmap;
> bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, false);
> bitmapOld.recycle();
>
> Note: I never referenced bitmapOld again.
>
> The fix was easy, I just don't recycle any more.  However, it seems odd 
> that this would have broken.  Maybe creating the scaled bitmap shares 
> memory with the unscaled bitmap?
>
> Anyway, hopefully this information is useful to someone.
>
> Cheers, and keep up the excellent work!
>


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


Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Bunty syed
Tat means in the pop up nothing will be shown after clicking share via
item...

On 16 July 2012 15:02, Kristopher Micinski  wrote:

> The system will only "share" from your app if you declare it in the
> manifest. In reality, however, you can't hide the data from the user
> without encryption...
> On Jul 16, 2012 5:12 AM, "Bunty syed"  wrote:
>
>> Thanks.  I want to do it only for my app.
>>
>> But I did not understand what  filter r u talking about & will it affect
>> the system generated menu...
>>
>> On 16 July 2012 13:49, Kristopher Micinski wrote:
>>
>>> For your application or anyone's app?  For your app, don't implement the
>>> filter, for anyone's app, this will be a lot trickier
>>>  On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:
>>>
 Hi,

 In android, on long clicking some link or text, System generates a menu
 with some share via option.
 On clicking that, it pops up a screen with facebook gmail,etc..

 My doubt is that is there any way to remove that option from that menu.

 or is there any callback call when some intent is launched from the
 application..




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

2012-07-16 Thread Francisco M. Marzoa Alonso
Hi,

24 hours ago were weekend... give it some more time. And if you think 24
hours is too much, do not even try Amazon market, you can be waiting for
WEEKS for a single app approval.

Regards,


On 16/07/12 08:20, elirev4 wrote:
> I registered to the Google Play Developers 24 hours ago and this message 
> "Your Registration to Google Play is still being processed." is still 
> there...
>
>
> How much time will I have to wait for Google to approve my 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


Re: [android-developers] Re: Your Registration to Google Play is still being processed.

2012-07-16 Thread elirev4
You think I didn't know how to get to this page?

There is anything in this page except one thing: HOW TO CONTACT GOOGLE!
This page is only for searching in the help center!
But I don't want to search in the help center, I want to contact them via 
email!

On Monday, July 16, 2012 1:15:38 PM UTC+3, mbanzon wrote:
>
> http://bit.ly/NqUTn9 
>
> On Mon, Jul 16, 2012 at 12:10 PM, elirev4  wrote: 
> > How can I contact Google? 
> > 
> > 
> > On Monday, July 16, 2012 12:25:50 PM UTC+3, mbanzon wrote: 
> >> 
> >> Please contact Google with this problem. 
> >> 
> >> This list is for development questions/problems using the Android SDK. 
> >> You can't get any help for your problem here. 
> >> 
> >> 
> >> On Mon, Jul 16, 2012 at 11:21 AM, elirev4  wrote: 
> >> > Help... someone? 
> >> > 
> >> > 
> >> > On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote: 
> >> >> 
> >> >> I registered to the Google Play Developers 24 hours ago and this 
> >> >> message 
> >> >> "Your Registration to Google Play is still being processed." is 
> still 
> >> >> there... 
> >> >> 
> >> >> 
> >> >> How much time will I have to wait for Google to approve my 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 
> >> 
> >> 
> >> 
> >> -- 
> >> Michael Banzon 
> >> http://michaelbanzon.com/ 
>
>
>
> -- 
> Michael Banzon 
> http://michaelbanzon.com/ 
>

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

Re: [android-developers] Wifi-Only tablet missing NETWORK_PROVIDER!?

2012-07-16 Thread Mark Murphy
On Sun, Jul 15, 2012 at 9:40 PM, RE  wrote:
> I
> assumed that since it had the Google Play application that it had already
> been approved for location manager

Some device manufacturers (among others) pirate the Play Store app.

> I decided to go the skyhook way when I
> continued to develop the application. So back in May, I got the SDK and dev
> key from them. Is there a way that I can integrate the SDK into the actual
> os (ICS) on the unit? Or should I just package skyhook with the app so I can
> be sure that all hardware is supported?

Those would be fine questions for Skyhook, I imagine. I have never
used their service; I just know of it by name.

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

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

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


Re: [android-developers] Android inapp purchase failed for first time

2012-07-16 Thread guna a
Hi,

I used the Google's inapp purchase sample. I handled the purchase success
in the handler as per sample code. But for the first time when user adding
his credit card and immediately purchasing, sometimes I am not getting
success message due to card activation time or some other. Please anyone
provide a solution to handle the purchase response, if it's delayed by some
reasons. In the sample code, where I have to handle that?

For your info, after getting inside the mTransactionHandler , I switched to
another activity of the application to show the status of the purchase and
start the file download.

public Handler mTransactionHandler = new Handler(){
public void handleMessage(android.os.Message msg) {
/*Log.i("*", "2Transaction complete");
Log.i("**", "2Transaction status:
"+BillingHelper.latestPurchase.purchaseState);
Log.i("*", "2Item purchased is:
"+BillingHelper.latestPurchase.productId);
Log.i("*", "Order id:
"+BillingHelper.latestPurchase.orderId);
Log.i("*", "Purchase time:
"+BillingHelper.latestPurchase.purchaseTime);
Log.i("*", "Notification id:
"+BillingHelper.latestPurchase.notificationId);*/
if(BillingHelper.latestPurchase.isPurchased()){
//Start the Download

String reference =
BillingHelper.latestPurchase.productId;
   setPurchaseSuccessful(reference);
}
};
};


Thanks.

On Sat, Jul 14, 2012 at 3:25 PM, tk  wrote:

> Hi,
>
> I integrated inapp billing in my app. My customers often getting problem
> for the very first time they are adding their credit card and purchasing.
> 2nd time purchase is good. Any one experienced this issue?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Alternative ad provider to Admob

2012-07-16 Thread Francisco M. Marzoa Alonso
http://lmgtfy.com/?q=admob+alternatives

On 14/07/12 04:20, Zaid wrote:
> I am looking for an alternative ad provider for android, i am currently 
> using admob banner ads for my android applications. 
>
> i know this question has been asked before, but there are many new ad 
> networks popping up and i would like some up to date answers.
>
> i am looking for banner ads,preferably something as easy to integrate as 
> AdMob. 
>
> any suggestions for ad providers?
>
>
> thank you.
>


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


[android-developers] Tip: don't load PNGs with transparency using RGB_565 in Jelly Bean

2012-07-16 Thread String
Okay, I'll say right up front, there's no good reason why you should be 
doing this. If your PNG has an alpha-channel, what are you doing loading it 
using a config that doesn't support it?

Nonetheless, I was doing this in one of my apps; the PNGs had transparency 
for historical reasons, but I'd been loading them using RGB_565 to save 
memory (the loss in quality wasn't important in this case). And prior to 
Jelly Bean, this worked fine, but in 4.1 it failed silently. It appeared to 
work, but the resultant bitmap was unusable; saving it to SD for debugging 
yielded a 0-length file.

The solution is simple: either remove the alpha-channel from your PNG, or 
load it with a different Config, one that supports transparency. If you can 
spare the RAM, ARGB_ is generally the best choice 
(see https://plus.google.com/u/0/111962077049890418486/posts/Ytar76F56y5). 
Or if memory's tight, ARGB_ will still work, and uses the same 
16bytes/pixel as RGB_565.

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] Android inapp purchase failed for first time

2012-07-16 Thread Kostya Vasilyev
Looks quite similar to this one:

http://code.google.com/p/marketbilling/issues/detail?id=30
16.07.2012 14:29 пользователь "guna a"  написал:

> Hi,
>
> I used the Google's inapp purchase sample. I handled the purchase success
> in the handler as per sample code. But for the first time when user adding
> his credit card and immediately purchasing, sometimes I am not getting
> success message due to card activation time or some other. Please anyone
> provide a solution to handle the purchase response, if it's delayed by some
> reasons. In the sample code, where I have to handle that?
>
> For your info, after getting inside the mTransactionHandler , I switched
> to another activity of the application to show the status of the purchase
> and start the file download.
>
> public Handler mTransactionHandler = new Handler(){
> public void handleMessage(android.os.Message msg) {
> /*Log.i("*", "2Transaction complete");
> Log.i("**", "2Transaction status:
> "+BillingHelper.latestPurchase.purchaseState);
> Log.i("*", "2Item purchased is:
> "+BillingHelper.latestPurchase.productId);
> Log.i("*", "Order id:
> "+BillingHelper.latestPurchase.orderId);
> Log.i("*", "Purchase time:
> "+BillingHelper.latestPurchase.purchaseTime);
> Log.i("*", "Notification id:
> "+BillingHelper.latestPurchase.notificationId);*/
> if(BillingHelper.latestPurchase.isPurchased()){
> //Start the Download
>
> String reference =
> BillingHelper.latestPurchase.productId;
>setPurchaseSuccessful(reference);
> }
> };
> };
>
>
> Thanks.
>
> On Sat, Jul 14, 2012 at 3:25 PM, tk  wrote:
>
>> Hi,
>>
>> I integrated inapp billing in my app. My customers often getting problem
>> for the very first time they are adding their credit card and purchasing.
>> 2nd time purchase is good. Any one experienced this issue?
>>
>> Thanks.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Kristopher Micinski
Is that a question?  If so, the answer is yes, if you don't specify an
intent filter for that routine, then the system won't offer to have
your app pop up.  If it is, that probably means that you're putting
too much stuff in your manifest, so you should post it so people can
inspect it.

As I said before, if you're worried about people actually getting at
the contents of the stuff in your app, then you shouldn't simply count
on this, you should also use some form of encryption 

kris

On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed  wrote:
> Tat means in the pop up nothing will be shown after clicking share via
> item...
>
>
> On 16 July 2012 15:02, Kristopher Micinski  wrote:
>>
>> The system will only "share" from your app if you declare it in the
>> manifest. In reality, however, you can't hide the data from the user without
>> encryption...
>>
>> On Jul 16, 2012 5:12 AM, "Bunty syed"  wrote:
>>>
>>> Thanks.  I want to do it only for my app.
>>>
>>> But I did not understand what  filter r u talking about & will it affect
>>> the system generated menu...
>>>
>>> On 16 July 2012 13:49, Kristopher Micinski 
>>> wrote:

 For your application or anyone's app?  For your app, don't implement the
 filter, for anyone's app, this will be a lot trickier

 On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:
>
> Hi,
>
> In android, on long clicking some link or text, System generates a menu
> with some share via option.
> On clicking that, it pops up a screen with facebook gmail,etc..
>
> My doubt is that is there any way to remove that option from that menu.
>
> or is there any callback call when some intent is launched from the
> application..
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, 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
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Re: Your Registration to Google Play is still being processed.

2012-07-16 Thread Kristopher Micinski
To be completely honest, you are very unlikely to get a reply... There
are so many app developers, and so few people who work on that portion
of the market...  Also, those people don't hang out anywhere near this
list, the only Google related people here don't really do that sort of
thing.

kris

On Mon, Jul 16, 2012 at 6:21 AM, elirev4  wrote:
> You think I didn't know how to get to this page?
>
> There is anything in this page except one thing: HOW TO CONTACT GOOGLE!
> This page is only for searching in the help center!
> But I don't want to search in the help center, I want to contact them via
> email!
>
> On Monday, July 16, 2012 1:15:38 PM UTC+3, mbanzon wrote:
>>
>> http://bit.ly/NqUTn9
>>
>> On Mon, Jul 16, 2012 at 12:10 PM, elirev4  wrote:
>> > How can I contact Google?
>> >
>> >
>> > On Monday, July 16, 2012 12:25:50 PM UTC+3, mbanzon wrote:
>> >>
>> >> Please contact Google with this problem.
>> >>
>> >> This list is for development questions/problems using the Android SDK.
>> >> You can't get any help for your problem here.
>> >>
>> >>
>> >> On Mon, Jul 16, 2012 at 11:21 AM, elirev4  wrote:
>> >> > Help... someone?
>> >> >
>> >> >
>> >> > On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote:
>> >> >>
>> >> >> I registered to the Google Play Developers 24 hours ago and this
>> >> >> message
>> >> >> "Your Registration to Google Play is still being processed." is
>> >> >> still
>> >> >> there...
>> >> >>
>> >> >>
>> >> >> How much time will I have to wait for Google to approve my 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
>> >>
>> >>
>> >>
>> >> --
>> >> Michael Banzon
>> >> http://michaelbanzon.com/
>>
>>
>>
>> --
>> Michael Banzon
>> http://michaelbanzon.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-07-16 Thread Michael Leung
Hi,
  Does any one know whether Task API(
https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android )
use other parties libraries? Do I know put their licenses in my application?

-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Bunty syed
Thanks Kris.

I will tell the scenario I am working on.

Actually my app is driven by server defined policy.

The application fetches the policy from the server & then act accordingly.
There is one policy for data sharing.
If data sharing is allowed then no problem.But if the data sharing is not
allowed, application should be able to block the data sharing options like
sharing Via item in the system generated context menu.


On 16 July 2012 16:22, Kristopher Micinski  wrote:

> Is that a question?  If so, the answer is yes, if you don't specify an
> intent filter for that routine, then the system won't offer to have
> your app pop up.  If it is, that probably means that you're putting
> too much stuff in your manifest, so you should post it so people can
> inspect it.
>
> As I said before, if you're worried about people actually getting at
> the contents of the stuff in your app, then you shouldn't simply count
> on this, you should also use some form of encryption 
>
> kris
>
> On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed 
> wrote:
> > Tat means in the pop up nothing will be shown after clicking share via
> > item...
> >
> >
> > On 16 July 2012 15:02, Kristopher Micinski 
> wrote:
> >>
> >> The system will only "share" from your app if you declare it in the
> >> manifest. In reality, however, you can't hide the data from the user
> without
> >> encryption...
> >>
> >> On Jul 16, 2012 5:12 AM, "Bunty syed"  wrote:
> >>>
> >>> Thanks.  I want to do it only for my app.
> >>>
> >>> But I did not understand what  filter r u talking about & will it
> affect
> >>> the system generated menu...
> >>>
> >>> On 16 July 2012 13:49, Kristopher Micinski 
> >>> wrote:
> 
>  For your application or anyone's app?  For your app, don't implement
> the
>  filter, for anyone's app, this will be a lot trickier
> 
>  On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:
> >
> > Hi,
> >
> > In android, on long clicking some link or text, System generates a
> menu
> > with some share via option.
> > On clicking that, it pops up a screen with facebook gmail,etc..
> >
> > My doubt is that is there any way to remove that option from that
> menu.
> >
> > or is there any callback call when some intent is launched from the
> > application..
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to
> > android-developers@googlegroups.com
> > To unsubscribe from this group, 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
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to
> android-developers@googlegroups.com
> >> To unsubscribe from this group, 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
>

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

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Kristopher Micinski
I'm not sure you understand... You have to explicitly implement the
share intent anyway...

http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/

So it's not going to randomly "pop up" in your app, that's impossible,
unless you *put* it there!

kris

On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed  wrote:
> Thanks Kris.
>
> I will tell the scenario I am working on.
>
> Actually my app is driven by server defined policy.
>
> The application fetches the policy from the server & then act accordingly.
> There is one policy for data sharing.
> If data sharing is allowed then no problem.But if the data sharing is not
> allowed, application should be able to block the data sharing options like
> sharing Via item in the system generated context menu.
>
>
>
> On 16 July 2012 16:22, Kristopher Micinski  wrote:
>>
>> Is that a question?  If so, the answer is yes, if you don't specify an
>> intent filter for that routine, then the system won't offer to have
>> your app pop up.  If it is, that probably means that you're putting
>> too much stuff in your manifest, so you should post it so people can
>> inspect it.
>>
>> As I said before, if you're worried about people actually getting at
>> the contents of the stuff in your app, then you shouldn't simply count
>> on this, you should also use some form of encryption 
>>
>> kris
>>
>> On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed 
>> wrote:
>> > Tat means in the pop up nothing will be shown after clicking share via
>> > item...
>> >
>> >
>> > On 16 July 2012 15:02, Kristopher Micinski 
>> > wrote:
>> >>
>> >> The system will only "share" from your app if you declare it in the
>> >> manifest. In reality, however, you can't hide the data from the user
>> >> without
>> >> encryption...
>> >>
>> >> On Jul 16, 2012 5:12 AM, "Bunty syed"  wrote:
>> >>>
>> >>> Thanks.  I want to do it only for my app.
>> >>>
>> >>> But I did not understand what  filter r u talking about & will it
>> >>> affect
>> >>> the system generated menu...
>> >>>
>> >>> On 16 July 2012 13:49, Kristopher Micinski 
>> >>> wrote:
>> 
>>  For your application or anyone's app?  For your app, don't implement
>>  the
>>  filter, for anyone's app, this will be a lot trickier
>> 
>>  On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:
>> >
>> > Hi,
>> >
>> > In android, on long clicking some link or text, System generates a
>> > menu
>> > with some share via option.
>> > On clicking that, it pops up a screen with facebook gmail,etc..
>> >
>> > My doubt is that is there any way to remove that option from that
>> > menu.
>> >
>> > or is there any callback call when some intent is launched from the
>> > application..
>> >
>> >
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to
>> > android-developers@googlegroups.com
>> > To unsubscribe from this group, 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
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups "Android Developers" group.
>> >> To post to this group, send email to
>> >> android-developers@googlegroups.com
>> >> To unsubscribe from this group, 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 

Re: [android-developers] Tip: don't load PNGs with transparency using RGB_565 in Jelly Bean

2012-07-16 Thread Francisco M. Marzoa Alonso
ARGB_ is discouraged in google development docs as it produces very
poor quality with some bitmaps. And I have checked that it is true. If
you have a bitmap with a gradient or something similar, it will look
really crappy with ARGB_.


On 16/07/12 12:37, String wrote:
> Okay, I'll say right up front, there's no good reason why you should be 
> doing this. If your PNG has an alpha-channel, what are you doing loading it 
> using a config that doesn't support it?
>
> Nonetheless, I was doing this in one of my apps; the PNGs had transparency 
> for historical reasons, but I'd been loading them using RGB_565 to save 
> memory (the loss in quality wasn't important in this case). And prior to 
> Jelly Bean, this worked fine, but in 4.1 it failed silently. It appeared to 
> work, but the resultant bitmap was unusable; saving it to SD for debugging 
> yielded a 0-length file.
>
> The solution is simple: either remove the alpha-channel from your PNG, or 
> load it with a different Config, one that supports transparency. If you can 
> spare the RAM, ARGB_ is generally the best choice 
> (see https://plus.google.com/u/0/111962077049890418486/posts/Ytar76F56y5). 
> Or if memory's tight, ARGB_ will still work, and uses the same 
> 16bytes/pixel as RGB_565.
>
> 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] Tip: don't load PNGs with transparency using RGB_565 in Jelly Bean

2012-07-16 Thread String
Yes, that's why I recommended ARGB_, and linked to Romain's excellent 
explanation of the different Configs. But sometimes you can't afford the 
memory for ARGB_ for large Bitmaps, which is why I was using RGB_565 in 
the first place. And ARGB_ looks fine for some images, so in such a 
case - and if you need the alpha channel - it can still be the best choice.

Bottom line: pay attention to which Config you're using.

String

On Monday, July 16, 2012 1:31:27 PM UTC+2, Fran wrote:
>
> ARGB_ is discouraged in google development docs as it produces very 
> poor quality with some bitmaps. And I have checked that it is true. If 
> you have a bitmap with a gradient or something similar, it will look 
> really crappy with ARGB_. 
>
>
> On 16/07/12 12:37, String wrote: 
> > Okay, I'll say right up front, there's no good reason why you should be 
> > doing this. If your PNG has an alpha-channel, what are you doing loading 
> it 
> > using a config that doesn't support it? 
> > 
> > Nonetheless, I was doing this in one of my apps; the PNGs had 
> transparency 
> > for historical reasons, but I'd been loading them using RGB_565 to save 
> > memory (the loss in quality wasn't important in this case). And prior to 
> > Jelly Bean, this worked fine, but in 4.1 it failed silently. It appeared 
> to 
> > work, but the resultant bitmap was unusable; saving it to SD for 
> debugging 
> > yielded a 0-length file. 
> > 
> > The solution is simple: either remove the alpha-channel from your PNG, 
> or 
> > load it with a different Config, one that supports transparency. If you 
> can 
> > spare the RAM, ARGB_ is generally the best choice 
> > (see https://plus.google.com/u/0/111962077049890418486/posts/Ytar76F56y5). 
>
> > Or if memory's tight, ARGB_ will still work, and uses the same 
> > 16bytes/pixel as RGB_565. 
> > 
> > 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

[android-developers] Does anyone use Task API before?

2012-07-16 Thread Michael Leung
Hi all,
  Does anyone use Task API(
https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android)
before?
Any legal requirements to their API java library?


-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

2012-07-16 Thread B.Arunkumar
Hi,

   We have an app which renders bitmaps on imageview. On Samsung
Galaxy, it works fine. But On Motorola Droid, it runs into memory
issues and crashes every now and then with the following logcat.

/dalvikvm-heap( 3640): 3686400-byte external allocation too large for
this process.
E/GraphicsJNI( 3640): VM won't let us allocate 3686400 bytes
W/dalvikvm( 3640): threadid=11: thread exiting with uncaught exception
(group=0x4001d7e0)
E/AndroidRuntime( 3640): FATAL EXCEPTION: Thread-25
E/AndroidRuntime( 3640): java.lang.OutOfMemoryError: bitmap size
exceeds VM budget
E/AndroidRuntime( 3640):at
android.graphics.Bitmap.nativeCreate(Native Method)
E/AndroidRuntime( 3640):at
android.graphics.Bitmap.createBitmap(Bitmap.java:468)
E/AndroidRuntime( 3640):at
com.example.OnVRViewer.RTPClient.ProcessFrame(RTPClient.java:419)
E/AndroidRuntime( 3640):at
com.example.OnVRViewer.RTPClient.ProcessRtpVideoPacket(RTPClient.java:
204)
E/AndroidRuntime( 3640):at
com.example.OnVRViewer.RTSPUDPclient.AdvanceProcess(RTSPUDPclient.java:
659)
E/AndroidRuntime( 3640):at
com.example.OnVRViewer.RTSPUDPclient.processSelectionKey(RTSPUDPclient.java:
726)
E/AndroidRuntime( 3640):at
com.example.OnVRViewer.RTSPUDPclient.run(RTSPUDPclient.java:2068)
E/AndroidRuntime( 3640):at java.lang.Thread.run(Thread.java:1096)
W/ActivityManager( 1081):   Force finishing activity
com.example.OnVRViewer/.AsyncRecordTrial

My question is even though we have a try catch on Bitmap.createBitmap
it is still crashing. Why is the catch block not working? And how do
we handle the exception without crashing on Motorola Droid.

Following is my code right now:

try
{
bm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_);
}
catch (Exception ex)
{
android.util.Log.e("Bitmap", "Error");
}

Thank you,
B.Arunkumar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Screen goes black and rotates only with HDMI connected

2012-07-16 Thread RLScott
I have an app that has been locked down to "Reverse Portrait" by
having every activity specified as reverse portrait in the manifest.
That is because I intended to demonstrate this app at a trade show
using a connected HDMI TV screen that was mounted vertically.
Everything works fine that way but for one anomaly.  There are times
when I launch another activity and that activity launches a third
activity.  From that third activity I return using finish() after
setting a return code.  In the second activity I check the return code
in the callback and call finish() on the second activity.  That takes
me all the way back to the first activity.  That also works fine.  But
here is the strange part.  When a HDMI TV is connected and I try to
exit from the third activity, the screen temporarily (for about one
second) rotates to landscape and goes black.  Then it rotates back to
reverse portrait and shows the first activity as expected.  But if
HDMI is not connected then the transition back to the first activity
is immediate without any extra screen rotations.  And here is another
clue.  I have been able to deduce that when the extra screen rotation
takes place the first activity also goes through its complete
lifecycle - destroy and re-create.  But when the screen does not
rotate like that the first activity remains in memory - merely stopped
and started again.  Now I realize that any activity can be destroyed
and re-created by the OS any time it is not actively visible.  But I
suspect that the re-creating the stopped activity has something to do
with the temporary screen rotation.  It is not a big deal, but it is a
nuisance at the trade show when I have to explain to the audience why
they see these extra screen rotations when I am demonstrating my app
on the TV screen.

The device is a Acer Iconia Table, Android 3.2.

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


Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Bunty syed
Tats right ,If i write tat button click i can control it .
But suppose, I have a webview in my app. It opens some url.
In the webview,if for some content long press,if system generates tat
context menu with share via option how to control that.

On 16 July 2012 16:57, Kristopher Micinski  wrote:

> I'm not sure you understand... You have to explicitly implement the
> share intent anyway...
>
>
> http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
>
> So it's not going to randomly "pop up" in your app, that's impossible,
> unless you *put* it there!
>
> kris
>
> On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed 
> wrote:
> > Thanks Kris.
> >
> > I will tell the scenario I am working on.
> >
> > Actually my app is driven by server defined policy.
> >
> > The application fetches the policy from the server & then act
> accordingly.
> > There is one policy for data sharing.
> > If data sharing is allowed then no problem.But if the data sharing is not
> > allowed, application should be able to block the data sharing options
> like
> > sharing Via item in the system generated context menu.
> >
> >
> >
> > On 16 July 2012 16:22, Kristopher Micinski 
> wrote:
> >>
> >> Is that a question?  If so, the answer is yes, if you don't specify an
> >> intent filter for that routine, then the system won't offer to have
> >> your app pop up.  If it is, that probably means that you're putting
> >> too much stuff in your manifest, so you should post it so people can
> >> inspect it.
> >>
> >> As I said before, if you're worried about people actually getting at
> >> the contents of the stuff in your app, then you shouldn't simply count
> >> on this, you should also use some form of encryption 
> >>
> >> kris
> >>
> >> On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed 
> >> wrote:
> >> > Tat means in the pop up nothing will be shown after clicking share via
> >> > item...
> >> >
> >> >
> >> > On 16 July 2012 15:02, Kristopher Micinski 
> >> > wrote:
> >> >>
> >> >> The system will only "share" from your app if you declare it in the
> >> >> manifest. In reality, however, you can't hide the data from the user
> >> >> without
> >> >> encryption...
> >> >>
> >> >> On Jul 16, 2012 5:12 AM, "Bunty syed" 
> wrote:
> >> >>>
> >> >>> Thanks.  I want to do it only for my app.
> >> >>>
> >> >>> But I did not understand what  filter r u talking about & will it
> >> >>> affect
> >> >>> the system generated menu...
> >> >>>
> >> >>> On 16 July 2012 13:49, Kristopher Micinski 
> >> >>> wrote:
> >> 
> >>  For your application or anyone's app?  For your app, don't
> implement
> >>  the
> >>  filter, for anyone's app, this will be a lot trickier
> >> 
> >>  On Jul 16, 2012 4:11 AM, "Bunty syed" 
> wrote:
> >> >
> >> > Hi,
> >> >
> >> > In android, on long clicking some link or text, System generates a
> >> > menu
> >> > with some share via option.
> >> > On clicking that, it pops up a screen with facebook gmail,etc..
> >> >
> >> > My doubt is that is there any way to remove that option from that
> >> > menu.
> >> >
> >> > or is there any callback call when some intent is launched from
> the
> >> > application..
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> >> > android-developers@googlegroups.com
> >> > To unsubscribe from this group, 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
> >> >>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups "Android Developers" group.
> >> >> To post to this group, send email to
> >> >> android-developers@googlegroups.com
> >> >> To unsubscribe from this group, send email to
> >> >> android-developers+unsubscr...@googl

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Kristopher Micinski
well if it's not in your app, if it's just a general webview, then
there's no way for you to control it, because it's outside of your
app.

kris

On Mon, Jul 16, 2012 at 8:36 AM, Bunty syed  wrote:
> Tats right ,If i write tat button click i can control it .
> But suppose, I have a webview in my app. It opens some url.
> In the webview,if for some content long press,if system generates tat
> context menu with share via option how to control that.
>
>
> On 16 July 2012 16:57, Kristopher Micinski  wrote:
>>
>> I'm not sure you understand... You have to explicitly implement the
>> share intent anyway...
>>
>>
>> http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
>>
>> So it's not going to randomly "pop up" in your app, that's impossible,
>> unless you *put* it there!
>>
>> kris
>>
>> On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed 
>> wrote:
>> > Thanks Kris.
>> >
>> > I will tell the scenario I am working on.
>> >
>> > Actually my app is driven by server defined policy.
>> >
>> > The application fetches the policy from the server & then act
>> > accordingly.
>> > There is one policy for data sharing.
>> > If data sharing is allowed then no problem.But if the data sharing is
>> > not
>> > allowed, application should be able to block the data sharing options
>> > like
>> > sharing Via item in the system generated context menu.
>> >
>> >
>> >
>> > On 16 July 2012 16:22, Kristopher Micinski 
>> > wrote:
>> >>
>> >> Is that a question?  If so, the answer is yes, if you don't specify an
>> >> intent filter for that routine, then the system won't offer to have
>> >> your app pop up.  If it is, that probably means that you're putting
>> >> too much stuff in your manifest, so you should post it so people can
>> >> inspect it.
>> >>
>> >> As I said before, if you're worried about people actually getting at
>> >> the contents of the stuff in your app, then you shouldn't simply count
>> >> on this, you should also use some form of encryption 
>> >>
>> >> kris
>> >>
>> >> On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed 
>> >> wrote:
>> >> > Tat means in the pop up nothing will be shown after clicking share
>> >> > via
>> >> > item...
>> >> >
>> >> >
>> >> > On 16 July 2012 15:02, Kristopher Micinski 
>> >> > wrote:
>> >> >>
>> >> >> The system will only "share" from your app if you declare it in the
>> >> >> manifest. In reality, however, you can't hide the data from the user
>> >> >> without
>> >> >> encryption...
>> >> >>
>> >> >> On Jul 16, 2012 5:12 AM, "Bunty syed" 
>> >> >> wrote:
>> >> >>>
>> >> >>> Thanks.  I want to do it only for my app.
>> >> >>>
>> >> >>> But I did not understand what  filter r u talking about & will it
>> >> >>> affect
>> >> >>> the system generated menu...
>> >> >>>
>> >> >>> On 16 July 2012 13:49, Kristopher Micinski 
>> >> >>> wrote:
>> >> 
>> >>  For your application or anyone's app?  For your app, don't
>> >>  implement
>> >>  the
>> >>  filter, for anyone's app, this will be a lot trickier
>> >> 
>> >>  On Jul 16, 2012 4:11 AM, "Bunty syed" 
>> >>  wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > In android, on long clicking some link or text, System generates
>> >> > a
>> >> > menu
>> >> > with some share via option.
>> >> > On clicking that, it pops up a screen with facebook gmail,etc..
>> >> >
>> >> > My doubt is that is there any way to remove that option from that
>> >> > menu.
>> >> >
>> >> > or is there any callback call when some intent is launched from
>> >> > the
>> >> > application..
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the
>> >> > Google
>> >> > Groups "Android Developers" group.
>> >> > To post to this group, send email to
>> >> > android-developers@googlegroups.com
>> >> > To unsubscribe from this group, 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

[android-developers] File location of database file by using SQLiteDatabase

2012-07-16 Thread Alok Yadav
Hi All,

In SQLiteDatabase, Table and its rows and columns are saved in a file. 

i want to know the location that database file in which inserted new record
and updated new record saved.

Pls suggest me the location of that file as i want to see my data in that 
file.
1) If i am using my app in Emulator.
2) If i am using my app in Android mobile where   i have only .apk file of 
my app.

Thanks.

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

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Latimerius
The way I understand the OP's description, the problem is that
whatever is in Manifest is static.  Whereas he wants to decide
dynamically (based on input from a server) whether his app handles the
intent or not.  If sharing is on he wants his app to appear in the
chooser, if it's not it should be left out from the chooser.

At least that's how I understand it...

On Mon, Jul 16, 2012 at 1:27 PM, Kristopher Micinski
 wrote:
> I'm not sure you understand... You have to explicitly implement the
> share intent anyway...
>
> http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
>
> So it's not going to randomly "pop up" in your app, that's impossible,
> unless you *put* it there!
>
> kris
>
> On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed  wrote:
>> Thanks Kris.
>>
>> I will tell the scenario I am working on.
>>
>> Actually my app is driven by server defined policy.
>>
>> The application fetches the policy from the server & then act accordingly.
>> There is one policy for data sharing.
>> If data sharing is allowed then no problem.But if the data sharing is not
>> allowed, application should be able to block the data sharing options like
>> sharing Via item in the system generated context menu.
>>
>>
>>
>> On 16 July 2012 16:22, Kristopher Micinski  wrote:
>>>
>>> Is that a question?  If so, the answer is yes, if you don't specify an
>>> intent filter for that routine, then the system won't offer to have
>>> your app pop up.  If it is, that probably means that you're putting
>>> too much stuff in your manifest, so you should post it so people can
>>> inspect it.
>>>
>>> As I said before, if you're worried about people actually getting at
>>> the contents of the stuff in your app, then you shouldn't simply count
>>> on this, you should also use some form of encryption 
>>>
>>> kris
>>>
>>> On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed 
>>> wrote:
>>> > Tat means in the pop up nothing will be shown after clicking share via
>>> > item...
>>> >
>>> >
>>> > On 16 July 2012 15:02, Kristopher Micinski 
>>> > wrote:
>>> >>
>>> >> The system will only "share" from your app if you declare it in the
>>> >> manifest. In reality, however, you can't hide the data from the user
>>> >> without
>>> >> encryption...
>>> >>
>>> >> On Jul 16, 2012 5:12 AM, "Bunty syed"  wrote:
>>> >>>
>>> >>> Thanks.  I want to do it only for my app.
>>> >>>
>>> >>> But I did not understand what  filter r u talking about & will it
>>> >>> affect
>>> >>> the system generated menu...
>>> >>>
>>> >>> On 16 July 2012 13:49, Kristopher Micinski 
>>> >>> wrote:
>>> 
>>>  For your application or anyone's app?  For your app, don't implement
>>>  the
>>>  filter, for anyone's app, this will be a lot trickier
>>> 
>>>  On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:
>>> >
>>> > Hi,
>>> >
>>> > In android, on long clicking some link or text, System generates a
>>> > menu
>>> > with some share via option.
>>> > On clicking that, it pops up a screen with facebook gmail,etc..
>>> >
>>> > My doubt is that is there any way to remove that option from that
>>> > menu.
>>> >
>>> > or is there any callback call when some intent is launched from the
>>> > application..
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Android Developers" group.
>>> > To post to this group, send email to
>>> > android-developers@googlegroups.com
>>> > To unsubscribe from this group, 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
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups "Android Developers" group.
>>> >> To post to this group, send email to
>>> >> android-developers@googlegroups.com
>>> >> To unsubscribe from this group, send email to
>>> >> android-developers+unsubscr...@googlegroup

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Kristopher Micinski
You have it the other way around, I think.  I think he wants to
disable a "sharing button."  Not disable the app from "catching" a
shared thing.

If it's the second, then yes, it's perhaps interesting, but it sounds,
after the back and forth we've had, that it's much more likely a
confused and misguided attempt at the first instead...

kris

On Mon, Jul 16, 2012 at 9:01 AM, Latimerius  wrote:
> The way I understand the OP's description, the problem is that
> whatever is in Manifest is static.  Whereas he wants to decide
> dynamically (based on input from a server) whether his app handles the
> intent or not.  If sharing is on he wants his app to appear in the
> chooser, if it's not it should be left out from the chooser.
>
> At least that's how I understand it...
>
> On Mon, Jul 16, 2012 at 1:27 PM, Kristopher Micinski
>  wrote:
>> I'm not sure you understand... You have to explicitly implement the
>> share intent anyway...
>>
>> http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
>>
>> So it's not going to randomly "pop up" in your app, that's impossible,
>> unless you *put* it there!
>>
>> kris
>>
>> On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed  wrote:
>>> Thanks Kris.
>>>
>>> I will tell the scenario I am working on.
>>>
>>> Actually my app is driven by server defined policy.
>>>
>>> The application fetches the policy from the server & then act accordingly.
>>> There is one policy for data sharing.
>>> If data sharing is allowed then no problem.But if the data sharing is not
>>> allowed, application should be able to block the data sharing options like
>>> sharing Via item in the system generated context menu.
>>>
>>>
>>>
>>> On 16 July 2012 16:22, Kristopher Micinski  wrote:

 Is that a question?  If so, the answer is yes, if you don't specify an
 intent filter for that routine, then the system won't offer to have
 your app pop up.  If it is, that probably means that you're putting
 too much stuff in your manifest, so you should post it so people can
 inspect it.

 As I said before, if you're worried about people actually getting at
 the contents of the stuff in your app, then you shouldn't simply count
 on this, you should also use some form of encryption 

 kris

 On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed 
 wrote:
 > Tat means in the pop up nothing will be shown after clicking share via
 > item...
 >
 >
 > On 16 July 2012 15:02, Kristopher Micinski 
 > wrote:
 >>
 >> The system will only "share" from your app if you declare it in the
 >> manifest. In reality, however, you can't hide the data from the user
 >> without
 >> encryption...
 >>
 >> On Jul 16, 2012 5:12 AM, "Bunty syed"  wrote:
 >>>
 >>> Thanks.  I want to do it only for my app.
 >>>
 >>> But I did not understand what  filter r u talking about & will it
 >>> affect
 >>> the system generated menu...
 >>>
 >>> On 16 July 2012 13:49, Kristopher Micinski 
 >>> wrote:
 
  For your application or anyone's app?  For your app, don't implement
  the
  filter, for anyone's app, this will be a lot trickier
 
  On Jul 16, 2012 4:11 AM, "Bunty syed"  wrote:
 >
 > Hi,
 >
 > In android, on long clicking some link or text, System generates a
 > menu
 > with some share via option.
 > On clicking that, it pops up a screen with facebook gmail,etc..
 >
 > My doubt is that is there any way to remove that option from that
 > menu.
 >
 > or is there any callback call when some intent is launched from the
 > application..
 >
 >
 >
 >
 > --
 > You received this message because you are subscribed to the Google
 > Groups "Android Developers" group.
 > To post to this group, send email to
 > android-developers@googlegroups.com
 > To unsubscribe from this group, 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 unsu

Re: [android-developers] Handling Bitmap Out of Memory Error

2012-07-16 Thread Latimerius
On Mon, Jul 16, 2012 at 2:23 PM, B.Arunkumar
 wrote:
> My question is even though we have a try catch on Bitmap.createBitmap
> it is still crashing. Why is the catch block not working?

I believe that would be because you're catching Exception but
OutOfMemoryError, which IIRC is not an Exception subclass, is being
thrown.

> And how do
> we handle the exception without crashing on Motorola Droid.

I usually catch OutOfMemoryError directly in a situation like that.
You could also catch Throwable but that would seem way too overbroad
to me.

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


Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Latimerius
On Mon, Jul 16, 2012 at 3:08 PM, Kristopher Micinski
 wrote:
> You have it the other way around, I think.

Possibly...

OP, care to give an explanation that we can understand? :-)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Handler.sendEmptyMessageDelayed() unreliable on some versions of OS?

2012-07-16 Thread mapeters
Thanks Dianne - I realized it had to be a cpu sleep issue about five 
minutes after I posted the question.

Mark Peters

On Saturday, July 14, 2012 3:54:18 PM UTC-7, Dianne Hackborn wrote:
>
> Note that these times are *uptime*.  If the screen is off, and nobody is 
> holding a wakelock, then the CPU will go to sleep, and uptime will stop 
> counting until it wakes up again.
>
> On Fri, Jul 13, 2012 at 9:24 AM, mapeters wrote:
>
>> I have a thread (guts implemented as a subclass of Runnable) whose job is 
>> to perform an operation on demand from other threads or automatically every 
>> two minutes if no other thread invokes the operation. The run() method of 
>> this Runnable calls Looper.prepare(), creates a Handler object in a member 
>> variable, uses that to call sendEmptyMessageDelayed(1, 3000), then calls 
>> Looper.loop().
>>
>> Other threads use a method in this thread's public API to invoke its 
>> operation. That method just calls the handler's sendEmptyMessage(0) method 
>> to invoke it. When the handler's handleMessage(Message) method is called, 
>> it acquires a lock (ReentrantLock), calls the handler's 
>> removeCallbacksAndMessages(null) method and performs its operation (within 
>> a try/catch block). The finally section of that block calls the handler's 
>> sendEmptyMessageDelayed(1, 12) method then releases the lock.
>>
>> This works fine on every device I have tested it on, and by everything I 
>> know, it is a valid way to do this that ought to work on every version of 
>> Android OS. Recently, however, somebody claimed it wasn't running every two 
>> minutes as it should, and gave me the log file it produces to prove it 
>> (which it does). That log shows that sendEmptyMessageDelayed(1, 12) was 
>> called, and then 11 minutes later, the handleMessage(Message) method was 
>> called. I know this invocation of handleMessage() was in response to that 
>> sendEmptyMessageDelayed(1, 12) call because Message.what was 1 (a value 
>> used only by the sendEmptyMessageDelayed() call).
>>
>> How is this possible? I could understand the timing being off by a few 
>> seconds, but 11 minutes? In subsequent attempts to reproduce this, I have 
>> seen that timing being off by 45 minutes and more. This problem has been 
>> observed on an HTC One X running Android 4.0.3 and a Samsung Galaxy SII 
>> running OS 2.3.6.
>>
>> Has anybody else seen this issue? Does anybody have a suggestion for what 
>> might be causing this? My current position is that this is an OS bug, but I 
>> am loathe to just accept that and call it a day. BTW - just for kicks, I 
>> temporarily re-implemented this using a Timer object instead, and observed 
>> exactly the same problem (using Handler is a better solution anyway).
>>
>> Thanks,
>>
>> Mark Peters
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Jelly Bean Crash with Bitmap Recycle "Sorry, an error has occurred: bitmap is recycled"

2012-07-16 Thread Streets Of Boston
The code below would fix an issue where a bitmap would have been recycled 
twice.
This would not fix the issue where a bitmap would have been recycled where 
it should have never been recycled at all.

BTW: the boolean expression (bitmap1 != bitmap2) or (bitmap1 == bitmap2) is 
very fast. It is just comparing two 32-bit values. 

On Monday, July 16, 2012 6:16:17 AM UTC-4, Fran wrote:
>
> I have had the same problem with some devices, but I did not study the 
> case in deep, just applied this workaround directly: 
>
> if ( ! oldBitmap.isRecycled()) 
> oldBitmap.recycle(); 
>
> It may be faster than comparing one bitmap to another, but to be honest 
> I did not try the other method. 
>
> Regards, 
>
>
> On 13/07/12 15:42, Craigo wrote: 
> > Hi Google, 
> > 
> > My app that has been running for over 2 years without an update, finally 
> > broke with Jelly Bean.  The error: "Sorry, an error has occurred: bitmap 
> is 
> > recycled". 
> > 
> > The problem was with calling recycle on a bitmap: 
> > 
> > Bitmap bitmapOld = bitmap; 
> > bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, false); 
> > bitmapOld.recycle(); 
> > 
> > Note: I never referenced bitmapOld again. 
> > 
> > The fix was easy, I just don't recycle any more.  However, it seems odd 
> > that this would have broken.  Maybe creating the scaled bitmap shares 
> > memory with the unscaled bitmap? 
> > 
> > Anyway, hopefully this information is useful to someone. 
> > 
> > Cheers, and keep up the excellent work! 
> > 
>
>
>

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

2012-07-16 Thread BearTi
Hi,

I´ve a little problem with my widgets.
I change the e.g. background color over remoteviews. 
Now every time I rotate my phone to landscape mode, the design (background 
color) is changes to the default value specified in the config file.

How can handle this?

thanks

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

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Bunty syed
Sorry if i presented the content wrong way.
Let me put this way..

If I open a webview in my app using webview android widget that means
control is still in my application.
Now if in the webview, some link is long pressed then android will pop up a
context menu with some options to share.
I want to block that so that any data within my app control wont be shared
via mail,msg,facebook,etc..

On 16 July 2012 18:38, Kristopher Micinski  wrote:

> You have it the other way around, I think.  I think he wants to
> disable a "sharing button."  Not disable the app from "catching" a
> shared thing.
>
> If it's the second, then yes, it's perhaps interesting, but it sounds,
> after the back and forth we've had, that it's much more likely a
> confused and misguided attempt at the first instead...
>
> kris
>
> On Mon, Jul 16, 2012 at 9:01 AM, Latimerius 
> wrote:
> > The way I understand the OP's description, the problem is that
> > whatever is in Manifest is static.  Whereas he wants to decide
> > dynamically (based on input from a server) whether his app handles the
> > intent or not.  If sharing is on he wants his app to appear in the
> > chooser, if it's not it should be left out from the chooser.
> >
> > At least that's how I understand it...
> >
> > On Mon, Jul 16, 2012 at 1:27 PM, Kristopher Micinski
> >  wrote:
> >> I'm not sure you understand... You have to explicitly implement the
> >> share intent anyway...
> >>
> >>
> http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
> >>
> >> So it's not going to randomly "pop up" in your app, that's impossible,
> >> unless you *put* it there!
> >>
> >> kris
> >>
> >> On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed 
> wrote:
> >>> Thanks Kris.
> >>>
> >>> I will tell the scenario I am working on.
> >>>
> >>> Actually my app is driven by server defined policy.
> >>>
> >>> The application fetches the policy from the server & then act
> accordingly.
> >>> There is one policy for data sharing.
> >>> If data sharing is allowed then no problem.But if the data sharing is
> not
> >>> allowed, application should be able to block the data sharing options
> like
> >>> sharing Via item in the system generated context menu.
> >>>
> >>>
> >>>
> >>> On 16 July 2012 16:22, Kristopher Micinski 
> wrote:
> 
>  Is that a question?  If so, the answer is yes, if you don't specify an
>  intent filter for that routine, then the system won't offer to have
>  your app pop up.  If it is, that probably means that you're putting
>  too much stuff in your manifest, so you should post it so people can
>  inspect it.
> 
>  As I said before, if you're worried about people actually getting at
>  the contents of the stuff in your app, then you shouldn't simply count
>  on this, you should also use some form of encryption 
> 
>  kris
> 
>  On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed 
>  wrote:
>  > Tat means in the pop up nothing will be shown after clicking share
> via
>  > item...
>  >
>  >
>  > On 16 July 2012 15:02, Kristopher Micinski 
>  > wrote:
>  >>
>  >> The system will only "share" from your app if you declare it in the
>  >> manifest. In reality, however, you can't hide the data from the
> user
>  >> without
>  >> encryption...
>  >>
>  >> On Jul 16, 2012 5:12 AM, "Bunty syed" 
> wrote:
>  >>>
>  >>> Thanks.  I want to do it only for my app.
>  >>>
>  >>> But I did not understand what  filter r u talking about & will it
>  >>> affect
>  >>> the system generated menu...
>  >>>
>  >>> On 16 July 2012 13:49, Kristopher Micinski <
> krismicin...@gmail.com>
>  >>> wrote:
>  
>   For your application or anyone's app?  For your app, don't
> implement
>   the
>   filter, for anyone's app, this will be a lot trickier
>  
>   On Jul 16, 2012 4:11 AM, "Bunty syed" 
> wrote:
>  >
>  > Hi,
>  >
>  > In android, on long clicking some link or text, System
> generates a
>  > menu
>  > with some share via option.
>  > On clicking that, it pops up a screen with facebook gmail,etc..
>  >
>  > My doubt is that is there any way to remove that option from
> that
>  > menu.
>  >
>  > or is there any callback call when some intent is launched from
> the
>  > application..
>  >
>  >
>  >
>  >
>  > --
>  > You received this message because you are subscribed to the
> Google
>  > Groups "Android Developers" group.
>  > To post to this group, send email to
>  > android-developers@googlegroups.com
>  > To unsubscribe from this group, send email to
>  > android-developers+unsubscr...@googlegroups.com
>  > For more options, visit this group at
>  > http://groups.google.com/group/android-develo

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Kristopher Micinski
On Mon, Jul 16, 2012 at 9:40 AM, Bunty syed  wrote:
> Sorry if i presented the content wrong way.
> Let me put this way..
>
> If I open a webview in my app using webview android widget that means
> control is still in my application.
> Now if in the webview, some link is long pressed then android will pop up a
> context menu with some options to share.
> I want to block that so that any data within my app control wont be shared
> via mail,msg,facebook,etc..

Really?  This is the behavior?  I don't remember that... Why don't you
just make it so those links aren't clickable in the HTML then?

kris

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


Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Latimerius
On Mon, Jul 16, 2012 at 3:43 PM, Kristopher Micinski
 wrote:
> On Mon, Jul 16, 2012 at 9:40 AM, Bunty syed  wrote:
>> Sorry if i presented the content wrong way.
>> Let me put this way..
>>
>> If I open a webview in my app using webview android widget that means
>> control is still in my application.
>> Now if in the webview, some link is long pressed then android will pop up a
>> context menu with some options to share.
>> I want to block that so that any data within my app control wont be shared
>> via mail,msg,facebook,etc..
>
> Really?  This is the behavior?  I don't remember that... Why don't you
> just make it so those links aren't clickable in the HTML then?

I have next to none experience with WebView but I think it might make
sense to check what could be done in its OnLongClickListener...

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


Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Kristopher Micinski
nah, links won't get rerouted through that.

kris

On Mon, Jul 16, 2012 at 9:53 AM, Latimerius  wrote:
> On Mon, Jul 16, 2012 at 3:43 PM, Kristopher Micinski
>  wrote:
>> On Mon, Jul 16, 2012 at 9:40 AM, Bunty syed  wrote:
>>> Sorry if i presented the content wrong way.
>>> Let me put this way..
>>>
>>> If I open a webview in my app using webview android widget that means
>>> control is still in my application.
>>> Now if in the webview, some link is long pressed then android will pop up a
>>> context menu with some options to share.
>>> I want to block that so that any data within my app control wont be shared
>>> via mail,msg,facebook,etc..
>>
>> Really?  This is the behavior?  I don't remember that... Why don't you
>> just make it so those links aren't clickable in the HTML then?
>
> I have next to none experience with WebView but I think it might make
> sense to check what could be done in its OnLongClickListener...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Jelly Bean and Strict Mode

2012-07-16 Thread Ievgenii Nazaruk
Moving StrictMode configuration to activities is not an acceptable 
solutions. As you generally don't know which activity might start first, 
and adding same code (even only one function call) to each activity is not 
always possible. Even more, you'd need to enable custom StrictMode 
configuration in services, receivers and even content providers.

>From what I see this is a bug introduced in JB. According to documentation 
this should work as you first described. 

The bug itself is introduced in ActivityThread file, in 
handleBindApplication() function. Basically here is what happens:

final StrictMode.ThreadPolicy savedPolicy = 
StrictMode.allowThreadDiskWrites();
try {
// If the app is being launched for full backup or restore, 
bring it up in
// a restricted environment with the base application class.
Application app = 
data.info.makeApplication(data.restrictedBackupMode, null);
mInitialApplication = app;

 //...lots of other code  
} finally {
//restore StrictMode configuration that happened before 
application's onCreate()
StrictMode.setThreadPolicy(savedPolicy);
}

Which effectively discards any changes made from Application's onCreate(). 
Here is the quick workaround for the issue and should be called from 
Application's onCreate():

   private static void enableStrictMode() {
doEnableStrictMode();
new android.os.Handler().post(new Runnable() {
@Override
public void run() {
try {
doEnableStrictMode();
} catch (Throwable ex) {
Log.d(TAG, "Failed to enable StrictMode.", ex);
}
}
});
}

This seems to fix issue by first enabling your StrictMode configuration by 
the end of onCreate(), and then re-enabling it sometimes after onCreate() 
returns. There is no guarantee when exactly StrictMode configuration is 
restored. And theoretically this might happen after some activity or 
service has already been started. This could probably be mitigated via 
Handler's sendMessageAtFrontOfQueue().

On Sunday, July 15, 2012 7:41:04 PM UTC+3, b0b wrote:
>
> Ok found the cause of StrictMode.setThreadPolicy() not working.
>
> I was making this call in the onCreate() of a subclass of the Application 
> class. This worked prior to Jelly Bean.
>
> Now in JB, it must be called after an Activity's onCreate() to take 
> effect. 
>
> Looks like the default StrictMode ThreadPolicy initialization done by the 
> framework is not done the same way in JB than prior versions. 
>
>
>

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

2012-07-16 Thread Károly Holczhauser
Hi there !

 I'm writing an application where I have to send a content from A device to
B. After the content has been successfully transferred I have to delete it
from the 'A' device. I had already done some Google search work, but I
didn't find any solution. Can you help me please, how can I detect the
transfer has completed event and send back a kind of "OK" message ?

 Thank you so much, Cheers,
Karoly

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

2012-07-16 Thread Ericsen Cioffi
Matthew, I know  I can create Android library projects, but I want to
create a .jar library and don´t share library source code and resources.


On Thu, Jul 12, 2012 at 9:08 PM, Matthew Whitmer
wrote:

> You can create an Android library project which contains both resources
> and code.  They have been improving this capability with each update it
> seems.  To see what you can currently do with a library project check out
> the appropriate section on this page:
> http://developer.android.com/tools/projects/index.html
>
>
>
> On Thursday, July 12, 2012 4:31:43 PM UTC-7, Ericsen wrote:
>>
>> According to this 
>> postwe
>>  cannot distribute an Android library and its resources as a single jar
>> file because of "The nature of Android resources, with their compiled IDs
>> ...". Are there any plans to allow 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
>

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

2012-07-16 Thread Cythes

So in the end what I am trying to do is illogical and cant be done some out 
of the blue way with out building a custom ROM 
It has to be an app... Which is a shame since I am so close to figuring it 
out. The service runs fine... Maybe just maybe having it call the camera 
button press if the volume is pushed down for longer then X amount of time.

What can I say I'm stubborn. 
On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy) 
wrote:
>
> On Sat, Jul 14, 2012 at 5:03 PM, Cythes  wrote: 
> > So if I take it back to the regular dispatchkeyevent, it should fix 
> it 
> > or do I need to find something to call it to? IN which case would be my 
> main 
> > activity. 
>
> Simply have your activity handle the key event itself, and delete your 
> service and your boot receiver. Having a service running all of the 
> time is something users generally dislike, and the service is not 
> helping you, since the activity is perfectly capable of handling your 
> current business logic with respect to the key event. 
>
> If you are somehow thinking that you will have something "in the 
> background" that can respond to key events like this, that does not 
> work. A couple of key events will get broadcast if the foreground 
> activity does not consume the event (e.g., ACTION_CAMERA_BUTTON). 
> Otherwise, key events are for the use of the foreground activity and 
> the OS. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.8 Available! 
>

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

Re: [android-developers] Re: Android library as a single jar file

2012-07-16 Thread Kristopher Micinski
So, you want to create a library, that allows the user to use code,
that you don't include.

So then... I ask... where is the code...

It's not that there is no way for this to make sense, you could
imagine putting in RPC stubs to a remote service (on the device a la
AIDL or via internet...), but it *probably* doesn't make sense, as
you've worded it...

kris

On Mon, Jul 16, 2012 at 10:39 AM, Ericsen Cioffi  wrote:
> Matthew, I know  I can create Android library projects, but I want to create
> a .jar library and don´t share library source code and resources.
>
>
> On Thu, Jul 12, 2012 at 9:08 PM, Matthew Whitmer 
> wrote:
>>
>> You can create an Android library project which contains both resources
>> and code.  They have been improving this capability with each update it
>> seems.  To see what you can currently do with a library project check out
>> the appropriate section on this page:
>> http://developer.android.com/tools/projects/index.html
>>
>>
>>
>> On Thursday, July 12, 2012 4:31:43 PM UTC-7, Ericsen wrote:
>>>
>>> According to this post we cannot distribute an Android library and its
>>> resources as a single jar file because of "The nature of Android resources,
>>> with their compiled IDs ...". Are there any plans to allow 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
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] DialogFragment - show soft keyboard upon creation

2012-07-16 Thread Simon Giddings
I have a simple dialog built with the compatibility libraries 
DialogFragment.
It holds only 

   1. EditText
   2. 2 buttons

When the dialog is shown, the edit text control has the focus.
At this point, I want to open the soft keyboard automatically.

Here is what I am doing within the onCreateView method :
EditText et;
et = (EditText)v.findViewById(R.id.txtAddress);
Activity act = getActivity();
if(act != null)
{
InputMethodManager imm = 
(InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE);
if(imm != null)
imm.showSoftInput(et, InputMethodManager.SHOW_FORCED);
}

Even though I get to the showSoftInput step with no problem, the keyboard 
is still not displayed.

So, how can I correctly get the soft keyboard to be shown ?

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

2012-07-16 Thread Justin Anderson
>
> Keep in mind I am on my live phone so I DONT have logcat.
>
This makes no sense... I use my "live" phone for development and it isn't
rooted... I have logcat.

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


On Mon, Jul 16, 2012 at 8:43 AM, Cythes  wrote:

>
> So in the end what I am trying to do is illogical and cant be done some
> out of the blue way with out building a custom ROM
> It has to be an app... Which is a shame since I am so close to figuring it
> out. The service runs fine... Maybe just maybe having it call the camera
> button press if the volume is pushed down for longer then X amount of time.
>
> What can I say I'm stubborn.
>
> On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy)
> wrote:
>>
>> On Sat, Jul 14, 2012 at 5:03 PM, Cythes  wrote:
>> > So if I take it back to the regular dispatchkeyevent, it should fix
>> it
>> > or do I need to find something to call it to? IN which case would be my
>> main
>> > activity.
>>
>> Simply have your activity handle the key event itself, and delete your
>> service and your boot receiver. Having a service running all of the
>> time is something users generally dislike, and the service is not
>> helping you, since the activity is perfectly capable of handling your
>> current business logic with respect to the key event.
>>
>> If you are somehow thinking that you will have something "in the
>> background" that can respond to key events like this, that does not
>> work. A couple of key events will get broadcast if the foreground
>> activity does not consume the event (e.g., ACTION_CAMERA_BUTTON).
>> Otherwise, key events are for the use of the foreground activity and
>> the OS.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 3.8 Available!
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] NFC game

2012-07-16 Thread Nobu Games


> event=MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=286.0, y[0]=322.0, 
> toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, 
> edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1303299, 
> downTime=1303299, deviceId=0, source=0x1002 }
>
> and NFChunterexception:HTTP :404 
>
> so plz let me knw how can i solve this problem, 
>

Unfortunately we didn't develop psychic powers yet. But rest assured that 
we are going to help you as soon as we can read your mind and your 
development PC's hard drive. 

For the time being: the only error message I can see is "NFChunterexception" 
which looks like a custom exception class you must have created. And 
there's an HTTP 404 error code, which means: resource not found. It puzzles 
me that you do not understand what you are doing there with your own code.

So let me rephrase your problem:* Somewhere in your code you are trying to 
access a web service / web page / online resource that does not exist (404 
error)
**
*Oh before I forget:*

*Technical issues are best solved by looking closely at the error message. 
In the error log (or in Android terms log cat) you'll find several lines of 
error message with funny numbers and class names in it. It's all in red and 
stuff. Really weird. That's the *exception stack trace*. In most of all 
cases that exception stack trace spoils the fun because it is so good at 
explaining a problem to you that it is virtually unnecessary to go to 
forums and ask other people what the problem is.

But if you're kind of lost it is ok to let other people look at that stack 
trace and the lines of your code that caused the exception. If you do that, 
we might be able to help you with your problem (even though this group is 
not the right place for asking questions unrelated to the Android SDK).*
*

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

Re: [android-developers] NFC game

2012-07-16 Thread TreKing
On Mon, Jul 16, 2012 at 4:24 AM, iconapp 2010  wrote:

> In that after clicking nfc tag i need to display monster for tapping but,
> in my application if i click on that tag it shows following error
>
> event=MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=286.0, y[0]=322.0,
> toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0,
> edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1303299,
> downTime=1303299, deviceId=0, source=0x1002 }
>
> and NFChunterexception:HTTP :404
>

There is probably more to your error than that. Paste the relevant portion
of the LogCat.


> so plz let me knw how can i solve this problem,
>

You've still not clearly defined what this problem is.
For the third time: http://www.catb.org/~esr/faqs/smart-questions.html
Seriously, read it. Then frame your question in a way that is clear, easy
to understand, and provides enough information for those taking their time
out to try to help you.

Also, the word is spelled "please".

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Make SlidingDrawer's content always visible?

2012-07-16 Thread Justin Anderson
So, you are using a sliding drawer and you never want it to collapse?

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


On Mon, Jul 16, 2012 at 2:56 AM, user123  wrote:

> Hi golf oo, your answer is empty.
>
>
> On Sunday, July 15, 2012 5:02:25 PM UTC+2, user123 wrote:
>>
>> I'm using android:bottomOffset to make the drawer stick out 100dip from
>> the bottom. That works fine, but my content is not visible. It's only
>> visible when I touch the drawer. How can I make that its always visible
>> (the 100dip show the content)?
>>
>> I first thought it's a visibility issue, because the visibility of the
>> content is set to GONE in onFinishInflate(), prepareC**ontent(),
>> closeDrawer()... copied the SlidingDrawer and removed these lines,
>> didn't solve it. It seems that it is a position issue, currently I'm
>> playing with the numbers but still don't find how to make the view appear
>> where it should be... and don't have more time for this... any help is
>> greatly appreciated.
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-07-16 Thread TreKing
On Mon, Jul 16, 2012 at 1:48 AM, elirev4  wrote:

> I was already looking for the answer there, but there is nothing...


Nothing? Not even a link that says "Registration or Account Issues"?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] session mangement

2012-07-16 Thread Justin Anderson
>
> how to mange session..plz tell m.
>
Please learn how to spell "please"... And then ask your question somewhere
else...

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


On Mon, Jul 16, 2012 at 2:33 AM, laxman k  wrote:

> how to mange session..plz tell m.

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

[android-developers] Video Processing with Bluetooth

2012-07-16 Thread mkerim


The application I am currently developing processes each frames using a 
native code and it should record the video as well. I tried SDK for this 
purpose but certain restrictions didn't allow me to do so, so I switched to 
NDK for a video recording code piece.

Apparently, my algorithm seriously uses CPU, up to %70 percent in the worst 
case. Before I actually start working on a video recorder, I wanted to try 
the following approach.

I will process the preview frames using an android phone and send it to 
another phone (which uses same application and same model) for recording. 
My questions are:

1.Should I try WiFi instead of Bluetooth? I am developing the application 
for API 8 so I don't have WiFi-Direct, therefore I should do some socket 
programming, which would possibly complicate things a bit for me since 
Bluetooth can easily be set up using SDK.

2- Will I be available to record the frames as a video at the receiving 
end? I will receive each frame with certain metadata embedded to it and 
should record them using the other phone. I doubt I will be able to do it 
using SDK, so NDK along with ffmpeg seems to be the best choice? Any 
suggestions related to this question will be more than welcome.

3-Here comes the best part. I am recording the video with the lowest 
resolution that,after compressed, takes no more than 14mb space for a 10 
minute long video. I have to reach the raw frames to send it to other end, 
encode and compress it. Any ideas related to possible flooding of 
Bluetooth/Wi-Fi because of big-sized raw frames?

Any other approaches and answers will be 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] Keeping it fresh, back to service...

2012-07-16 Thread Cythes
I never really figured it out how to get it to work on my phone. Something 
I will be looking into after I try this idea out.


On Monday, July 16, 2012 11:40:26 AM UTC-4, MagouyaWare wrote:
>
> Keep in mind I am on my live phone so I DONT have logcat.
>>
> This makes no sense... I use my "live" phone for development and it isn't 
> rooted... I have logcat.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Mon, Jul 16, 2012 at 8:43 AM, Cythes  wrote:
>
>>
>> So in the end what I am trying to do is illogical and cant be done some 
>> out of the blue way with out building a custom ROM 
>> It has to be an app... Which is a shame since I am so close to figuring 
>> it out. The service runs fine... Maybe just maybe having it call the camera 
>> button press if the volume is pushed down for longer then X amount of time.
>>
>> What can I say I'm stubborn. 
>>
>> On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy) 
>> wrote:
>>>
>>> On Sat, Jul 14, 2012 at 5:03 PM, Cythes  wrote: 
>>> > So if I take it back to the regular dispatchkeyevent, it should fix 
>>> it 
>>> > or do I need to find something to call it to? IN which case would be 
>>> my main 
>>> > activity. 
>>>
>>> Simply have your activity handle the key event itself, and delete your 
>>> service and your boot receiver. Having a service running all of the 
>>> time is something users generally dislike, and the service is not 
>>> helping you, since the activity is perfectly capable of handling your 
>>> current business logic with respect to the key event. 
>>>
>>> If you are somehow thinking that you will have something "in the 
>>> background" that can respond to key events like this, that does not 
>>> work. A couple of key events will get broadcast if the foreground 
>>> activity does not consume the event (e.g., ACTION_CAMERA_BUTTON). 
>>> Otherwise, key events are for the use of the foreground activity and 
>>> the OS. 
>>>
>>> -- 
>>> Mark Murphy (a Commons Guy) 
>>> http://commonsware.com | http://github.com/commonsguy 
>>> http://commonsware.com/blog | http://twitter.com/commonsguy 
>>>
>>> _The Busy Coder's Guide to Android Development_ Version 3.8 Available! 
>>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Re: [android-developers] Keeping it fresh, back to service...

2012-07-16 Thread Kostya Vasilyev
In Eclipse, Window | Open Perspective | DDMS (Debug works too, IIRC).

If you don't see the logcat panel, Window | Show Panel | Logcat.

You can also run "adb logcat" from your operating system's command window.
I think it's actually more convenient (as this keeps the logcat in an
entirely separate window).

-- K

2012/7/16 Cythes 

> I never really figured it out how to get it to work on my phone. Something
> I will be looking into after I try this idea out.
>
>
> On Monday, July 16, 2012 11:40:26 AM UTC-4, MagouyaWare wrote:
>>
>> Keep in mind I am on my live phone so I DONT have logcat.
>>>
>> This makes no sense... I use my "live" phone for development and it isn't
>> rooted... I have logcat.
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/**magouyaware
>>
>>
>> On Mon, Jul 16, 2012 at 8:43 AM, Cythes  wrote:
>>
>>>
>>> So in the end what I am trying to do is illogical and cant be done some
>>> out of the blue way with out building a custom ROM
>>> It has to be an app... Which is a shame since I am so close to figuring
>>> it out. The service runs fine... Maybe just maybe having it call the camera
>>> button press if the volume is pushed down for longer then X amount of time.
>>>
>>> What can I say I'm stubborn.
>>>
>>> On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy)
>>> wrote:

 On Sat, Jul 14, 2012 at 5:03 PM, Cythes 
 wrote:
 > So if I take it back to the regular dispatchkeyevent, it should fix
 it
 > or do I need to find something to call it to? IN which case would be
 my main
 > activity.

 Simply have your activity handle the key event itself, and delete your
 service and your boot receiver. Having a service running all of the
 time is something users generally dislike, and the service is not
 helping you, since the activity is perfectly capable of handling your
 current business logic with respect to the key event.

 If you are somehow thinking that you will have something "in the
 background" that can respond to key events like this, that does not
 work. A couple of key events will get broadcast if the foreground
 activity does not consume the event (e.g., ACTION_CAMERA_BUTTON).
 Otherwise, key events are for the use of the foreground activity and
 the OS.

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

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

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

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

2012-07-16 Thread Justin Anderson
>
> Search this group, this question is asked like every week. It really
> doesn't matter. Get the fanciest phone you can afford.
>

Agreed, but I also think it may be worthwhile to test your app on some of
the less expensive devices as well... Since they often have less ram and a
slower cpu

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


On Mon, Jul 16, 2012 at 12:35 AM, TreKing  wrote:

> Search this group, this question is asked like every week. It really
> doesn't matter. Get the fanciest phone you can afford.

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

2012-07-16 Thread Kostya Vasilyev
Have you tried "et.requestFocus()" ?

2012/7/16 Simon Giddings 

> I have a simple dialog built with the compatibility libraries
> DialogFragment.
> It holds only
>
>1. EditText
>2. 2 buttons
>
> When the dialog is shown, the edit text control has the focus.
> At this point, I want to open the soft keyboard automatically.
>
> Here is what I am doing within the onCreateView method :
> EditText et;
> et = (EditText)v.findViewById(R.id.txtAddress);
> Activity act = getActivity();
> if(act != null)
> {
> InputMethodManager imm =
> (InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE);
> if(imm != null)
> imm.showSoftInput(et, InputMethodManager.SHOW_FORCED);
> }
>
> Even though I get to the showSoftInput step with no problem, the keyboard
> is still not displayed.
>
> So, how can I correctly get the soft keyboard to be shown ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] LaunchMode & ConfigChange HELP!

2012-07-16 Thread Justin Anderson
>
> I was trying to make a litlle game but i cant figure how to properly make
> my game to not restart each time the keyboard get in/out or when the screen
> rotate.
>
Your app restarts when the onscreen keyboard shows up?  That doesn't really
make sense... As far as screen orientation, that is the default behavior.

For the screen i locked is orientation to landscape.
>
That is one way to handle it... The other way to handle it is to implement
onSaveInstanceState() and onRestoreInstanceState()

i tried to add lauchmode or configchange in the manifest but both not seems
> to work.
>
Care to provide a little more info here?  What exactly have you tried?  And
what exactly do you mean by "not seems to work"?

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


On Sun, Jul 15, 2012 at 7:26 PM, XiNoX  wrote:

> Hi, am new here and on android app .I was trying to make a litlle game but
> i cant figure how to properly make my game to not restart each time the
> keyboard get in/out or when the screen rotate. For the screen i locked is
> orientation to landscape.
> i tried to add lauchmode or configchange in the manifest but both not
> seems to work.
> Sorry for my bad english.
> can anybody help me ?!
>
> thanks
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] License of Task API for Android

2012-07-16 Thread TreKing
On Mon, Jul 16, 2012 at 6:16 AM, Michael Leung wrote:

>  Does any one know whether Task API(
> https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android )
> use other parties libraries? Do I know put their licenses in my application?
>

This is off-topic for this list. Read their docs and terms of service.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] How to block Sharing data via share intent

2012-07-16 Thread Nobu Games
To be honest, I also do not remember that the standard Android SDK WebView 
is capable of creating social sharing popups as context menus. Especially 
on long clicks. My web views don't do anything on long clicks by default. 
If I'm not totally mistaken this would be a feature you have to explicitly 
add to your WebView by calling:

registerForContextMenu(myWebView);
>

I think the OP should look at the Activity which contains the WebView and 
search for registerForContextMenu. By not executing that line of code, the 
popup would be gone.


On Monday, July 16, 2012 8:43:45 AM UTC-5, Kristopher Micinski wrote:
>
> On Mon, Jul 16, 2012 at 9:40 AM, Bunty syed <...@gmail.com> wrote: 
> > Sorry if i presented the content wrong way. 
> > Let me put this way.. 
> > 
> > If I open a webview in my app using webview android widget that means 
> > control is still in my application. 
> > Now if in the webview, some link is long pressed then android will pop 
> up a 
> > context menu with some options to share. 
> > I want to block that so that any data within my app control wont be 
> shared 
> > via mail,msg,facebook,etc.. 
>
> Really?  This is the behavior?  I don't remember that... Why don't you 
> just make it so those links aren't clickable in the HTML then? 
>
> 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] DialogFragment - show soft keyboard upon creation

2012-07-16 Thread Simon Giddings
Yes, I use this as well, but forgot to include it in the code I posted here.

On Monday, 16 July 2012 18:06:41 UTC+2, Kostya Vasilyev wrote:
>
> Have you tried "et.requestFocus()" ?
>
> 2012/7/16 Simon Giddings 
>
>> I have a simple dialog built with the compatibility libraries 
>> DialogFragment.
>> It holds only 
>>
>>1. EditText 
>>2. 2 buttons
>>
>> When the dialog is shown, the edit text control has the focus.
>> At this point, I want to open the soft keyboard automatically.
>>
>> Here is what I am doing within the onCreateView method :
>> EditText et;
>> et = (EditText)v.findViewById(R.id.txtAddress);
>> Activity act = getActivity();
>> if(act != null)
>> {
>> InputMethodManager imm = 
>> (InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE);
>> if(imm != null)
>> imm.showSoftInput(et, InputMethodManager.SHOW_FORCED);
>> }
>>
>> Even though I get to the showSoftInput step with no problem, the keyboard 
>> is still not displayed.
>>
>> So, how can I correctly get the soft keyboard to be shown ?
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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: search box - search in sqlite

2012-07-16 Thread Justin Anderson
http://catb.org/esr/faqs/smart-questions.html

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


On Sun, Jul 15, 2012 at 7:41 AM, Béla Kürthy  wrote:

>
>
> I don't know how can i display it on screen.
>>
>
>
>
> --
> bé
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Open preferences menu from andengine sprite touch

2012-07-16 Thread billb
I am creating a full-screen andengine based app.  
 
In the app there are some settings that the user can select, and I've used 
the PreferencesActivity available in android.
 
All of this works if the device has a physical menu button.  Since this 
button will be disappearing over time, I have added a ButtonSprite to my 
screen that I would like to open the preferences activity as if the menu 
button was pressed.  I am not using an action bar as this is a full screen 
app and do not want to forfeit any more screen real estate.
 
I have everything wired up so that I know when the button is touched, but 
am at a loss to determine what I should call to instantiate the preferences 
activity.
 
I am sure that this is a simple matter, however, the documentation and 
examples have not provided any clues, at least to me.
 
So, given that I know where to place the call to get the preferences 
activity displayed, what do I call to actually get this to happen?
 
Thanks in advance,
B.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] hwlp me why this Error is arriving ;( in the log cat...

2012-07-16 Thread Justin Anderson
>
> 07-15 14:39:43.311: I/Choreographer(643): Skipped 280 frames! The
> application may be doing too much work on its main thread.
>
This line isn't clear enough?


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


On Sun, Jul 15, 2012 at 3:47 AM, Sami Khan  wrote:

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

2012-07-16 Thread Latimerius
On Mon, Jul 16, 2012 at 6:34 PM, billb  wrote:
> So, given that I know where to place the call to get the preferences
> activity displayed, what do I call to actually get this to happen?

Try

yourMainActivity.startActivity (new Intent (yourMainActivity,
YourPrefsActivity.class));

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

2012-07-16 Thread Tor Norbye
Which distribution of Eclipse did you download? Make sure you have one that
includes the XML support, for example "Eclipse IDE for Java Developers".

Do you by any chance have the checkbox "Contact all update sites during
install to find required software" unchecked? I often uncheck it myself
since having it enabled makes update checks take much longer. But if you
have it disabled, and you enable it, I think it might be able to find WST
on its own.

-- Tor



On Fri, Jul 13, 2012 at 3:48 PM, marcelozep <
marcelopalmadenoro...@hotmail.com> wrote:

> Hi.
>
> I´m receiving this error while trying to install ADT Plugin for Eclipse
> Juno.
>
> Cannot complete the install because one or more required items could not
> be found.
>   Software being installed: Android Development Tools
> 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group
> 20.0.0.v201206242043-391819)
>   Missing requirement: Android Development Tools
> 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group
> 20.0.0.v201206242043-391819) requires 'org.eclipse.wst.sse.core 0.0.0' but
> it could not be found
>
> What should I 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

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

2012-07-16 Thread billb
Thank you!
 
I knew it was a beginner question, and well, that's me.
 
Thanks so much for breaking my log jam!
 
B.

~~~

Try 

yourMainActivity.startActivity (new Intent (yourMainActivity, 
YourPrefsActivity.class)); 

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

2012-07-16 Thread jt
In the Preferences window (Window -> Preferences), check the "Available 
Software Sites" under the Install/Update section. Make sure that 
"http://download.eclipse.org/releases/juno"; is listed as an available site. 
If it isn't add it, then try the install again. Eclipse will then be able 
to install the required stuff.

On Friday, July 13, 2012 6:48:46 PM UTC-4, marcelozep wrote:
>
> Hi.
>
> I´m receiving this error while trying to install ADT Plugin for Eclipse 
> Juno.
>
> Cannot complete the install because one or more required items could not 
> be found.
>   Software being installed: Android Development Tools 
> 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group 
> 20.0.0.v201206242043-391819)
>   Missing requirement: Android Development Tools 
> 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group 
> 20.0.0.v201206242043-391819) requires 'org.eclipse.wst.sse.core 0.0.0' but 
> it could not be found
>
> What should I 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

Re: [android-developers] Re: Please native 3G-324M videocall support!

2012-07-16 Thread Justin Anderson
>
> Please do it ... it is basic feature for a smart phone .. it is unbelievable 
> that it does not there in android and why there is so much delay in 
> implementing it
>
> This is not the place to request features for Android...

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


On Thu, Jul 12, 2012 at 5:25 AM, mihir mehta  wrote:

> Please do it ... it is basic feature for a smart phone .. it is
> unbelievable that it does not there in android and why there is so much
> delay in implementing it

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] TabHost not work in android 2.1 what's the reason have u a answer plz.

2012-07-16 Thread Justin Anderson
   1. Please learn to spell... "u" and "plz" are not proper spellings of
   "you" and "please"
   2. How do you expect anyone to help you when you have not given any
   information to allow for help?
   3. Read this, and then ask a question that will allow others to help
   you: http://catb.org/esr/faqs/smart-questions.html

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


On Fri, Jul 13, 2012 at 6:04 AM, androidlakrida wrote:

>
> My project is writing for the 2.1 version
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Please native 3G-324M videocall support!

2012-07-16 Thread Geofuzzy
If you are so interested in this protocol maybe you should implement it? 
 But like it was said before this is a feature request group, and there 
really is no feature request group unless you submit some code to gerrit.

On Thursday, July 12, 2012 7:25:36 AM UTC-4, mihir mehta wrote:
>
> Please do it ... it is basic feature for a smart phone .. it is unbelievable 
> that it does not there in android and why there is so much delay in 
> implementing it 
>
>
>
> On Thursday, April 5, 2012 8:55:49 PM UTC+5:30, roslogiac wrote:
>>
>> Hello, 
>> I'm struggling to find an android device supporting 3G-324M protocol 
>> for videocall. But, beside Samsung galaxy s/2, there is nothing 
>> around. 
>> It's a weird choice the one to do not support natively this protocol, 
>> because 3g videocall is very common around the globe, except USA. 
>> Since the world is not made by USA only, why not to implement this 
>> protocol widely used from europe to asia? 
>> Unless we have to pay respect to skype, there is no reason to trash 
>> the 3G-324M videocall. Skype needs internet coverage, an included data 
>> plan, and basically needs the internet access on the receiper side who 
>> has to be online... too many coincidences to make it an elegible 
>> choice of videocall. You need to agree before the videocall, e.g.: 
>> "hello, how are you? I''ve got internet coverage and I can pay for it 
>> for a while, are you on internet with your device? Can you login on 
>> skype? Are you logged in? Ok I'm videocalling!".. OMG, no 
>> way! 
>> With 3G-324M you can just videocall and that's it!!! So, plz implement 
>> this protocol natively in Android.
>
>

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

[android-developers] Re: Please native 3G-324M videocall support!

2012-07-16 Thread Geofuzzy
also video calling is fully implemented in Android thorugh Google Talk and 
Google+ it is one button press to start a video call (also Android is made 
in the USA so you have to expect that it leans heavily on US standards.)

On Thursday, July 12, 2012 7:25:36 AM UTC-4, mihir mehta wrote:
>
> Please do it ... it is basic feature for a smart phone .. it is unbelievable 
> that it does not there in android and why there is so much delay in 
> implementing it 
>
>
>
> On Thursday, April 5, 2012 8:55:49 PM UTC+5:30, roslogiac wrote:
>>
>> Hello, 
>> I'm struggling to find an android device supporting 3G-324M protocol 
>> for videocall. But, beside Samsung galaxy s/2, there is nothing 
>> around. 
>> It's a weird choice the one to do not support natively this protocol, 
>> because 3g videocall is very common around the globe, except USA. 
>> Since the world is not made by USA only, why not to implement this 
>> protocol widely used from europe to asia? 
>> Unless we have to pay respect to skype, there is no reason to trash 
>> the 3G-324M videocall. Skype needs internet coverage, an included data 
>> plan, and basically needs the internet access on the receiper side who 
>> has to be online... too many coincidences to make it an elegible 
>> choice of videocall. You need to agree before the videocall, e.g.: 
>> "hello, how are you? I''ve got internet coverage and I can pay for it 
>> for a while, are you on internet with your device? Can you login on 
>> skype? Are you logged in? Ok I'm videocalling!".. OMG, no 
>> way! 
>> With 3G-324M you can just videocall and that's it!!! So, plz implement 
>> this protocol natively in Android.
>
>

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

Re: [android-developers] DialogFragment - show soft keyboard upon creation

2012-07-16 Thread dnkoutso
Everything around the Android keyboard feels hacky. 

Try one of the following:

1) Set  in your XML in the edittext.
2) do a post such as et.post(new Runnable() { et.requestFocus() }} etc.
3) do a post again but your use own code in your original post.

Good luck.


On Monday, July 16, 2012 9:26:40 AM UTC-7, Simon Giddings wrote:
>
> Yes, I use this as well, but forgot to include it in the code I posted 
> here.
>
> On Monday, 16 July 2012 18:06:41 UTC+2, Kostya Vasilyev wrote:
>>
>> Have you tried "et.requestFocus()" ?
>>
>> 2012/7/16 Simon Giddings 
>>
>>> I have a simple dialog built with the compatibility libraries 
>>> DialogFragment.
>>> It holds only 
>>>
>>>1. EditText 
>>>2. 2 buttons
>>>
>>> When the dialog is shown, the edit text control has the focus.
>>> At this point, I want to open the soft keyboard automatically.
>>>
>>> Here is what I am doing within the onCreateView method :
>>> EditText et;
>>> et = (EditText)v.findViewById(R.id.txtAddress);
>>> Activity act = getActivity();
>>> if(act != null)
>>> {
>>> InputMethodManager imm = 
>>> (InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE);
>>> if(imm != null)
>>> imm.showSoftInput(et, InputMethodManager.SHOW_FORCED);
>>> }
>>>
>>> Even though I get to the showSoftInput step with no problem, the 
>>> keyboard is still not displayed.
>>>
>>> So, how can I correctly get the soft keyboard to be shown ?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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] How to prevent resizing and relayout the window when soft keyboard displaying

2012-07-16 Thread Justin Anderson
None of the options mentioned here work for you?
http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

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


On Thu, Jul 12, 2012 at 11:56 PM, dreamtale  wrote:

> I show an edit dialog in an activity, when the soft keyboard displaying,
> the window of the activity will be resized to too samll which looks awful. I
> don't want the window of the activity be resized and layout. I just want
> the keyboard can cover on the activity window and the dialog move to the
> top so that soft keyboard have room to show.
>
> I have tried to use *android:windowSoftInputMode="x"* in the
> manifest, but there are no one mode which fit my situation. I also found
> the similar 
> question,
> but it did't solve my problem.
>
> *EDIT:* I have tried setImeOptions and also getWindown().setFlags but it
> still did't worked, Any advice will be very appreciated
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-07-16 Thread Justin Anderson
Do any of these attributes help?  In particular I am thinking of the
stateVisible or stateAlwaysVisible options:
http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

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


On Mon, Jul 16, 2012 at 11:46 AM, dnkoutso  wrote:

> Everything around the Android keyboard feels hacky.
>
> Try one of the following:
>
> 1) Set  in your XML in the edittext.
> 2) do a post such as et.post(new Runnable() { et.requestFocus() }} etc.
> 3) do a post again but your use own code in your original post.
>
> Good luck.
>
>
> On Monday, July 16, 2012 9:26:40 AM UTC-7, Simon Giddings wrote:
>>
>> Yes, I use this as well, but forgot to include it in the code I posted
>> here.
>>
>> On Monday, 16 July 2012 18:06:41 UTC+2, Kostya Vasilyev wrote:
>>>
>>> Have you tried "et.requestFocus()" ?
>>>
>>> 2012/7/16 Simon Giddings
>>>
 I have a simple dialog built with the compatibility libraries
 DialogFragment.
 It holds only

1. EditText
2. 2 buttons

 When the dialog is shown, the edit text control has the focus.
 At this point, I want to open the soft keyboard automatically.

 Here is what I am doing within the onCreateView method :
 EditText et;
 et = (EditText)v.findViewById(R.id.**txtAddress);
 Activity act = getActivity();
 if(act != null)
 {
 InputMethodManager imm = (InputMethodManager)act.**
 getSystemService(Context.**INPUT_METHOD_SERVICE);
 if(imm != null)
 imm.showSoftInput(et, InputMethodManager.SHOW_**FORCED);
 }

 Even though I get to the showSoftInput step with no problem, the
 keyboard is still not displayed.

 So, how can I correctly get the soft keyboard to be shown ?

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

2012-07-16 Thread Justin Anderson
I'm assuming you are talking about an auth token?  If so, that is generally
created by the server, and would then be off-topic for this list.  Have you
tried doing a google search for implementing an auth token on a server?

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


On Thu, Jul 12, 2012 at 8:15 AM, Mario Bat  wrote:

> Hi, I have to make an app where i send my device token to a server. The
> server is a Push server that will push notifications to the mobile device
> later.
>
> My question is; What are tokens and how do you create them? Does the
> server create my token or who? I know that for the Facebook API Facebook
> makes the token for you. So does every token creation work like that?
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Add a progressbar to notification without a layout file for RemoteViews ?

2012-07-16 Thread Justin Anderson
Since you are using RemoteViews you don't have a choice but to define the
layout in XML.

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


On Sat, Jul 14, 2012 at 10:42 AM, firebreather  wrote:

>
> i've been trying to find out how to do a progressbar programmatically for
>> months. no help on stack overview, all the answers involve a layout file.
>> my game uses no layout files, in fact i deleted the folder. i tried
>> creating an xml file just to declair the bar, but android erases the file
>> on compilation, probobly because my app doesn't reference it.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Add a progressbar to notification without a layout file for RemoteViews ?

2012-07-16 Thread Justin Anderson
>
> i tried creating an xml file just to declair the bar, but android erases
> the file on compilation, probobly because my app doesn't reference it.
>
I find this very hard to believe... I have never had a file removed because
my app didn't reference it.  Think of how horrible the development
experience would be if you started working on a layout file but it wasn't
complete yet and you decided to compile... only to find your file deleted.

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


On Mon, Jul 16, 2012 at 11:54 AM, Justin Anderson wrote:

> Since you are using RemoteViews you don't have a choice but to define the
> layout in XML.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Sat, Jul 14, 2012 at 10:42 AM, firebreather <
> michaelirvingbr...@gmail.com> wrote:
>
>>
>> i've been trying to find out how to do a progressbar programmatically for
>>> months. no help on stack overview, all the answers involve a layout file.
>>> my game uses no layout files, in fact i deleted the folder. i tried
>>> creating an xml file just to declair the bar, but android erases the file
>>> on compilation, probobly because my app doesn't reference it.
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Bluetooth Mutual Authentication

2012-07-16 Thread RumblyFungus
Hi Guyz,

Has anyone worked on BT mutual authentication before on Android ? Also is 
there any API version in android that supports it ? Please let me know if 
there is any data I can find on above two questions.

Thanks

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

[android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-16 Thread Andy dev
Thanks Mark, your answer was perfect!

After playing around the solution that worked for me was to use the bool 
flags with the values-v16 directory and subclassing the service with with a 
MainRunningServicePreJellyBean class.
Although compiling didn't complain with using the same service class twice, 
the jelly bean version just didn't work (which was declared 2nd in the 
file) so I guess it found the first reference and just set it to disabled.

I agree on the documentation though. The SDK samples are for v16 and open 
source projects like talkback have a pre and post ice cream sandwich set of 
apps, so there wasn't any examples to go off.

Now if I could only find out the reason why since ice cream sandwich 
accessibility has caused some phones to start talking to them as soon as 
the accessibility service of my app is enabled even though talkback is off 
and I don't use any TTS in the app.

On Sunday, July 15, 2012 11:51:22 PM UTC+1, Andy dev wrote:
>
> I've got an app in the market which uses the accessibility service. For it 
> to work correctly in Jelly bean I need to add 
> the android.permission.BIND_ACCESSIBILITY_SERVICE permission to the service 
> declaration in the android manifest file.
>
> Doing this is fine and gets things working for jelly bean, but then going 
> back to my gingerbread Nexus One, it ends up crashing with the following 
> error:
>
> 07-15 22:15:56.090: E/ACRA(1168): Caused by: java.lang.SecurityException: Not 
> allowed to start service Intent { cmp=com.example/.MainRunningService (has 
> extras) } without permission android.permission.BIND_ACCESSIBILITY_SERVICE
>
> I can't think how to get around this. Any suggestions. I would have thought 
> it would have got silently ignored in older builds.
>
>

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

[android-developers] Re: Jelly Bean and Strict Mode

2012-07-16 Thread b0b

Thank you for your in-depth analysis. 

I've ended up with this, call in the Application derived class onCreate():

private  void setLaxStrictMode() {

if(Build.VERSION.SDK_INT < Build.VERSION_CODES.GINGERBREAD) return ;

if(Build.VERSION.SDK_INT <  Build.VERSION_CODES.JELLY_BEAN) {
StrictMode.setThreadPolicy(ThreadPolicy.LAX);
log.info("StrictMode: LAX");
} else {

new Handler().postAtFrontOfQueue(new Runnable() {
@Override
public void run() {
StrictMode.setThreadPolicy(ThreadPolicy.LAX);
log.info("StrictMode (JB): LAX");
}
});
}
}


Now the real question is if the change in handleBindApplication() was 
intended, or if it is a real bug. 

In any case it broke my app on JB, and got me a few expeditive 1-star 
comments on Google Play 

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

2012-07-16 Thread N4Spd
prepareAsync() now returns Permission Denied on a data source of a mp3
file stored on local sdcard.

it used to work fine and still works on 4.0.4.

app already has write to external storage permission.


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

2012-07-16 Thread Ted Hopp
I'm not clear on what needs to be declared in the manifest file for a 
library project. On the one hand, the documentation for setting up a 
library project in 
Eclipsesays:

A library project's manifest file must declare all of the shared components 
> that it includes, just as would a standard Android application.


On the other hand, the TicTacToeLib sample application doesn't declare its 
(single) activity, even though that activity is then used in the 
TicTacToeMain sample project. The sample project seems to be consistent 
with what it says later in the documentation:

In the manifest file of the application project, you must add declarations 
> of all components that the application will use that are imported from a 
> library project.


I've experimented with this with my own library project and it seems that 
the build process ignores any component declarations in the library 
manifest. The only thing that seems to be needed in the library is the 
 tag itself (with a package name attribute). No other tags seem 
to be required, including  or . The build process 
seems to work equally well and the resulting .apk files seem to be the same 
regardless of what activities (if any) are declared in the library manifest.

It would also seem a poorly designed build process to require declaring the 
same components in two different places. Is the documentation just wrong, 
or do we really need to declare components once in the library project and 
again in the main project? (Perhaps there's some future build functionality 
that this would support?) If the documentation is wrong, is the minimum 
declaration really just the  tag?

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

[android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-16 Thread Streets Of Boston
I'm just guessing here: What if you set thee  android:targetSdkVersion to a 
value less than 16? 

On Monday, July 16, 2012 2:43:47 PM UTC-4, Andy dev wrote:
>
> Thanks Mark, your answer was perfect!
>
> After playing around the solution that worked for me was to use the bool 
> flags with the values-v16 directory and subclassing the service with with a 
> MainRunningServicePreJellyBean class.
> Although compiling didn't complain with using the same service class 
> twice, the jelly bean version just didn't work (which was declared 2nd in 
> the file) so I guess it found the first reference and just set it to 
> disabled.
>
> I agree on the documentation though. The SDK samples are for v16 and open 
> source projects like talkback have a pre and post ice cream sandwich set of 
> apps, so there wasn't any examples to go off.
>
> Now if I could only find out the reason why since ice cream sandwich 
> accessibility has caused some phones to start talking to them as soon as 
> the accessibility service of my app is enabled even though talkback is off 
> and I don't use any TTS in the app.
>
> On Sunday, July 15, 2012 11:51:22 PM UTC+1, Andy dev wrote:
>>
>> I've got an app in the market which uses the accessibility service. For 
>> it to work correctly in Jelly bean I need to add 
>> the android.permission.BIND_ACCESSIBILITY_SERVICE permission to the service 
>> declaration in the android manifest file.
>>
>> Doing this is fine and gets things working for jelly bean, but then going 
>> back to my gingerbread Nexus One, it ends up crashing with the following 
>> error:
>>
>> 07-15 22:15:56.090: E/ACRA(1168): Caused by: java.lang.SecurityException: 
>> Not allowed to start service Intent { cmp=com.example/.MainRunningService 
>> (has extras) } without permission 
>> android.permission.BIND_ACCESSIBILITY_SERVICE
>>
>> I can't think how to get around this. Any suggestions. I would have thought 
>> it would have got silently ignored in older builds.
>>
>>

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

2012-07-16 Thread Nobu Games
Oh my... that's news to me. I leave the manifest file in my library 
projects alone, because you have to declare your activities in your app's 
manifest file anyway. I guess the documentation is simply mistaken about 
that. Or they are hinting at a future change and want to introduce the 
latest good practice approach in order to avoid that apps are going to 
break with the next SDK update.

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

[android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-16 Thread Andy dev
I think that would have been ok, but I wanted to use some new features from 
v16

On Monday, July 16, 2012 7:51:07 PM UTC+1, Streets Of Boston wrote:
>
> I'm just guessing here: What if you set thee  android:targetSdkVersion to 
> a value less than 16? 
>
> On Monday, July 16, 2012 2:43:47 PM UTC-4, Andy dev wrote:
>>
>> Thanks Mark, your answer was perfect!
>>
>> After playing around the solution that worked for me was to use the bool 
>> flags with the values-v16 directory and subclassing the service with with a 
>> MainRunningServicePreJellyBean class.
>> Although compiling didn't complain with using the same service class 
>> twice, the jelly bean version just didn't work (which was declared 2nd in 
>> the file) so I guess it found the first reference and just set it to 
>> disabled.
>>
>> I agree on the documentation though. The SDK samples are for v16 and open 
>> source projects like talkback have a pre and post ice cream sandwich set of 
>> apps, so there wasn't any examples to go off.
>>
>> Now if I could only find out the reason why since ice cream sandwich 
>> accessibility has caused some phones to start talking to them as soon as 
>> the accessibility service of my app is enabled even though talkback is off 
>> and I don't use any TTS in the app.
>>
>> On Sunday, July 15, 2012 11:51:22 PM UTC+1, Andy dev wrote:
>>>
>>> I've got an app in the market which uses the accessibility service. For 
>>> it to work correctly in Jelly bean I need to add 
>>> the android.permission.BIND_ACCESSIBILITY_SERVICE permission to the service 
>>> declaration in the android manifest file.
>>>
>>> Doing this is fine and gets things working for jelly bean, but then 
>>> going back to my gingerbread Nexus One, it ends up crashing with the 
>>> following error:
>>>
>>> 07-15 22:15:56.090: E/ACRA(1168): Caused by: java.lang.SecurityException: 
>>> Not allowed to start service Intent { cmp=com.example/.MainRunningService 
>>> (has extras) } without permission 
>>> android.permission.BIND_ACCESSIBILITY_SERVICE
>>>
>>> I can't think how to get around this. Any suggestions. I would have thought 
>>> it would have got silently ignored in older builds.
>>>
>>>

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

2012-07-16 Thread RichardC
In adt-dev 
https://groups.google.com/forum/?fromgroups#!forum/adt-dev 
there is a thread talking about Manifest merge
https://groups.google.com/forum/?fromgroups#!topic/adt-dev/FX-Zk3RCx-4 


On Monday, July 16, 2012 7:57:12 PM UTC+1, Nobu Games wrote:
>
> Oh my... that's news to me. I leave the manifest file in my library 
> projects alone, because you have to declare your activities in your app's 
> manifest file anyway. I guess the documentation is simply mistaken about 
> that. Or they are hinting at a future change and want to introduce the 
> latest good practice approach in order to avoid that apps are going to 
> break with the next SDK update.
>

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

2012-07-16 Thread Nobu Games
Cool! :-D

Thanks for the link

On Monday, July 16, 2012 2:10:04 PM UTC-5, RichardC wrote:
>
> In adt-dev 
> https://groups.google.com/forum/?fromgroups#!forum/adt-dev 
> there is a thread talking about Manifest merge
> https://groups.google.com/forum/?fromgroups#!topic/adt-dev/FX-Zk3RCx-4 
>
>
> On Monday, July 16, 2012 7:57:12 PM UTC+1, Nobu Games wrote:
>>
>> Oh my... that's news to me. I leave the manifest file in my library 
>> projects alone, because you have to declare your activities in your app's 
>> manifest file anyway. I guess the documentation is simply mistaken about 
>> that. Or they are hinting at a future change and want to introduce the 
>> latest good practice approach in order to avoid that apps are going to 
>> break with the next SDK update.
>>
>

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

[android-developers] Why Can't My Java Server And Android Client Send Any Messages?

2012-07-16 Thread Jeresam515
for an mmo  I am attempting to create, I have an android client connecting 
to a java server. The android is running on the emulator while the server 
is running straight on my computer. They can connect fine and acknowledge 
the connection but  unless I close either the client or the server the 
other can't recieve the former's message but they can if I do close one.

The server's WorkerThread's Run method:
[code]

public void run() {
try {
InputStream input  = clientSocket.getInputStream();
OutputStream output = clientSocket.getOutputStream();
String returns="";
String s="";
try{
s= inputStreamToString(input).toString();
}
catch(Exception e)
{}
   output.write(("HTTP/1.1 200 OK\n\nWorkerRunnable: " +
   this.serverText + " - " +
   "").getBytes());
output.close();
input.close();
} catch (IOException e) {
//report exception somewhere.
e.printStackTrace();
}
}[/code]

The InputStream stringbulider:
[code]
private static StringBuilder inputStreamToString(InputStream is) {
String line = "";
StringBuilder total = new StringBuilder();

BufferedReader rd = new BufferedReader(new InputStreamReader(is));

try {
while ((line = rd.readLine()) != null) {
total.append(line);
}
} catch (Exception e) {
}

return total;}
[/code]

The client's connection method:

[code]  public String sendMessage(String message)
  {
try{ clientSocket = new Socket("10.0.2.2", 9000);

  String modifiedSentence;
  DataOutputStream outToServer = new 
DataOutputStream(clientSocket.getOutputStream());
  BufferedReader inFromServer = new BufferedReader(new 
InputStreamReader(clientSocket.getInputStream()));
  outToServer.writeBytes(message+"\n");
  //Stops here
  modifiedSentence = inFromServer.readLine();
  outToServer.close();
  inFromServer.close();
  clientSocket.close();
  Log.v(modifiedSentence, modifiedSentence);
  return modifiedSentence;}
catch(Exception e)
{
return "";}
 
  }[/code]

Thanks, any help will be appreciated.

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

[android-developers] per account settings in Jelly Beans

2012-07-16 Thread Marten Gajda
Hi,

I've seen that in Jelly Bean accounts are no longer in "accounts &
sync". Also the account view (where you can disable individual sync
adapters) no longer shows the account preference screen. Instead this
screen went one level up and is the same for all accounts of that
specific authenticator.

I used this preference screen to change individual account options and
it worked quite well in pre-Jelly Bean release. Now this doesn't work
anymore.

How can I offer per account settings?

Also, according to your documentation there is an attribute in the
sync-adapter xml element called "syncAdapterSettingsAction". I've tried
to set this value to my account preferences activity, but I coulnd't
find out how to invoke this action from within Android?

Can someone enlighten me please?

cheers

Marten

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


  1   2   >