Re: [android-developers] Re: Action Bar and Navigation Bar in Android 2.2

2012-07-31 Thread Kostya Vasilyev
Sherlock runs on android 2.1 and above.

Not sure what you mean by "other youtubes" - AFAIK, there is only one.
01.08.2012 10:49 пользователь "Meena Rengarajan" 
написал:

> Not clearly given in Sherlock youtube based on Android 2.2 . Any other
> youtubes are there . Can anyone tell me ..
>
> On Wednesday, August 1, 2012 11:53:13 AM UTC+5:30, Meena Rengarajan wrote:
>>
>> How to get Started with Action Bar and Navigation Bar in Android 2.2 ?
>> Can anyone tell 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Dan


On Tuesday, July 31, 2012 11:59:45 AM UTC-7, Kristopher Micinski wrote:
>
> This goes in the category of "apps modifying the system." 
>
> Your app shouldn't be able to modify the system.  
> ...
>


Why?  If I want an app that turns off the data connection on a timer
function or reading location manager information or I just don't like
digging through a settings menu, why should I be at the mercy of an
OEM's implementation?

And if turning off the APN is "not good" why are there APIs that let
you catch the NEW_OUTGOING_CALL intent and consume it so
the call isn't dialed, or the incoming SMS messages, or holding a
wake lock. 

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

2012-07-31 Thread Rocky
yes, U cant, but u can try it by some R&D might be possible.

create project on 4.0
give the minSDK 8 (2.2)
set Target 14.

try it.


On Wed, Aug 1, 2012 at 12:16 PM, Meena Rengarajan wrote:

> Yes, Action Bar added in 3.0 and 4.0 versions . So i guess cannot be done
> in Android 2.2 version
>
>
> On Wednesday, August 1, 2012 12:06:03 PM UTC+5:30, RKJ (Android developer)
> wrote:
>>
>> ActionBar added in   Android 3.0 (API level 11).
>>
>>
>> On Wed, Aug 1, 2012 at 12:02 PM, Meena Rengarajan > > wrote:
>>
>>> I am not sure , is it possible to create action and navigation bar in
>>> Android 2.2 ? can anyone help me
>>>
>>>
>>> On Wednesday, August 1, 2012 11:53:13 AM UTC+5:30, Meena Rengarajan
>>> wrote:

 How to get Started with Action Bar and Navigation Bar in Android 2.2 ?
 Can anyone tell 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
>>>
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Rakesh Kumar Jha
>> Android Developer, Trainer and Mentor
>> Bangalore
>> Skype - rkjhaw
>> (O) +918050753516
>> (R) +919886336619
>>
>>   --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Thanks & Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

2012-07-31 Thread Meena Rengarajan
Not clearly given in Sherlock youtube based on Android 2.2 . Any other 
youtubes are there . Can anyone tell me .. 

On Wednesday, August 1, 2012 11:53:13 AM UTC+5:30, Meena Rengarajan wrote:
>
> How to get Started with Action Bar and Navigation Bar in Android 2.2 ? Can 
> anyone tell 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] Re: Action Bar and Navigation Bar in Android 2.2

2012-07-31 Thread Meena Rengarajan
Yes, Action Bar added in 3.0 and 4.0 versions . So i guess cannot be done 
in Android 2.2 version

On Wednesday, August 1, 2012 12:06:03 PM UTC+5:30, RKJ (Android developer) 
wrote:
>
> ActionBar added in   Android 3.0 (API level 11). 
>
>
> On Wed, Aug 1, 2012 at 12:02 PM, Meena Rengarajan 
> wrote:
>
>> I am not sure , is it possible to create action and navigation bar in 
>> Android 2.2 ? can anyone help me 
>>
>>
>> On Wednesday, August 1, 2012 11:53:13 AM UTC+5:30, Meena Rengarajan wrote:
>>>
>>> How to get Started with Action Bar and Navigation Bar in Android 2.2 ? 
>>> Can anyone tell 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
>>
>
>
>
> -- 
> Thanks & Regards
>
> Rakesh Kumar Jha
> Android Developer, Trainer and Mentor
> Bangalore
> Skype - rkjhaw
> (O) +918050753516
> (R) +919886336619
>
>  

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

[android-developers] Re: how can I design a floating keyboard?

2012-07-31 Thread yakobom
Hello,
Were you able to solve this? If so, can you share some details?

Thanks,
yakobom

On Wednesday, October 13, 2010 11:02:49 PM UTC+2, Saied wrote:
>
> Hello, 
>
> I am a developer and recently completed the implementation of my 
> keyboard MessagEase. It's available on the Market (with its very- 
> different features, making it quite unlike QWERTY). 
>
> This keyboard works fine as a replacement of the standard keyboard on 
> an Android Phone. But for a An Android Tablet, it would work best if 
> it's implemented as a floating, movable keyboard. 
>
> (the footprint of this keyboard is mostly dependable on the size of a 
> human's finger; it remains the same even if the tablet's display is 
> much larger than a phone's. Therefore it'll take a relatively smaller 
> area on a tablet.) 
>
> If I use the current SDK hooks, it will have to take a significant 
> portion of the screen, defeating the purpose. 
>
> Can someone point me to the right direction in creating a floating 
> keyboard? or is it possible? 
>
> Thanks. 
>
> Saied Nesbat, 
> Exideas (creator of MessagEase)

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

2012-07-31 Thread ritti
can anyone help me regarding this??

On Thursday, 19 July 2012 17:34:02 UTC+5:30, ritti wrote:
>
> Hi,
>
> I am developing an VoIP app. 
>
>1. My app registers to a SIP based back-end server using a User-ID and 
>password. 
>2. Once the registration is successful, the user can make sip calls 
>through this app.
>3. If the user uses the native phone dialer to dial out a number, My 
>app intercepts the call and places the call through SIP.
>4. Once the call is intercepted, the native phone dialer goes to 
>background and my app's 'call status' screen is displayed(my app comes to 
>foreground).
>
> My requirements are as follows:
>
> Once the call is intercepted, instead of showing my app's UI, We need to 
> display the native dialer(default phone dialer) 'call status' / 'call 
> progress' screen(like Samsung's Touchwiz for Samsung phones, HTC Sense for 
> HTC phones etc), but the call should go through my app(SIP). Our app should 
> take control over all the functionality of the native dialer 'call status' 
> screen.
>
> Eg: If the user taps the 'Call End' button on the 'Call Status' screen of 
> the native dialer, my app should end the call. Similarly all the controls 
> on the 'Call Status' screen of the native dialer should handover control to 
> my app to take the necessary action.
>
> Please let me know whether it is possible to accomplish this. If it is 
> possible how to implement this?
> Please reply ASAP, Thanks in advance.
>
>   
>
>

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

Re: [android-developers] Please go to the link (Android questions) and give ur suggestions

2012-07-31 Thread Jim Graham
On Wed, Aug 01, 2012 at 11:52:43AM +0530, Siva Kumar wrote:

> Please access the link (android question) and give ur ideas

1) "ur" is not a word.  I'm assuming you were trying to spell "your".

2) No.  If you can't be bothered to ask your questions here, don't expect
   anyone else to bother with them, either.  Nothing personal...just how
   it generally works, and has worked for decades on e-mail lists, Usenet
   newsgroups, etc.   You MIGHT get answers by posting this way, but you
   are FAR more likely to get them if you post your question correctly.

And if you find the above advice (intended only to be helpful) offensive,
well, that's a personal problem (yours).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into waveguide with remaining eye!

Android Apps Listing at http://www.jstrack.org/barcodes.html

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

2012-07-31 Thread Rocky
ActionBar added in   Android 3.0 (API level 11).


On Wed, Aug 1, 2012 at 12:02 PM, Meena Rengarajan wrote:

> I am not sure , is it possible to create action and navigation bar in
> Android 2.2 ? can anyone help me
>
>
> On Wednesday, August 1, 2012 11:53:13 AM UTC+5:30, Meena Rengarajan wrote:
>>
>> How to get Started with Action Bar and Navigation Bar in Android 2.2 ?
>> Can anyone tell 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
>



-- 
Thanks & Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

2012-07-31 Thread Kostya Vasilyev
Action Bar Sherlock. Google for it.
 01.08.2012 10:33 пользователь "Meena Rengarajan" 
написал:

> I am not sure , is it possible to create action and navigation bar in
> Android 2.2 ? can anyone help me
>
> On Wednesday, August 1, 2012 11:53:13 AM UTC+5:30, Meena Rengarajan wrote:
>>
>> How to get Started with Action Bar and Navigation Bar in Android 2.2 ?
>> Can anyone tell 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

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

2012-07-31 Thread Meena Rengarajan
I am not sure , is it possible to create action and navigation bar in 
Android 2.2 ? can anyone help me 

On Wednesday, August 1, 2012 11:53:13 AM UTC+5:30, Meena Rengarajan wrote:
>
> How to get Started with Action Bar and Navigation Bar in Android 2.2 ? Can 
> anyone tell 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] Action Bar and Navigation Bar in Android 2.2

2012-07-31 Thread Rocky
check android-expert.blogspot.com


On Wed, Aug 1, 2012 at 11:53 AM, Meena Rengarajan wrote:

> How to get Started with Action Bar and Navigation Bar in Android 2.2 ? Can
> anyone tell 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




-- 
Thanks & Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

2012-07-31 Thread Terry
Now it seems that this particular app has been removed from the Play Store.

But after I was made aware of this problem, I see that there are SEVERAL 
other apps doing the same thing.
I tried a few of them, and they work, enabling users to send paid apps to 
friends - for free.

Why Google doesn't remove these apps I don't understand.

Terry


kl. 13:48:02 UTC+2 tirsdag 31. juli 2012 skrev Mark Murphy (a Commons Guy) 
følgende:
>
> On Tue, Jul 31, 2012 at 7:18 AM, Terry wrote: 
> >>Sending an email or SMS with a link to the Play Store based on an 
> >>installed APK would be fine. Sending the actual APK would not be. 
> > 
> > The apps sent to my friends (with APP2Friend) DID arrive - emails with 
> real 
> > apk-files attached. 
> > So this scheme seems to work. 
> > 
> > But this is too stupid! 
> > It is hard to understand that this can be possible. 
>
> APK files are world-readable on a device. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in DC: http://marakana.com/training/android/ 
>

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

[android-developers] Action Bar and Navigation Bar in Android 2.2

2012-07-31 Thread Meena Rengarajan
How to get Started with Action Bar and Navigation Bar in Android 2.2 ? Can 
anyone tell me ..

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

[android-developers] Please go to the link (Android questions) and give ur suggestions

2012-07-31 Thread Siva Kumar
Dear All,

Please access the link (android question) and give ur ideas

http://stackoverflow.com/q/11753551/385138

-- 
*Thanks & Regards,
Sivakumar.J*

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

2012-07-31 Thread CharuhasV
Hi,

Is there is any way I can integrate Android build system with Android 
testing framework?
i.e When I build my android project, It would automatically run my unit 
test cases and if any unit test case fails the build would give the error.

The straight forward way can be to write a script which does this. But I 
wanted to know if similar utility is already available in Android.

Thanks,
Charuhas Vidwans.

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

2012-07-31 Thread havexz
After struggling with it for a day, this is what i found.

I am using ListFragment and Loaders with support library.

If I used same/standard Loaders code in a normal Activity it ListView 
maintains its scroll position very precisely. 

If I am using same/standar Loaders code in ListFragment then if I scroll 
position is complete lost afte orientation change. And it ListView is 
scrolled to top.

I also noticed that 'savedInstanceState' is coming as 'null' to for 
'onCreate', 'onViewCreated' and 'onActivityCreated', even though I am 
saving some state in 'onSaveInstanceState'.

Attached is the code for fragment.

I am just wondering...am I alone..:-/...?


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
import android.database.Cursor;
import android.os.Bundle;
import android.provider.ContactsContract.Contacts;
import android.support.v4.app.ListFragment;
import android.support.v4.app.LoaderManager.LoaderCallbacks;
import android.support.v4.content.CursorLoader;
import android.support.v4.content.Loader;
import android.util.Log;
import android.view.View;

public class MyFrag extends ListFragment implements LoaderCallbacks {
private static final String TAG = MyFrag.class.getSimpleName();

private MyAdapter myAdapter;
private int index = 0;

@Override
public void onActivityCreated(Bundle savedInstanceState) {
// TODO Auto-generated method stub
Log.d(TAG, "onActivityCreated savedInstanceState=" + savedInstanceState);
super.onActivityCreated(savedInstanceState);
myAdapter = new MyAdapter(getActivity(), null, true, getListView());
setListAdapter(myAdapter);

getLoaderManager().initLoader(0, null, this);
}

@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
Log.d(TAG, "onViewCreated savedInstanceState=" + savedInstanceState);

// TODO Auto-generated method stub
super.onViewCreated(view, savedInstanceState);
}

@Override
public void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
Log.d(TAG, "onCreate savedInstanceState=" + savedInstanceState);

super.onCreate(savedInstanceState);
}

@Override
public void onSaveInstanceState(Bundle outState) {
outState.putInt("lv_index", index);
super.onSaveInstanceState(outState);
}

@Override
public Loader onCreateLoader(int id, Bundle args) {
// TODO Auto-generated method stub

Log.d(TAG, "creating loader");
CursorLoader cl = new CursorLoader(getActivity(), Contacts.CONTENT_URI, new String[] {
Contacts._ID, Contacts.DISPLAY_NAME
}, null, null, null);

return cl;
}

@Override
public void onLoadFinished(Loader loader, Cursor newCursor) {
// TODO Auto-generated method stub
myAdapter.swapCursor(newCursor);
}

@Override
public void onLoaderReset(Loader loader) {
// TODO Auto-generated method stub
myAdapter.swapCursor(null);
}
}



[android-developers] Keyboard question

2012-07-31 Thread yakobom
Hi,
I'm building a custom keyboard, and I need to be able to move it around - 
so it won't necessarily stick to the bottom and sides of the screen. Can 
anyone please direct me how to achieve this?

Thanks,
yakobom

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Is it possible to reduce the variability of camera shutter lag time?

2012-07-31 Thread gjs
Hi,

I am curious about how you are performing & measuring timings between 
subsequent shots as there may also be some variability according to your 
method(s). For example, I found that using a Timer object there was some 
variability in when the task was actually run, sometime by a few hundred 
milliseconds. I had done some related work a while back trying to closely 
synchronise the cameras shutters of multiple Android devices connected via 
Bluetooth. This was successful to a degree but would sometimes lock up a 
Nexus S entirely, if the intershot delay was less than a few seconds.

Regards, the other gjs. 

On Wednesday, August 1, 2012 12:41:27 AM UTC+10, greg wrote:
>
> Thanks for the suggestions. Based on them I tried disabling all the camera 
> auto parameters. There is still a range of about 0.2 s in the shutter lag 
> time. In this application (and perhaps there are others), I'm more 
> concerned about the variability and not the average duration of the lag 
> time. I have posted a feature request to the Android issue tracker to add 
> an optional minimum shutter time argument in Camera.takePicture() that 
> would delay the shutter if it were ready before the specified minimum. If 
> you think you might find that extra control helpful in a future 
> application, "star" the feature request at 
> http://code.google.com/p/android/issues/detail?id=35785
>
> Thanks! --Greg
>
> P.S., We have the same initials, and for a while a few years ago I used 
> those same initials as an on-line signature. Our writing styles are similar 
> enough that I sometimes read your posts and momentarily wonder, "Did I 
> write that?" :*)
>
> On Monday, July 30, 2012 9:02:37 PM UTC-4, gjs wrote:
>>
>> Hi,
>>
>> Set other camera parameter values to non-auto settings eg: set a specific 
>> white balance such as daylight, set flash to off etc.
>>
>> Other than that ensure there is no other non essential app's / services 
>> running at the same time & examine your own app to minimise or eliminate 
>> any garbage collection, reduce sensor use / frequency.
>>
>> Try a few different devices, dual cores, quad cores particularly those 
>> claiming zero shutter lag. Some devices let you vary the camera preview 
>> frame rate & preview size maybe try this as well, not sure if that would 
>> make a difference as I've have not tried this myself.
>>
>> If that is still not good enough consider triggering a remote camera 
>> instead, such as an SLR via bluetooth or usb.
>>
>> Regards 
>>
>> On Tuesday, July 31, 2012 6:41:53 AM UTC+10, greg wrote:
>>>
>>> Thanks Richard. Setting the focus to 
>>> Camera.Parameters.FOCUS_MODE_INFINITY helped as shown in the added 
>>> histogram at 
>>> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>>>
>>> At the risk of sounding like an ingrate, do you have any ideas on how to 
>>> reduce the variability even more? (A range of 0.2 s still covers a large 
>>> portion of the periodic motion.)
>>>
>>> -- Greg
>>>
>>> On Monday, July 30, 2012 3:05:50 PM UTC-4, RichardC wrote:

 Could it be related to auto-focus? Try turning it off.

 On Monday, July 30, 2012 7:55:52 PM UTC+1, greg wrote:
>
> Given a known periodic motion (e.g., walking), I'd like to take a full 
> resolution snapshot at the same point in the motion (i.e., the same time 
> offset within different periods). However on the Nexus S (currently 
> running 
> OS 4.1.1 but the same was true of previous OS versions), I'm seeing so 
> much 
> variability in the shutter lag that I cannot accurately plan the timing 
> of 
> the snapshot. Is there anything I can do in the application to reduce 
> this 
> shutter lag variability? (In this application, the mean lag can be any 
> duration but the standard deviation must be small ... much smaller than 
> the 
> 0.5 s standard deviation I am seeing.) I'm hoping someone has a clever 
> suggestion. If I don't get any suggestions, I'll post a feature request 
> in 
> the Android bug tracker.
>
> I've posted the same question (and showing a histogram of camera 
> shutter lag times) at
>
>
> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>
> Thanks! -- Greg
>


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

2012-07-31 Thread Dianne Hackborn
For a button?  You don't want to do that, that is a huge amount of overhead
just for a button.

On Tue, Jul 31, 2012 at 3:27 PM, bob  wrote:

>
> Is it possible to make a really slick button using OpenGL effects by doing
> something like this:
>
>
> public class MyButton extends GLSurfaceView
>
>
> ?
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

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

Re: [android-developers] Re: Use of weak password to protect Android keystore

2012-07-31 Thread Nikolay Elenkov
On Wed, Aug 1, 2012 at 1:20 AM, howa  wrote:
> Hi,
>
> On Tuesday, July 31, 2012 10:43:26 PM UTC+8, Nikolay Elenkov wrote:
>>
>> On Tue, Jul 31, 2012 at 11:38 PM, howa wrote:
>> t doesn't matter. They can load you app with malware, put it on some
>> 'sharing'
>> site and it will look like it came from you. It will even update
>> cleanly on top of
>> your own app.
>>
>>
>
> For the protection, you mean the "Keystore password" or the "Key password"?

Both.

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

2012-07-31 Thread Dianne Hackborn
On Wed, Apr 28, 2010 at 11:42 AM, Amir Alagic  wrote:

> Add this android:configChanges="keyboardHidden|orientation|keyboard"
> to  element in AndroidManifest.xml file. I hope that this is
> what
> you want.
>

No, don't.  That doesn't fix the problem, just hides it in some of the
common situations.  (This also breaks many behaviors around configuration,
such as selecting the right value for any resource that varies based on one
of these configurations.)

The correct solution is to write your activity correctly so that it does
the right thing when it is re-created from a previous saved state.

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

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

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

Re: [android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Kristopher Micinski
That's right, but the "hey, but this app can!" game doesn't really
work in this case...

kris

On Tue, Jul 31, 2012 at 8:56 PM, CJ  wrote:
> Hi, I understand. There are many popular app that automate system task with
> big user base.
> APNDroid, JuiceDefender, Motorola SmartAction etc so many. So likely there
> is no answer other than using what APNDroid is using and it is likely going
> to be future version proof.
>
>
> On Wednesday, 1 August 2012 02:59:45 UTC+8, Kristopher Micinski wrote:
>>
>> This goes in the category of "apps modifying the system."
>>
>> Your app shouldn't be able to modify the system.  While this sounds
>> funny, it's true.  Sure, you can write such apps and hack around
>> things below 2.3.3, but do you really expect your app will really be
>> used for that long, then?
>>
>> kris
>>
>> On Tue, Jul 31, 2012 at 12:38 PM, CJ wrote:
>> > The permission needed is > > android:name="android.permission.CHANGE_NETWORK_STATE"/>
>> > Android 2.3 and above can do that with the code I supply. I am asking a
>> > question how to do it for version below 2.3.
>> >
>> > Many apps are doing it, the most popular one I mentioned was
>> > JuiceDefender:
>> >
>> > http://maketecheasier.com/increase-phones-battery-life-with-juicedefender-android/2011/02/25
>> >
>> > On Wednesday, 1 August 2012 00:28:33 UTC+8, Robert Greenwalt wrote:
>> >>
>> >> How to do the permission?  That's not your issue - the platform needs
>> >> to
>> >> do it.
>> >>
>> >> How to turn data on/off?  It looks like you'll need a mix of methods.
>> >> You're using undocumented methods from the past and present and they
>> >> may
>> >> change in the future.  You can do different things dependent on the
>> >> version
>> >> of the platform.
>> >>
>> >>
>> >> On Tue, Jul 31, 2012 at 9:18 AM, wrote:
>> >>>
>> >>> Yes, the next qns is how to do it...
>> >>>
>> >>> On Wed, Aug 1, 2012 at 12:14 AM, Robert Greenwalt
>> >>> 
>> >>> wrote:
>> 
>>  If the app is granted permission by the user it would be ok.  And
>>  apps
>>  that do intelligent things in this area may be useful and welcome.
>>  Without
>>  permission limits though, yeah this could be a problem.
>> 
>> 
>>  On Tue, Jul 31, 2012 at 9:04 AM, Nick Kralevich 
>>  wrote:
>> >
>> >
>> > Hmm  From the platform's point of view, this sounds like a
>> > denial
>> > of service attack against other applications on the device. One
>> > application
>> > shouldn't be able to interfere with another application's network
>> > connectivity without the user being involved.
>> >
>> > -- Nick
>> >
>> >
>> > On Tue, Jul 31, 2012 at 8:26 AM, CJ wrote:
>> >>
>> >> Hi, I am working on a app to automate some setting eg. to perform
>> >> certain action such as disable mobile data when battery is low or
>> >> night mode
>> >> etc.
>> >> There are app in the market that able to disable/enable mobile data
>> >> connection like SmartAction and a few more. I also dislike the
>> >> alter APN
>> >> method so I am looking for better alternatives.
>> >>
>> >> On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:
>> >>>
>> >>> Apps won't be able to alter the APN database after Honeycomb or
>> >>> perhaps ICS.  The User can disable data from settings.  Why does
>> >>> an
>> >>> application need to disable data?
>> >>>
>> >>>
>> >>> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:
>> >>>
>>  Hi,
>> 
>>  I have been googling for a while able the best or right way to
>>  disable/enable mobile network.
>> 
>>  I tried the following code which is all over Stackoverflow and is
>>  working fine for gingerbread and higher:
>> 
>>  private void setMobileDataEnabled(Context context, boolean
>>  enabled)
>>  throws Exception {
>>  final ConnectivityManager conman = (ConnectivityManager) context
>>  .getSystemService(Context.CONNECTIVITY_SERVICE);
>>  final Class conmanClass =
>>  Class.forName(conman.getClass().getName());
>>  final Field iConnectivityManagerField = conmanClass
>>  .getDeclaredField("mService");
>>  iConnectivityManagerField.setAccessible(true);
>>  final Object iConnectivityManager = iConnectivityManagerField
>>  .get(conman);
>>  final Class iConnectivityManagerClass = Class
>>  .forName(iConnectivityManager.getClass().getName());
>>  final Method setMobileDataEnabledMethod =
>>  iConnectivityManagerClass
>>  .getDeclaredMethod("setMobileDataEnabled", Boolean.TYPE);
>>  setMobileDataEnabledMethod.setAccessible(true);
>> 
>>  setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);
>>  }
>> 
>>  Somehow I didn't find a way to do the same thing for Android 2.2
>>  and
>> >

Re: [android-developers] Scanning root of SDcard does not work on 4.1

2012-07-31 Thread Dianne Hackborn
If you are running on a non-user build, as of JB you need to require the
new read external storage permission.  On a user build, you may have
enabled this restriction in developer settings.

On Wed, Jul 25, 2012 at 9:43 AM, Alessandro Pellizzari wrote:

> Hi all,
>
> I am having problems scanning my files on the root of the sdcard, but (it
> appears) only on 4.1.
>
> This is my code:
>
> public static void scanAll(NotifyScan target)
> {
>  String source =
>   Environment.getExternalStorageDirectory().getAbsolutePath()
>  ;
>
>  Log.d("SCANDIR", source);
>
>  scanDir(new File(source));
> }
>
> private void scanDir(File path)
> {
>   for ( File f:path.listFiles() ) {
> Log.d("SCAN", f.getAbsolutePath());
>   }
> }
>
> I removed error catching for clarity.
> The output is:
>
> SCANDIR /mnt/sdcard
> SCAN /mnt/sdcard/LOST.DIR
> SCAN /mnt/sdcard/.android-secure
>
> But from the File Explorer in DDMS and from adb shell, I get:
>
> # ls -la /mnt/sdcard
> d- root root  2012-07-16 11:42 .android_secure
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Alarms
> d---rwxr-x system   sdcard_rw  2012-07-16 17:06 MyDirectory
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 DCIM
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Download
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 LOST.DIR
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Movies
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Music
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Notifications
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Pictures
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Podcasts
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Ringtones
>
> I need to scan every directory on the sdcard and find a certain type of
> file. It all worked fine in 2.2 and 2.3.
>
> What can I do?
>
> Thank you very much.
>
> Bye.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread CJ
Hi, I understand. There are many popular app that automate system task with 
big user base.
APNDroid, JuiceDefender, Motorola SmartAction etc so many. So likely there 
is no answer other than using what APNDroid is using and it is likely going 
to be future version proof.

On Wednesday, 1 August 2012 02:59:45 UTC+8, Kristopher Micinski wrote:
>
> This goes in the category of "apps modifying the system." 
>
> Your app shouldn't be able to modify the system.  While this sounds 
> funny, it's true.  Sure, you can write such apps and hack around 
> things below 2.3.3, but do you really expect your app will really be 
> used for that long, then? 
>
> kris 
>
> On Tue, Jul 31, 2012 at 12:38 PM, CJ wrote: 
> > The permission needed is  > android:name="android.permission.CHANGE_NETWORK_STATE"/> 
> > Android 2.3 and above can do that with the code I supply. I am asking a 
> > question how to do it for version below 2.3. 
> > 
> > Many apps are doing it, the most popular one I mentioned was 
> JuiceDefender: 
> > 
> http://maketecheasier.com/increase-phones-battery-life-with-juicedefender-android/2011/02/25
>  
> > 
> > On Wednesday, 1 August 2012 00:28:33 UTC+8, Robert Greenwalt wrote: 
> >> 
> >> How to do the permission?  That's not your issue - the platform needs 
> to 
> >> do it. 
> >> 
> >> How to turn data on/off?  It looks like you'll need a mix of methods. 
> >> You're using undocumented methods from the past and present and they 
> may 
> >> change in the future.  You can do different things dependent on the 
> version 
> >> of the platform. 
> >> 
> >> 
> >> On Tue, Jul 31, 2012 at 9:18 AM, wrote: 
> >>> 
> >>> Yes, the next qns is how to do it... 
> >>> 
> >>> On Wed, Aug 1, 2012 at 12:14 AM, Robert Greenwalt <
> rgreenw...@google.com> 
> >>> wrote: 
>  
>  If the app is granted permission by the user it would be ok.  And 
> apps 
>  that do intelligent things in this area may be useful and welcome. 
>  Without 
>  permission limits though, yeah this could be a problem. 
>  
>  
>  On Tue, Jul 31, 2012 at 9:04 AM, Nick Kralevich  
> wrote: 
> > 
> > 
> > Hmm  From the platform's point of view, this sounds like a 
> denial 
> > of service attack against other applications on the device. One 
> application 
> > shouldn't be able to interfere with another application's network 
> > connectivity without the user being involved. 
> > 
> > -- Nick 
> > 
> > 
> > On Tue, Jul 31, 2012 at 8:26 AM, CJ wrote: 
> >> 
> >> Hi, I am working on a app to automate some setting eg. to perform 
> >> certain action such as disable mobile data when battery is low or 
> night mode 
> >> etc. 
> >> There are app in the market that able to disable/enable mobile data 
> >> connection like SmartAction and a few more. I also dislike the 
> alter APN 
> >> method so I am looking for better alternatives. 
> >> 
> >> On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote: 
> >>> 
> >>> Apps won't be able to alter the APN database after Honeycomb or 
> >>> perhaps ICS.  The User can disable data from settings.  Why does 
> an 
> >>> application need to disable data? 
> >>> 
> >>> 
> >>> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote: 
> >>> 
>  Hi, 
>  
>  I have been googling for a while able the best or right way to 
>  disable/enable mobile network. 
>  
>  I tried the following code which is all over Stackoverflow and is 
>  working fine for gingerbread and higher: 
>  
>  private void setMobileDataEnabled(Context context, boolean 
> enabled) 
>  throws Exception { 
>  final ConnectivityManager conman = (ConnectivityManager) context 
>  .getSystemService(Context.CONNECTIVITY_SERVICE); 
>  final Class conmanClass = 
>  Class.forName(conman.getClass().getName()); 
>  final Field iConnectivityManagerField = conmanClass 
>  .getDeclaredField("mService"); 
>  iConnectivityManagerField.setAccessible(true); 
>  final Object iConnectivityManager = iConnectivityManagerField 
>  .get(conman); 
>  final Class iConnectivityManagerClass = Class 
>  .forName(iConnectivityManager.getClass().getName()); 
>  final Method setMobileDataEnabledMethod = 
> iConnectivityManagerClass 
>  .getDeclaredMethod("setMobileDataEnabled", Boolean.TYPE); 
>  setMobileDataEnabledMethod.setAccessible(true); 
>  
>  setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled); 
>  } 
>  
>  Somehow I didn't find a way to do the same thing for Android 2.2 
> and 
>  below. Many mentioned to change the APN name to something invalid 
> like what 
>  app APNDroid did but is that the only way? 
>  
>  -- 
>  You received this message because you are subs

[android-developers] Re: Scanning root of SDcard does not work on 4.1

2012-07-31 Thread Doug
In JB, they changed the mount point for external storage to 
/storage/sdcard0.  At least this is the case for the Galaxy Nexus and Nexus 
7.  So if you're not seeing the directory, double check it.  Still, 
/mnt/sdcard should be a symlink to /storage/sdcard0.

I'm noticing that you're taking the file object from 
Environment.getExternalStorageDirectory, then turning that into a string, 
then turning it into a File again.  That's not necessarily wrong, but you 
might want to reconsider that.

Doug

On Wednesday, July 25, 2012 9:43:07 AM UTC-7, Alessandro Pellizzari wrote:
>
> Hi all, 
>
> I am having problems scanning my files on the root of the sdcard, but (it 
> appears) only on 4.1. 
>
> This is my code: 
>
> public static void scanAll(NotifyScan target) 
> { 
>  String source = 
>   Environment.getExternalStorageDirectory().getAbsolutePath() 
>  ; 
>
>  Log.d("SCANDIR", source); 
>   
>  scanDir(new File(source)); 
> } 
>
> private void scanDir(File path) 
> { 
>   for ( File f:path.listFiles() ) { 
> Log.d("SCAN", f.getAbsolutePath()); 
>   } 
> } 
>
> I removed error catching for clarity. 
> The output is: 
>
> SCANDIR /mnt/sdcard 
> SCAN /mnt/sdcard/LOST.DIR 
> SCAN /mnt/sdcard/.android-secure 
>
> But from the File Explorer in DDMS and from adb shell, I get: 
>
> # ls -la /mnt/sdcard 
> d- root root  2012-07-16 11:42 .android_secure 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Alarms 
> d---rwxr-x system   sdcard_rw  2012-07-16 17:06 MyDirectory 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 DCIM 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Download 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 LOST.DIR 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Movies 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Music 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Notifications 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Pictures 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Podcasts 
> d---rwxr-x system   sdcard_rw  2012-07-16 11:42 Ringtones 
>
> I need to scan every directory on the sdcard and find a certain type of 
> file. It all worked fine in 2.2 and 2.3. 
>
> What can I do? 
>
> Thank you very much. 
>
> Bye. 
>
>
>

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

2012-07-31 Thread Talha Qamar
Hi i am actually newbie to android development.I want to make a simple
application based on the users touch gesture.If user(touch) point towards
right then a new activity is started and on next/new activity when user
point towards left then he will get back to his main activity.I know the
intent method and its implementation just simply tell me the name of touch
method which might be used for above application.If you have any sample
application or any important link.Please do share with me.Thanks.

Regards,
Talha Qamar.

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

2012-07-31 Thread Talha Qamar
I think your sdk manager location cant be set up in eclipsejust go to
Window ->Preferences-> Android-> sdk location...now set up the
location.restart eclipseI think your problem might be solved.
Regards,
Talha Qamar.

On Wed, Aug 1, 2012 at 3:27 AM, Francisco Marzoa  wrote:

> You have better chances of find help on such issue on Eclipse ADT forum.
>
> Best regards,
> El 31/07/2012 08:18, "Miky Papa"  escribió:
>
>> Hi!
>>
>> I'm very upset as I am a new Android developer and i've installed
>> Eclipse, ADT SDK several times.
>> I've been using Eclipse Indigo for a while on a Mac. As the emulater got
>> slower and slower every day I've decided to cancel the device and update
>> the tools. Then I've updated Eclipse too. Me stupid!
>> Eclipse blowed up with an error (something about an incompatibility or
>> something). It wasn't possible to start it.
>> Well I've cancelled Eclipse and SDK directory and installed everythig
>> from the beginning. No errors. Eclipse restarted itself but I cannot find
>> Android in the Preference Panel. There is no icon for Andoid on the Tool
>> bar also.
>>
>> Can anyone help me? Maybe I should install a previous version. I've
>> installed the very last SDK (20) and Eclipse Classic Juno (maybe 4). I've
>> tried even Eclipse for mobile.
>> Is there an Eclipse error log to check why it's not loading the plugin?
>>
>> Thanks,
>> Miky
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Merge two bitmaps

2012-07-31 Thread Numair Qadir
With the help of "pro Android.Media", i tried, but it gave me force close
error, here is my code and logcat

// Camera arg conversion to Bitmap
Bitmap cameraBitmap = BitmapFactory.decodeByteArray(arg0, 0,
arg0.length);
Bitmap back = Bitmap.createBitmap(cameraBitmap.getWidth(),
cameraBitmap.getHeight(), Bitmap.Config.ARGB_);
Canvas cam = new Canvas(back);
cam.drawBitmap(cameraBitmap, matrix, null);
 // FrameLayout to Bitmap
FrameLayout mainLayout = (FrameLayout) findViewById(R.id.frame);
Bitmap foreground = Bitmap.createBitmap(mainLayout.getWidth(),
mainLayout.getHeight(), Bitmap.Config.ARGB_);
Canvas c = new Canvas(foreground);
mainLayout.draw(c);
 Bitmap cs = Bitmap.createBitmap(cameraBitmap.getWidth(),
cameraBitmap.getHeight(), Bitmap.Config.ARGB_);
Canvas canvas = new Canvas(cs);
Paint paint = new Paint();
canvas.drawBitmap(cameraBitmap, 0, 0, paint);
paint.setXfermode(new
PorterDuffXfermode(android.graphics.PorterDuff.Mode.MULTIPLY));
canvas.drawBitmap(foreground, 0, 0, paint);
view.setImageBitmap(cs);


and log cat

08-01 04:46:07.969: E/AndroidRuntime(737): FATAL EXCEPTION: main
08-01 04:46:07.969: E/AndroidRuntime(737): java.lang.NullPointerException
08-01 04:46:07.969: E/AndroidRuntime(737): at
com.exercise.AndroidCamera.AndroidCamera$4.onPictureTaken(AndroidCamera.java:263)
08-01 04:46:07.969: E/AndroidRuntime(737): at
android.hardware.Camera$EventHandler.handleMessage(Camera.java:320)
08-01 04:46:07.969: E/AndroidRuntime(737): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-01 04:46:07.969: E/AndroidRuntime(737): at
android.os.Looper.loop(Looper.java:123)
08-01 04:46:07.969: E/AndroidRuntime(737): at
android.app.ActivityThread.main(ActivityThread.java:4627)
08-01 04:46:07.969: E/AndroidRuntime(737): at
java.lang.reflect.Method.invokeNative(Native Method)
08-01 04:46:07.969: E/AndroidRuntime(737): at
java.lang.reflect.Method.invoke(Method.java:521)
08-01 04:46:07.969: E/AndroidRuntime(737): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-01 04:46:07.969: E/AndroidRuntime(737): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-01 04:46:07.969: E/AndroidRuntime(737): at
dalvik.system.NativeStart.main(Native Method)

Can you please help me to figure out the issue? Thanks

On Tue, Jul 31, 2012 at 8:44 PM, Jim Graham  wrote:

> On Tue, Jul 31, 2012 at 05:57:47AM -0700, Numair Qadir wrote:
> > I want to merge two bitmaps, here is my code
>
> I was just going to point you to the right page in the dev guide, but I
> don't remember if there even is one (I learned this from a book, "Pro
> Android Media").  Be advised that with larger bitmaps, you can easily
> cause an Out Of Memory error and, if that isn't caught, a force close,
> so if you need to do this with LARGE bitmaps, you'll have to use the NDK.
>
>// blend src1 and src2 into dest (must be same size and, I think they
>// have to be the same configuration, too, e.g., both ARGB_)
>
>Bitmap dest = Bitmap.createBitmap(width, height, src1.getConfig());
>Canvas canvas = new Canvas(src2);
>Paint paint = new Paint();
>
>canvas = new Canvas(src2);
>paint = new Paint();
>canvas.drawBitmap(src1, 0, 0, paint);
>paint.setXfermode(new
> PorterDuffXfermode(android.graphics.PorterDuff.Mode.SRC_OVER));
>canvas.drawBitmap(dest, 0, 0, paint);
>
> PorterDuff has quite a few different modes, so check out the dev guide's
> page on PorterDuff.Mode for more information.
>
> Later,
>--jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
> spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
>
>   "'Wrong' is one of those concepts that depends on witnesses."
>  --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)
>
> Android Apps Listing at http://www.jstrack.org/barcodes.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] No "Android" in the preferences panel

2012-07-31 Thread Francisco Marzoa
You have better chances of find help on such issue on Eclipse ADT forum.

Best regards,
El 31/07/2012 08:18, "Miky Papa"  escribió:

> Hi!
>
> I'm very upset as I am a new Android developer and i've installed Eclipse,
> ADT SDK several times.
> I've been using Eclipse Indigo for a while on a Mac. As the emulater got
> slower and slower every day I've decided to cancel the device and update
> the tools. Then I've updated Eclipse too. Me stupid!
> Eclipse blowed up with an error (something about an incompatibility or
> something). It wasn't possible to start it.
> Well I've cancelled Eclipse and SDK directory and installed everythig from
> the beginning. No errors. Eclipse restarted itself but I cannot find
> Android in the Preference Panel. There is no icon for Andoid on the Tool
> bar also.
>
> Can anyone help me? Maybe I should install a previous version. I've
> installed the very last SDK (20) and Eclipse Classic Juno (maybe 4). I've
> tried even Eclipse for mobile.
> Is there an Eclipse error log to check why it's not loading the plugin?
>
> Thanks,
> Miky
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] slick button?

2012-07-31 Thread bob
 


Is it possible to make a really slick button using OpenGL effects by doing 
something like this:


public class MyButton extends GLSurfaceView


?


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 run a service in background when the user is out of android application

2012-07-31 Thread Kristopher Micinski
I would say putting all your code in onBind wouldn't be the greatest idea..

kris

On Tue, Jul 31, 2012 at 6:22 PM, bob  wrote:
> Exactly.
>
> Like this:
>
>
> import android.app.Service;
> import android.content.Intent;
> import android.os.IBinder;
>
> public class Example_Service extends Service {
> /**
> * @see android.app.Service#onBind(Intent)
> */
> @Override
> public IBinder onBind(Intent intent) {
> // TODO Put your code here
> return null;
> }
> }
>
>
> On Tuesday, July 31, 2012 5:06:07 PM UTC-5, MagouyaWare wrote:
>>
>> Use a service...
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Mon, Jul 30, 2012 at 12:44 AM, Vijay Krishnan
>>  wrote:
>>>
>>> Hi all,
>>>  In my case,i want to update the user latitude and longitude in
>>> background when he is out of the application.
>>>
>>> Thanks,
>>> vijay.k
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] how to run a service in background when the user is out of android application

2012-07-31 Thread bob
Exactly.

Like this:


import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class Example_Service extends Service {
/**
 * @see android.app.Service#onBind(Intent)
 */
@Override
public IBinder onBind(Intent intent) {
// TODO Put your code here
return null;
}
}


On Tuesday, July 31, 2012 5:06:07 PM UTC-5, MagouyaWare wrote:
>
> Use a service...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Mon, Jul 30, 2012 at 12:44 AM, Vijay Krishnan  > wrote:
>
>> Hi all,
>>  In my case,i want to update the user latitude and longitude in 
>> background when he is out of the application.
>>
>> Thanks,
>> vijay.k
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

Re: [android-developers] Re: Change the textcolor of a listview item in onCreate method.

2012-07-31 Thread Justin Anderson
And... you are going about it the wrong way...  You don't want to change
the listview's children directly.  Make the state part of your data model,
write a custom adapter and implement the getView() method to change the
color of the text based on the state of the item in the adapter.  If you
need to change the state of an item, change it in the adapter and call the
adapter's notifyDataSetChanged() method...

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


On Tue, Jul 31, 2012 at 4:19 PM, Justin Anderson wrote:

> What does your full onCreate() method look like?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Sun, Jul 29, 2012 at 11:30 AM, Omer Firat  wrote:
>
>>
>>
>> 22 Mart 2011 Salı 19:09:10 UTC+2 tarihinde bosscoder yazdı:
>>>
>>> Hi dear,
>>
>>
>> Do you solve your an error oncreate method? I had an error like yours .I
>> think it has possible using xml selector but there is no enough an example
>> releted with this issue
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Change the textcolor of a listview item in onCreate method.

2012-07-31 Thread Justin Anderson
What does your full onCreate() method look like?

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


On Sun, Jul 29, 2012 at 11:30 AM, Omer Firat  wrote:

>
>
> 22 Mart 2011 Salı 19:09:10 UTC+2 tarihinde bosscoder yazdı:
>>
>> Hi dear,
>
>
> Do you solve your an error oncreate method? I had an error like yours .I
> think it has possible using xml selector but there is no enough an example
> releted with this issue
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-07-31 Thread Justin Anderson
Thanks for sharing

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


On Sat, Jul 28, 2012 at 4:29 PM, ahmed  wrote:

> after i upgrade my arc S to 4.0.3 i can not disable secreen lock
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 run a service in background when the user is out of android application

2012-07-31 Thread Justin Anderson
Use a service...

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


On Mon, Jul 30, 2012 at 12:44 AM, Vijay Krishnan
wrote:

> Hi all,
>  In my case,i want to update the user latitude and longitude in
> background when he is out of the application.
>
> Thanks,
> vijay.k
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] how to position imageview in linear layout with respect to screen size

2012-07-31 Thread Justin Anderson
You're welcome!

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


On Mon, Jul 30, 2012 at 12:46 AM, Vijay Krishnan
wrote:

> Thank U Justin for your kind help
>
>
> On Fri, Jul 27, 2012 at 11:31 PM, Justin Anderson 
> wrote:
>
>> How to position the image view with respect to screen size.Any one help
>>> on this?
>>>
>> You don't want to do that...
>>
>>
>>  In my application,i used to customize the position of image view in
>>> linear layout.First,i position the first image view at the centre of the
>>> screen and then i try to position the second image view above the first
>>> image view.But i couldn't do that because the second image view is
>>> positioned with respect to first image view.
>>>
>>
>> Use a RelativeLayout...
>> On the first image, set android:layout_centerInParent="true"
>> On the second image, set android:layout_above="@id/id_of_first_image"
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Fri, Jul 27, 2012 at 3:49 AM, Vijay Krishnan > > wrote:
>>
>>> Hi all,
>>>In my application,i used to customize the position of image view
>>> in linear layout.First,i position the first image view at the centre of the
>>> screen and then i try to position the second image view above the first
>>> image view.But i couldn't do that because the second image view is
>>> positioned with respect to first image view.How to position the image view
>>> with respect to screen size.Any one help on this?
>>>
>>> Thanks,
>>> vijay.k
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Help please-new android app suck - the target API is empty

2012-07-31 Thread Justin Anderson
>
> new android app suck

Couldn't help but notice this in your title... We can't make your app not
suck... :-)
(Sorry... couldn't resist)

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


On Mon, Jul 30, 2012 at 8:00 AM, bob  wrote:

> Sounds like you need to install the Android SDK and tell phone gap where
> you put it.
>
>
>
> On Friday, July 27, 2012 7:54:29 PM UTC-5, kaitama3 wrote:
>>
>> Hi,
>>
>> I start to develope app for android with phonegap.com
>> I created a new project and choose "new android application"
>> when i fill the app name i also need to choos an terget API,
>>
>> but i can't becouse its empty, what should i do ?
>> i can't click in "next".
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: SharedPreferences clarification

2012-07-31 Thread Sergio Panico
Thank you guys for your answers!

Now it is more clear!

Thanks 
Sergio


Il giorno martedì 31 luglio 2012 15:55:25 UTC+2, Sergio Panico ha scritto:
>
> Hi all,
> I need your help to have a clarification for the preferences framework of 
> Android.
>
> Accordingly to Google API Reference (
> http://developer.android.com/reference/android/preference/PreferenceActivity.html)
>  
> I created my app preferences section by extending the PreferenceActivity 
> class and by creating (sub)fragment for each different sections. It seems 
> works well, but here is the first question:
>   1. Google API documentation talks about 2 "styles" for creating 
> preference sections of an app: one "deprecated" old style, and one "newest" 
> technique fragment-based. As per my understanding, with the first "old" 
> method, all the settings belong to only one "screen", instead with the 
> second it is possibile to create headers and subsection for grouping the 
> settings. BTW, always for google gudelines, it is not a "best practice" to 
> spread the setting into several section (
> http://developer.android.com/design/patterns/settings.html). So the 
> question is, what of this two "techniques" is better to use? What is the 
> criteria (for example number of settings...) to choose one or the other 
> solution?
>
> Then, assuming that i've choosen one of the technique and have implemented 
> my preference section in my app, i know that all the settings are managed 
> by Android with SharedPreference class. Now, I need to access to my 
> settings outside the my PreferenceActivity class. I thought to work in this 
> way: in my main Application class, I create a static method that, using the 
> context of the app, accesses to the SharedPreferences object, retrive the 
> setting I ask for, and return its value to the caller. But, the 
> getSharedPreferences Context's method ask me for a "name" and a "mode". 
> Accordingly to API reference "name" is "Desired preferences file" and 
> "mode" is the "Operating mode". The question is:
>   2. How can I know what is the preference file for my application, as was 
> the Android framework that managed the preferences for me (within my 
> PreferenceActivity class)?
>
> Thanks a lot for all the clarification
> Regards
> Sergio
>

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

2012-07-31 Thread bob
 

Maybe try MOTODEV Studio?  It's a bundle with Eclipse and Android.  I use 
it.



On Tuesday, July 31, 2012 4:12:57 PM UTC-5, ole! wrote:
>
> Same problem exactly encountered today when I update to ADT 20.
> Mac OSX 1.5.8, Eclipse June, ADT 20
> reinstalled everything!
> No go.
>
> Anyone?
>
> On Monday, July 30, 2012 8:13:40 AM UTC-4, Miky Papa wrote:
>>
>> Hi!
>>
>> I'm very upset as I am a new Android developer and i've installed 
>> Eclipse, ADT SDK several times.
>> I've been using Eclipse Indigo for a while on a Mac. As the emulater got 
>> slower and slower every day I've decided to cancel the device and update 
>> the tools. Then I've updated Eclipse too. Me stupid!
>> Eclipse blowed up with an error (something about an incompatibility or 
>> something). It wasn't possible to start it.
>> Well I've cancelled Eclipse and SDK directory and installed everythig 
>> from the beginning. No errors. Eclipse restarted itself but I cannot find 
>> Android in the Preference Panel. There is no icon for Andoid on the Tool 
>> bar also.
>>
>> Can anyone help me? Maybe I should install a previous version. I've 
>> installed the very last SDK (20) and Eclipse Classic Juno (maybe 4). I've 
>> tried even Eclipse for mobile.
>> Is there an Eclipse error log to check why it's not loading the plugin?
>>
>> Thanks, 
>> Miky
>>
>

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

2012-07-31 Thread Tor Norbye
Are you running Eclipse on JDK 1.6 or later?

-- Tor


On Tue, Jul 31, 2012 at 2:12 PM, ole!  wrote:

> Same problem exactly encountered today when I update to ADT 20.
> Mac OSX 1.5.8, Eclipse June, ADT 20
> reinstalled everything!
> No go.
>
> Anyone?
>
>
> On Monday, July 30, 2012 8:13:40 AM UTC-4, Miky Papa wrote:
>>
>> Hi!
>>
>> I'm very upset as I am a new Android developer and i've installed
>> Eclipse, ADT SDK several times.
>> I've been using Eclipse Indigo for a while on a Mac. As the emulater got
>> slower and slower every day I've decided to cancel the device and update
>> the tools. Then I've updated Eclipse too. Me stupid!
>> Eclipse blowed up with an error (something about an incompatibility or
>> something). It wasn't possible to start it.
>> Well I've cancelled Eclipse and SDK directory and installed everythig
>> from the beginning. No errors. Eclipse restarted itself but I cannot find
>> Android in the Preference Panel. There is no icon for Andoid on the Tool
>> bar also.
>>
>> Can anyone help me? Maybe I should install a previous version. I've
>> installed the very last SDK (20) and Eclipse Classic Juno (maybe 4). I've
>> tried even Eclipse for mobile.
>> Is there an Eclipse error log to check why it's not loading the plugin?
>>
>> Thanks,
>> Miky
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: use big size Bitmap in AppWidget

2012-07-31 Thread bob
Why not write your own ListAdapter?

I've done it before, and it's not so bad.


On Tuesday, July 31, 2012 3:08:03 AM UTC-5, Ethan Gao wrote:
>
> hi all:
>
>  I am attempting to create an android Widget application which display 
> more than 10 images in ListView. The image size depends on screen 
> resolution, so the image might be 300*300 pixel on some high resolution 
> devices. When scrolling the listview Widget, the widget looks laggy and 
> choppy. However, this laggy problem only happens on some high resolution 
> device. I looked into android source code, and find out that there is a 
> cache in RemoteViewsAdapter whose size is fixed to 2MB. 2MB is enough in 
> most device, but not in high resolution devices. 
> Is there anyone see this problem as well? Any help would be 
> 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

[android-developers] Re: No "Android" in the preferences panel

2012-07-31 Thread ole!
Same problem exactly encountered today when I update to ADT 20.
Mac OSX 1.5.8, Eclipse June, ADT 20
reinstalled everything!
No go.

Anyone?

On Monday, July 30, 2012 8:13:40 AM UTC-4, Miky Papa wrote:
>
> Hi!
>
> I'm very upset as I am a new Android developer and i've installed Eclipse, 
> ADT SDK several times.
> I've been using Eclipse Indigo for a while on a Mac. As the emulater got 
> slower and slower every day I've decided to cancel the device and update 
> the tools. Then I've updated Eclipse too. Me stupid!
> Eclipse blowed up with an error (something about an incompatibility or 
> something). It wasn't possible to start it.
> Well I've cancelled Eclipse and SDK directory and installed everythig from 
> the beginning. No errors. Eclipse restarted itself but I cannot find 
> Android in the Preference Panel. There is no icon for Andoid on the Tool 
> bar also.
>
> Can anyone help me? Maybe I should install a previous version. I've 
> installed the very last SDK (20) and Eclipse Classic Juno (maybe 4). I've 
> tried even Eclipse for mobile.
> Is there an Eclipse error log to check why it's not loading the plugin?
>
> Thanks, 
> Miky
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Device compatibility when publishing on the Play Store

2012-07-31 Thread RichardC
Paste your manifest here please

On Tuesday, July 31, 2012 9:19:08 PM UTC+1, Amokrane wrote:
>
> Hi,
>
>
> We have an issue publishing a new app on the Play Store. The error message 
> is that no devices compatible with the app have been found...
>
> This is what the manifest looks like: https://gist.github.com/3220116(between 
> the  I have defined a couple 
> activities/services.
>
> It's driving me crazy! I have already published 2 apps before (It was the 
> Market at that time, did anything change?)
>
> Thank your for your help!
>
>

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

Re: [android-developers] SlidingDrawer backgrounds

2012-07-31 Thread Justin Anderson
Set the background color of the LinearLayout...

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


On Mon, Jul 30, 2012 at 12:42 PM, Ken H  wrote:

> This may be a stupid question (I just started getting into
> SlidingDrawers), but I have some buttons at the bottom of my drawer in a
> LinearLayout, and I want to set the background area around the buttons to a
> solid color -- the draw slides over a map and I can see the map behind the
> buttons...I don't want to see the map behind the buttons.
>
> I know this should be simple, but simple things elude me.
>
> Ken
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Camera and Voice Search not working after install ICS 4.0.3 to XOOM

2012-07-31 Thread Justin Anderson
Questions about compiling the source belong on one of the groups listed
here:
http://source.android.com/community/index.html

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


On Mon, Jul 30, 2012 at 2:01 PM, fan zhang  wrote:

> All:
>
>
> I compiled  ICS 4.0.3 and installed ICS platform to XOOM  (wingray).
>
> I found that camera does not work (Camera error CAn't connect to the
> camera) .
>
> Also Voice Search does not work.
>
>
> Does anyone experience  same problems and how to resolve those issues?
>
>
> Thanks
>
>
> Fan
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Device compatibility when publishing on the Play Store

2012-07-31 Thread Amokrane
Hi,


We have an issue publishing a new app on the Play Store. The error message 
is that no devices compatible with the app have been found...

This is what the manifest looks like: https://gist.github.com/3220116 
(between the  I have defined a couple 
activities/services.

It's driving me crazy! I have already published 2 apps before (It was the 
Market at that time, did anything change?)

Thank your for your help!

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

Re: [android-developers] Notification with sound

2012-07-31 Thread Pedro Cortez
I found

On Tue, Jul 31, 2012 at 5:10 PM, Pedro Cortez <
pedro.fellipe.cor...@gmail.com> wrote:

> i have no idea... Do you have any clue to how i find this?
>
>
> On Tue, Jul 31, 2012 at 4:45 PM, Mark Murphy wrote:
>
>> Since you requested the default sound, does your device have a
>> non-silent default sound defined in Settings for notifications?
>>
>> On Tue, Jul 31, 2012 at 3:39 PM, Pedro Cortez 
>> wrote:
>> > Hi, i'm a new developer and i cant create a notification with a sound
>> in my
>> > app.
>> > I tried this:
>> > notification.vibrate = new long[]{100, 250, 100, 500};
>> > notification .defaults = Notification.DEFAULT_SOUND;
>> > notification .audioStreamType = Notification.STREAM_DEFAULT;
>> >
>> > The app vibrate working well, but i cant hear any sound. Anyone could
>> help
>> > me?
>> > Sorry for my poor english, but english is not my mother language.
>> > --
>> > att,
>> > Pedro Cortez
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to
>> android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in DC: http://marakana.com/training/android/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> att,
> Pedro Cortez
>
>


-- 
att,
Pedro Cortez

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

2012-07-31 Thread Mark Murphy
On Tue, Jul 31, 2012 at 4:10 PM, Pedro Cortez
 wrote:
> i have no idea... Do you have any clue to how i find this?

In the Settings app, check the Sound screen.

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

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

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


Re: [android-developers] Crosscompiling PJSUA for Android.

2012-07-31 Thread Justin Anderson
There is a google group for NDK related questions... Please ask there.

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


On Mon, Jul 30, 2012 at 3:56 AM, Monty Python wrote:

> Greetings everyone!
>
> I'm trying to crosscompile a Native-C application, using only the
> crosscompilers and linkers without ndk-build. After the crosscompilation is
> done, my application seems to launch the following signal (using android
> emulator's strace):
>
> > sigaction(48472, {0xb00144c4, [], SA_RESTART}, {0xb00144c4, [],
> SA_RESTART}, 0) = -1 EINVAL (Invalid argument)
>
> By the way, I haven't found the signal 48472 anywhere, neither in pjsip,
> neither in android-ndk!! Could you please give me an advice? Thanks in
> advance.
>
>  M.P.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Notification with sound

2012-07-31 Thread Pedro Cortez
i have no idea... Do you have any clue to how i find this?

On Tue, Jul 31, 2012 at 4:45 PM, Mark Murphy wrote:

> Since you requested the default sound, does your device have a
> non-silent default sound defined in Settings for notifications?
>
> On Tue, Jul 31, 2012 at 3:39 PM, Pedro Cortez 
> wrote:
> > Hi, i'm a new developer and i cant create a notification with a sound in
> my
> > app.
> > I tried this:
> > notification.vibrate = new long[]{100, 250, 100, 500};
> > notification .defaults = Notification.DEFAULT_SOUND;
> > notification .audioStreamType = Notification.STREAM_DEFAULT;
> >
> > The app vibrate working well, but i cant hear any sound. Anyone could
> help
> > me?
> > Sorry for my poor english, but english is not my mother language.
> > --
> > att,
> > Pedro Cortez
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in DC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
att,
Pedro Cortez

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Possibility to see if boot loader unlock was successful?

2012-07-31 Thread Justin Anderson
This question has nothing whatsoever to do with this list...

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


On Mon, Jul 30, 2012 at 3:46 PM, Stefan wrote:

> Is there a possibility to see if boot loader unlock was successful?
> Mobile: Neo V with Icecream Sandwhich
> Bootloader unlocked due to http://unlockbootloader.sonymobile.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

Re: [android-developers] use big size Bitmap in AppWidget

2012-07-31 Thread Justin Anderson
Use a smaller image...

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


On Tue, Jul 31, 2012 at 2:08 AM, Ethan Gao wrote:

> hi all:
>
>  I am attempting to create an android Widget application which display
> more than 10 images in ListView. The image size depends on screen
> resolution, so the image might be 300*300 pixel on some high resolution
> devices. When scrolling the listview Widget, the widget looks laggy and
> choppy. However, this laggy problem only happens on some high resolution
> device. I looked into android source code, and find out that there is a
> cache in RemoteViewsAdapter whose size is fixed to 2MB. 2MB is enough in
> most device, but not in high resolution devices.
> Is there anyone see this problem as well? Any help would be
> 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 deal with random hangs without stack dump?

2012-07-31 Thread Justin Anderson
Do you get any information out of LogCat?

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


On Tue, Jul 31, 2012 at 3:48 AM, Francisco M. Marzoa Alonso <
franci...@marzoa.com> wrote:

> Hi there,
>
> I am facing some random hangs without neither stack dump or "force
> close" message. My app is simply closed without no message about. I am
> even using critercism for reporting crashes, but in these situations
> there is even no report.
>
> My guess is that something is crashing below Dalvik, at native level, so
> the VM has no chance to handle it.
>
> I have been able to reproduce these on my SGS2, but could not get any
> valuable information about. It occurs randomly, though I suspect of
> SoundPool. I have been able to run the app for more than an hour with
> sound disabled without crashing. But the problem is that after that, I
> have had it running for more than an hour also with sound enabled... so
> my theory about soundpool is a bit weak.
>
> Anyway it used to crash always when it should make a sound, so I do not
> discard the problem is still on the SoundPool anyway, but given its own
> random nature it is very difficult to determine why and thus find a
> reliable workaround.
>
> I am about to fully remove soundpool from my app and use mediaplayer
> instead to see if there is some improvement, but in any case I rather
> like to know how other developers deals with these random crashes, and
> if there is some way of debug them through Eclipse and ADB tools at
> least to be more closed to the source of the problem.
>
> Best regards,
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-07-31 Thread Mark Murphy
Since you requested the default sound, does your device have a
non-silent default sound defined in Settings for notifications?

On Tue, Jul 31, 2012 at 3:39 PM, Pedro Cortez  wrote:
> Hi, i'm a new developer and i cant create a notification with a sound in my
> app.
> I tried this:
> notification.vibrate = new long[]{100, 250, 100, 500};
> notification .defaults = Notification.DEFAULT_SOUND;
> notification .audioStreamType = Notification.STREAM_DEFAULT;
>
> The app vibrate working well, but i cant hear any sound. Anyone could help
> me?
> Sorry for my poor english, but english is not my mother language.
> --
> att,
> Pedro Cortez
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

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

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


Re: [android-developers] Re: onCreate and orientation change

2012-07-31 Thread AgricultureDeveloper
Thank you so much, you saved my life with this simple tip.

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

2012-07-31 Thread Pedro Cortez
Hi, i'm a new developer and i cant create a notification with a sound in my
app.
I tried this:
notification.vibrate = new long[]{100, 250, 100, 500};
 notification .defaults = Notification.DEFAULT_SOUND;
 notification .audioStreamType = Notification.STREAM_DEFAULT;

The app vibrate working well, but i cant hear any sound. Anyone could help
me?
Sorry for my poor english, but english is not my mother language.
-- 
att,
Pedro Cortez

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

2012-07-31 Thread Kristopher Micinski
On Tue, Jul 31, 2012 at 3:31 PM, Károly Holczhauser
 wrote:
> @Spooky: Thx, I didn`t know about the ndk group !:)
> @bob: maybe from the another side ? Write some android app in c# ? Monodroid
> ? What do you think about it ?
>

@your second comment: I kind of doubt that if you require a shared
library it will work on Android without significant munging (read:
rewriting).  So if someone just handed it to you you're probably going
to have problems.

As for using monodroid, I don't really feel like that's a viable
option, but even if it is, you'll have to check with another forum,
this group is exclusively the SDK.

kris

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


[android-developers] Re: convert dll to so and include into android project

2012-07-31 Thread Károly Holczhauser
@Spooky: Thx, I didn`t know about the ndk group !:)
@bob: maybe from the another side ? Write some android app in c# ? 
Monodroid ? What do you think about it ?

On Tuesday, 31 July 2012 21:26:07 UTC+2, bob wrote:
>
> If it's in C#, it probably requires .NET, and you can't do .NET on Android.
>
> On Tuesday, July 31, 2012 10:39:18 AM UTC-5, Károly Holczhauser wrote:
>>
>> Hello developers ! 
>>
>>  I have a huge problem, and I don`t get over it, so please if you are 
>> able give me some help.:
>> we have a microcontroller library in c# which has been converted out into 
>> a DLL file. It is okay, and nice. I have to write an Android "remote 
>> controller" applicaiton for the microcontroller, so I have to include the 
>> DLL into my Eclipse project, to be able call functions in it. It is not 
>> possible ( i was not able to do :) ) so I`m trying to convert the dll by 
>> the android NDK, because it is product and .so file. 
>>
>> My first question is it a good way ?
>>
>> After i have an so file, I woud like to include in to my Eclipse project, 
>> but I was not able to do it :( 
>>
>> Is anyone have any idea, or do you know any solution ? 
>> Thank you so much, 
>> 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

[android-developers] Re: convert dll to so and include into android project

2012-07-31 Thread bob
 

If it's in C#, it probably requires .NET, and you can't do .NET on Android.

On Tuesday, July 31, 2012 10:39:18 AM UTC-5, Károly Holczhauser wrote:
>
> Hello developers ! 
>
>  I have a huge problem, and I don`t get over it, so please if you are able 
> give me some help.:
> we have a microcontroller library in c# which has been converted out into 
> a DLL file. It is okay, and nice. I have to write an Android "remote 
> controller" applicaiton for the microcontroller, so I have to include the 
> DLL into my Eclipse project, to be able call functions in it. It is not 
> possible ( i was not able to do :) ) so I`m trying to convert the dll by 
> the android NDK, because it is product and .so file. 
>
> My first question is it a good way ?
>
> After i have an so file, I woud like to include in to my Eclipse project, 
> but I was not able to do it :( 
>
> Is anyone have any idea, or do you know any solution ? 
> Thank you so much, 
> 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] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread bob
What do you mean "hover events seem to work somewhat better"?  What's a 
hover event on a touchscreen?


On Tuesday, July 31, 2012 12:54:25 PM UTC-5, Streets Of Boston wrote:
>
> Thank you Mark.
>
> I've been trying to update our app to the latest and greatest in JellyBean 
> accessibility. This is one issue I encountered.
>
> I've also been trying to implement some AccesibilityDelegate 
> and AccessibilityNodeProvider implementations of our own custom views to 
> establish a virtual view hierarchy, but without any success. Even the 
> samples (ApiDemos) for accessibility can't handle the accessibility-focus 
> events well (hover events seem to work somewhat better). I wish there were 
> some proper examples - that work! - of how to make a fully accessible (also 
> on JellyBean) custom view with a custom virtual view hierarchy.  Do you 
> know of any?
>
>
> On Tuesday, July 31, 2012 12:45:16 PM UTC-4, Mark Murphy (a Commons Guy) 
> wrote:
>>
>> On Tue, Jul 31, 2012 at 12:31 PM, Streets Of Boston 
>>  wrote: 
>> > If this is not the way to do it, how would one prevent accessibility 
>> focus 
>> > to a particular control? 
>>
>> Beats me. Sorry! 
>>
>> -- 
>> Mark Murphy (a Commons Guy) 
>> http://commonsware.com | http://github.com/commonsguy 
>> http://commonsware.com/blog | http://twitter.com/commonsguy 
>>
>> Android Training in DC: http://marakana.com/training/android/ 
>>
>

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

[android-developers] Re: ScrollView in Android 4.1 not working

2012-07-31 Thread bob
 

Maybe put your license agreement in a WebView instead?



On Monday, July 30, 2012 11:29:07 PM UTC-5, Shogun wrote:
>
> Hello. 
> I have worked with Android 4.0 and my application has worked very well. 
> But after updating to 4.1 I found that an activity in my application not 
> working.
> LogCat shows exception: 
> "07-31 09:54:41.008: E/AndroidRuntime(11886): 
> java.lang.ArrayIndexOutOfBoundsException: length=244; index=339
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at 
> android.text.MeasuredText.addStyleRun(MeasuredText.java:168)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at 
> android.text.MeasuredText.addStyleRun(MeasuredText.java:204)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at 
> android.text.StaticLayout.generate(StaticLayout.java:281)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at 
> android.text.StaticLayout.(StaticLayout.java:140)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at 
> android.text.StaticLayout.(StaticLayout.java:80)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at 
> android.text.StaticLayout.(StaticLayout.java:59)"
>
> My activity contains ScrollView component and I think, that problem in it:
> "
> http://schemas.android.com/apk/res/android";
> android:layout_width="match_parent"
> android:layout_height="fill_parent"
> android:orientation="vertical" >
>
>  android:layout_width="match_parent"
> android:layout_height="wrap_content"
> android:orientation="horizontal" >
>
>  android:id="@+id/agreementRejectButton"
> android:layout_width="149dp"
> android:layout_height="wrap_content"
> android:onClick="onRejectButtonClick"
> android:text="@string/agreement_decline" />
>
>  android:id="@+id/agreementAcceptButton"
> android:layout_width="match_parent"
> android:layout_height="wrap_content"
> android:onClick="onAcceptButtonClick"
> android:text="@string/agreement_accept" />
> 
>
>  android:id="@+id/scrollView"
> android:layout_width="match_parent"
> android:layout_height="fill_parent" >
>
>
>
>  android:id="@+id/agreementTextView"
> android:layout_width="fill_parent"
> android:layout_height="match_parent"
> android:text="" />
>
> 
>
> "
>
> Note, that all working in Android 2.3, 3.2 and 4.0. This problem occurs 
> only in Android 4.1.
>

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

2012-07-31 Thread bob
 

Sounds more like a "change in dpi" issue.


The 4.0 phone is probably xhdpi, and your stuff is in the hdpi folder, so 
it gets scaled.



On Tuesday, July 31, 2012 1:25:44 PM UTC-5, Fausteric wrote:
>
> Hello ,
>
> There is a problem when using RotateAnimation in android 4.0.
> On all pre  android 4.0 versions it works ok.
>
> The RotateAnimation is good on a android device with a HVGA screen.
>
> The RotateAnimation is not good, the center point is shifted, on devices 
> with a other screen size.
>
> This is my code:
>
> *final RotateAnimation animRotate =*
> * new RotateAnimation(0.0f, 360.0f,*
> * RotateAnimation.RELATIVE_TO_SELF , 0.5f,*
> * RotateAnimation.RELATIVE_TO_SELF , 0.5f);*
>
>
> I can make the RotateAnimation working correctly for WVGA, i have to 
> change 0.5f to 0.f:
>
> *final RotateAnimation animRotate =*
> * new RotateAnimation(0.0f, 360.0f,*
> * RotateAnimation.RELATIVE_TO_SELF , 0.f,*
> * RotateAnimation.RELATIVE_TO_SELF , 0.f);*
>
> I think it has something to do with scaling but can not find anywhere what 
> the solution is.
>
> Does anyone know of this problem, is it a bug?
>
> Faust
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Kristopher Micinski
This goes in the category of "apps modifying the system."

Your app shouldn't be able to modify the system.  While this sounds
funny, it's true.  Sure, you can write such apps and hack around
things below 2.3.3, but do you really expect your app will really be
used for that long, then?

kris

On Tue, Jul 31, 2012 at 12:38 PM, CJ  wrote:
> The permission needed is  android:name="android.permission.CHANGE_NETWORK_STATE"/>
> Android 2.3 and above can do that with the code I supply. I am asking a
> question how to do it for version below 2.3.
>
> Many apps are doing it, the most popular one I mentioned was JuiceDefender:
> http://maketecheasier.com/increase-phones-battery-life-with-juicedefender-android/2011/02/25
>
> On Wednesday, 1 August 2012 00:28:33 UTC+8, Robert Greenwalt wrote:
>>
>> How to do the permission?  That's not your issue - the platform needs to
>> do it.
>>
>> How to turn data on/off?  It looks like you'll need a mix of methods.
>> You're using undocumented methods from the past and present and they may
>> change in the future.  You can do different things dependent on the version
>> of the platform.
>>
>>
>> On Tue, Jul 31, 2012 at 9:18 AM, wrote:
>>>
>>> Yes, the next qns is how to do it...
>>>
>>> On Wed, Aug 1, 2012 at 12:14 AM, Robert Greenwalt 
>>> wrote:

 If the app is granted permission by the user it would be ok.  And apps
 that do intelligent things in this area may be useful and welcome.  Without
 permission limits though, yeah this could be a problem.


 On Tue, Jul 31, 2012 at 9:04 AM, Nick Kralevich  wrote:
>
>
> Hmm  From the platform's point of view, this sounds like a denial
> of service attack against other applications on the device. One 
> application
> shouldn't be able to interfere with another application's network
> connectivity without the user being involved.
>
> -- Nick
>
>
> On Tue, Jul 31, 2012 at 8:26 AM, CJ wrote:
>>
>> Hi, I am working on a app to automate some setting eg. to perform
>> certain action such as disable mobile data when battery is low or night 
>> mode
>> etc.
>> There are app in the market that able to disable/enable mobile data
>> connection like SmartAction and a few more. I also dislike the alter APN
>> method so I am looking for better alternatives.
>>
>> On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:
>>>
>>> Apps won't be able to alter the APN database after Honeycomb or
>>> perhaps ICS.  The User can disable data from settings.  Why does an
>>> application need to disable data?
>>>
>>>
>>> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:
>>>
 Hi,

 I have been googling for a while able the best or right way to
 disable/enable mobile network.

 I tried the following code which is all over Stackoverflow and is
 working fine for gingerbread and higher:

 private void setMobileDataEnabled(Context context, boolean enabled)
 throws Exception {
 final ConnectivityManager conman = (ConnectivityManager) context
 .getSystemService(Context.CONNECTIVITY_SERVICE);
 final Class conmanClass =
 Class.forName(conman.getClass().getName());
 final Field iConnectivityManagerField = conmanClass
 .getDeclaredField("mService");
 iConnectivityManagerField.setAccessible(true);
 final Object iConnectivityManager = iConnectivityManagerField
 .get(conman);
 final Class iConnectivityManagerClass = Class
 .forName(iConnectivityManager.getClass().getName());
 final Method setMobileDataEnabledMethod = iConnectivityManagerClass
 .getDeclaredMethod("setMobileDataEnabled", Boolean.TYPE);
 setMobileDataEnabledMethod.setAccessible(true);

 setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);
 }

 Somehow I didn't find a way to do the same thing for Android 2.2 and
 below. Many mentioned to change the APN name to something invalid like 
 what
 app APNDroid did but is that the only way?

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

2012-07-31 Thread TreKing
On Tue, Jul 31, 2012 at 10:45 AM, bob  wrote:

>
> Is this just some magic fake URL that's built into Android?
>

http://lmgtfy.com/?q=xmlns%3Aandroid

-
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] RotateAnimation wrong in android 4.0

2012-07-31 Thread Faust Nijhuis
Hello ,

There is a problem when using RotateAnimation in android 4.0.
On all pre  android 4.0 versions it works ok.

The RotateAnimation is good on a android device with a HVGA screen.

The RotateAnimation is not good, the center point is shifted, on devices
with a other screen size.

This is my code:

*final RotateAnimation animRotate =*
* new RotateAnimation(0.0f, 360.0f,*
* RotateAnimation.RELATIVE_TO_SELF , 0.5f,*
* RotateAnimation.RELATIVE_TO_SELF , 0.5f);*


I can make the RotateAnimation working correctly for WVGA, i have to change
0.5f to 0.f:

*final RotateAnimation animRotate =*
* new RotateAnimation(0.0f, 360.0f,*
* RotateAnimation.RELATIVE_TO_SELF , 0.f,*
* RotateAnimation.RELATIVE_TO_SELF , 0.f);*

I think it has something to do with scaling but can not find anywhere what
the solution is.

Does anyone know of this problem, is it a bug?

Faust

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

2012-07-31 Thread Nobu Games
As far as I understand the first argument: it is whatever object you want 
to use for tagging that span of text. It's up to your app to come up with 
the right interpretation. If you want to use the span for formatting you 
can use one of the 
CharacterStyleobjects
 as first argument.

Here is a tutorial about rich style formatting with spannable strings: 
http://www.chrisumbel.com/article/android_textview_rich_text_spannablestring


On Tuesday, July 31, 2012 1:10:35 PM UTC-5, bob wrote:
>
> I'm trying to learn about SpannableStrings, and it is boiling down to this 
> setSpan method:
>
>
> http://developer.android.com/reference/android/text/SpannableString.html#setSpan(java.lang.Object,
>  
> int, int, int)
>
> However, of course, the method is completely undocumented, and it is not 
> clear what ought to be passed into the first
> parameter.  Am I missing something here, or did they just forget to write 
> this?
>
>

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

Re: [android-developers] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Mark Murphy
On Tue, Jul 31, 2012 at 1:54 PM, Streets Of Boston
 wrote:
> I've also been trying to implement some AccesibilityDelegate and
> AccessibilityNodeProvider implementations of our own custom views to
> establish a virtual view hierarchy, but without any success. Even the
> samples (ApiDemos) for accessibility can't handle the accessibility-focus
> events well (hover events seem to work somewhat better). I wish there were
> some proper examples - that work! - of how to make a fully accessible (also
> on JellyBean) custom view with a custom virtual view hierarchy.  Do you know
> of any?

Sorry, I haven't looked.

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

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

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


[android-developers] CAN-SPAN?

2012-07-31 Thread bob
I'm trying to learn about SpannableStrings, and it is boiling down to this 
setSpan method:

http://developer.android.com/reference/android/text/SpannableString.html#setSpan(java.lang.Object,
 
int, int, int)

However, of course, the method is completely undocumented, and it is not 
clear what ought to be passed into the first
parameter.  Am I missing something here, or did they just forget to write 
this?

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

Re: [android-developers] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Streets Of Boston
Thank you Mark.

I've been trying to update our app to the latest and greatest in JellyBean 
accessibility. This is one issue I encountered.

I've also been trying to implement some AccesibilityDelegate 
and AccessibilityNodeProvider implementations of our own custom views to 
establish a virtual view hierarchy, but without any success. Even the 
samples (ApiDemos) for accessibility can't handle the accessibility-focus 
events well (hover events seem to work somewhat better). I wish there were 
some proper examples - that work! - of how to make a fully accessible (also 
on JellyBean) custom view with a custom virtual view hierarchy.  Do you 
know of any?


On Tuesday, July 31, 2012 12:45:16 PM UTC-4, Mark Murphy (a Commons Guy) 
wrote:
>
> On Tue, Jul 31, 2012 at 12:31 PM, Streets Of Boston 
>  wrote: 
> > If this is not the way to do it, how would one prevent accessibility 
> focus 
> > to a particular control? 
>
> Beats me. Sorry! 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in DC: http://marakana.com/training/android/ 
>

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

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread RichardC
On Tuesday, July 31, 2012 5:28:19 PM UTC+1, Latimerius wrote:

> On Tue, Jul 31, 2012 at 2:51 AM, Dianne Hackborn  
> wrote: 
> > Btw, I love how more and more I see people dragging out this quote every 
> > time they encounter some limit that they have to deal with, as if there 
> > should just not be limits on the resources they can use. 
>
> There should not be arbitrary limits mandated by an opaque entity who 
> always knows better. 
>

There always are it's called life.

Seriously it's a mobile computer with compromises between
price::power::performance::capacity::user-expectations

If you try to maximize (remove the limits from) any one of the above 
you adversely affect the others.

 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Mark Murphy
On Tue, Jul 31, 2012 at 12:31 PM, Streets Of Boston
 wrote:
> If this is not the way to do it, how would one prevent accessibility focus
> to a particular control?

Beats me. Sorry!

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

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

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


Re: [android-developers] ScrollView in Android 4.1 not working

2012-07-31 Thread Romain Guy
This is a know TextView bug that we fixed internally. The fix will be part
of an Android update.
On Jul 30, 2012 11:20 PM, "Shogun"  wrote:

> Hello.
> I have worked with Android 4.0 and my application has worked very well.
> But after updating to 4.1 I found that an activity in my application not
> working.
> LogCat shows exception:
> "07-31 09:54:41.008: E/AndroidRuntime(11886):
> java.lang.ArrayIndexOutOfBoundsException: length=244; index=339
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at
> android.text.MeasuredText.addStyleRun(MeasuredText.java:168)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at
> android.text.MeasuredText.addStyleRun(MeasuredText.java:204)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at
> android.text.StaticLayout.generate(StaticLayout.java:281)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at
> android.text.StaticLayout.(StaticLayout.java:140)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at
> android.text.StaticLayout.(StaticLayout.java:80)
> 07-31 09:54:41.008: E/AndroidRuntime(11886): at
> android.text.StaticLayout.(StaticLayout.java:59)"
>
> My activity contains ScrollView component and I think, that problem in it:
> "
> http://schemas.android.com/apk/res/android";
> android:layout_width="match_parent"
> android:layout_height="fill_parent"
> android:orientation="vertical" >
>
>  android:layout_width="match_parent"
> android:layout_height="wrap_content"
> android:orientation="horizontal" >
>
>  android:id="@+id/agreementRejectButton"
> android:layout_width="149dp"
> android:layout_height="wrap_content"
> android:onClick="onRejectButtonClick"
> android:text="@string/agreement_decline" />
>
>  android:id="@+id/agreementAcceptButton"
> android:layout_width="match_parent"
> android:layout_height="wrap_content"
> android:onClick="onAcceptButtonClick"
> android:text="@string/agreement_accept" />
> 
>
>  android:id="@+id/scrollView"
> android:layout_width="match_parent"
> android:layout_height="fill_parent" >
>
>
>
>  android:id="@+id/agreementTextView"
> android:layout_width="fill_parent"
> android:layout_height="match_parent"
> android:text="" />
>
> 
>
> "
>
> Note, that all working in Android 2.3, 3.2 and 4.0. This problem occurs
> only in Android 4.1.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread CJ
The permission needed is 
Android 2.3 and above can do that with the code I supply. I am asking a 
question how to do it for version below 2.3.

Many apps are doing it, the most popular one I mentioned was JuiceDefender:
http://maketecheasier.com/increase-phones-battery-life-with-juicedefender-android/2011/02/25
 

On Wednesday, 1 August 2012 00:28:33 UTC+8, Robert Greenwalt wrote:
>
> How to do the permission?  That's not your issue - the platform needs to 
> do it.
>
> How to turn data on/off?  It looks like you'll need a mix of methods. 
>  You're using undocumented methods from the past and present and they may 
> change in the future.  You can do different things dependent on the version 
> of the platform.
>
>
> On Tue, Jul 31, 2012 at 9:18 AM, wrote:
>
>> Yes, the next qns is how to do it...
>>
>> On Wed, Aug 1, 2012 at 12:14 AM, Robert Greenwalt 
>> wrote:
>>
>>> If the app is granted permission by the user it would be ok.  And apps 
>>> that do intelligent things in this area may be useful and welcome.  Without 
>>> permission limits though, yeah this could be a problem.
>>>  
>>>
>>> On Tue, Jul 31, 2012 at 9:04 AM, Nick Kralevich  wrote:
>>>
  
 Hmm  From the platform's point of view, this sounds like a denial 
 of service attack against other applications on the device. One 
 application 
 shouldn't be able to interfere with another application's network 
 connectivity without the user being involved.

 -- Nick


 On Tue, Jul 31, 2012 at 8:26 AM, CJ wrote:

> Hi, I am working on a app to automate some setting eg. to perform 
> certain action such as disable mobile data when battery is low or night 
> mode etc.
> There are app in the market that able to disable/enable mobile data 
> connection like SmartAction and a few more. I also dislike the alter APN 
> method so I am looking for better alternatives.
>
> On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:
>
>> Apps won't be able to alter the APN database after Honeycomb or 
>> perhaps ICS.  The User can disable data from settings.  Why does an 
>> application need to disable data?
>>
>>
>> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:
>>
>> Hi,
>>>
>>> I have been googling for a while able the best or right way to 
>>> disable/enable mobile network.
>>>
>>> I tried the following code which is all over Stackoverflow and is 
>>> working fine for gingerbread and higher:
>>>
>>> private void setMobileDataEnabled(Context context, boolean enabled)
>>> throws Exception {
>>>  final ConnectivityManager conman = (ConnectivityManager) context
>>>  .getSystemService(Context.**CONNECTIVITY_SERVICE);
>>> final Class conmanClass = Class.forName(conman.getClass(**
>>> ).getName());
>>>  final Field iConnectivityManagerField = conmanClass
>>> .getDeclaredField("mService");
>>> iConnectivityManagerField.**setAccessible(true);
>>>  final Object iConnectivityManager = iConnectivityManagerField
>>> .get(conman);
>>> final Class iConnectivityManagerClass = Class
>>>  .forName(iConnectivityManager.**getClass().getName());
>>> final Method setMobileDataEnabledMethod = iConnectivityManagerClass
>>>  .getDeclaredMethod("**setMobileDataEnabled", Boolean.TYPE);
>>> setMobileDataEnabledMethod.**setAccessible(true);
>>>
>>> setMobileDataEnabledMethod.**invoke(iConnectivityManager, enabled);
>>> }
>>>
>>> Somehow I didn't find a way to do the same thing for Android 2.2 and 
>>> below. Many mentioned to change the APN name to something invalid like 
>>> what 
>>> app APNDroid did but is that the only way?
>>>  
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>
>>
>>  -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



 -- 
 Nick Kralevich | Android Security | n...@google.com | 650.214.4037

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

Re: [android-developers] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Streets Of Boston
hi Mark,

I found it in the layout editor (using Eclipse). It shows up as a property 
and you can select 'auto', 'yes' or 'no'. 

If this is not the way to do it, how would one prevent accessibility focus 
to a particular control?

--- Anton.

On Tuesday, July 31, 2012 11:11:15 AM UTC-4, Mark Murphy (a Commons Guy) 
wrote:
>
> There's no accessibilityFocusable attribute in the documentation, at 
> least based on a simple search. I don't see anything quite like it in 
> the list of XML attributes for View. Where did you find this? 
>
> On Tue, Jul 31, 2012 at 10:59 AM, Streets Of Boston 
> wrote: 
> > Hi, 
> > 
> > I have a text-view next to a seekbar. The seekbar is accessible and 
> > announces its current value. The text-view also shows this value. 
> > For accessibility, I'd like to make the text-view not 
> > accessibility-focusable, since the seekbar already is (no use in stating 
> the 
> > same thing twice). 
> > 
> > However, when adding android:accessibilityFocusable="no" to the layout 
> xml, 
> > I get this error: 
> > No resource identifier found for attribute 'accessibilityFocusable' in 
> > package 'android' page_slider_layout.xml /KnfbBlio/res/layout line 37 
> > Android AAPT Problem 
> > 
> > The project build target is 4.1 (api level 16). 
> > The targetSdk in the AndroidManifest.xml is set to 16 as well. 
> > 
> > Any idea what the problem could be? 
> > 
> > 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 
>
>
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in DC: http://marakana.com/training/android/ 
>

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

Re: [android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Robert Greenwalt
How to do the permission?  That's not your issue - the platform needs to do
it.

How to turn data on/off?  It looks like you'll need a mix of methods.
 You're using undocumented methods from the past and present and they may
change in the future.  You can do different things dependent on the version
of the platform.


On Tue, Jul 31, 2012 at 9:18 AM, Joven Chiew  wrote:

> Yes, the next qns is how to do it...
>
> On Wed, Aug 1, 2012 at 12:14 AM, Robert Greenwalt 
> wrote:
>
>> If the app is granted permission by the user it would be ok.  And apps
>> that do intelligent things in this area may be useful and welcome.  Without
>> permission limits though, yeah this could be a problem.
>>
>>
>> On Tue, Jul 31, 2012 at 9:04 AM, Nick Kralevich  wrote:
>>
>>>
>>> Hmm  From the platform's point of view, this sounds like a denial of
>>> service attack against other applications on the device. One application
>>> shouldn't be able to interfere with another application's network
>>> connectivity without the user being involved.
>>>
>>> -- Nick
>>>
>>>
>>> On Tue, Jul 31, 2012 at 8:26 AM, CJ wrote:
>>>
 Hi, I am working on a app to automate some setting eg. to perform
 certain action such as disable mobile data when battery is low or night
 mode etc.
 There are app in the market that able to disable/enable mobile data
 connection like SmartAction and a few more. I also dislike the alter APN
 method so I am looking for better alternatives.

 On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:

> Apps won't be able to alter the APN database after Honeycomb or
> perhaps ICS.  The User can disable data from settings.  Why does an
> application need to disable data?
>
>
> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:
>
> Hi,
>>
>> I have been googling for a while able the best or right way to
>> disable/enable mobile network.
>>
>> I tried the following code which is all over Stackoverflow and is
>> working fine for gingerbread and higher:
>>
>> private void setMobileDataEnabled(Context context, boolean enabled)
>> throws Exception {
>>  final ConnectivityManager conman = (ConnectivityManager) context
>>  .getSystemService(Context.**CONNECTIVITY_SERVICE);
>> final Class conmanClass = Class.forName(conman.getClass(**
>> ).getName());
>>  final Field iConnectivityManagerField = conmanClass
>> .getDeclaredField("mService");
>> iConnectivityManagerField.**setAccessible(true);
>>  final Object iConnectivityManager = iConnectivityManagerField
>> .get(conman);
>> final Class iConnectivityManagerClass = Class
>>  .forName(iConnectivityManager.**getClass().getName());
>> final Method setMobileDataEnabledMethod = iConnectivityManagerClass
>>  .getDeclaredMethod("**setMobileDataEnabled", Boolean.TYPE);
>> setMobileDataEnabledMethod.**setAccessible(true);
>>
>> setMobileDataEnabledMethod.**invoke(iConnectivityManager, enabled);
>> }
>>
>> Somehow I didn't find a way to do the same thing for Android 2.2 and
>> below. Many mentioned to change the APN name to something invalid like 
>> what
>> app APNDroid did but is that the only way?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@**
>> googlegroups.com 
>> To unsubscribe from this group, send email to
>> android-developers+**unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/**group/android-developers?hl=en
>
>
>  --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread Latimerius
On Tue, Jul 31, 2012 at 2:51 AM, Dianne Hackborn  wrote:
> Btw, I love how more and more I see people dragging out this quote every
> time they encounter some limit that they have to deal with, as if there
> should just not be limits on the resources they can use.

There should not be arbitrary limits mandated by an opaque entity who
always knows better.

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

2012-07-31 Thread howa
Hi,

On Tuesday, July 31, 2012 10:43:26 PM UTC+8, Nikolay Elenkov wrote:
>
> On Tue, Jul 31, 2012 at 11:38 PM, howa wrote: 
> t doesn't matter. They can load you app with malware, put it on some 
> 'sharing' 
> site and it will look like it came from you. It will even update 
> cleanly on top of 
> your own app. 
>
>
>
For the protection, you mean the "Keystore password" or the "Key password"?

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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Joven Chiew
Yes, the next qns is how to do it...

On Wed, Aug 1, 2012 at 12:14 AM, Robert Greenwalt wrote:

> If the app is granted permission by the user it would be ok.  And apps
> that do intelligent things in this area may be useful and welcome.  Without
> permission limits though, yeah this could be a problem.
>
>
> On Tue, Jul 31, 2012 at 9:04 AM, Nick Kralevich  wrote:
>
>>
>> Hmm  From the platform's point of view, this sounds like a denial of
>> service attack against other applications on the device. One application
>> shouldn't be able to interfere with another application's network
>> connectivity without the user being involved.
>>
>> -- Nick
>>
>>
>> On Tue, Jul 31, 2012 at 8:26 AM, CJ wrote:
>>
>>> Hi, I am working on a app to automate some setting eg. to perform
>>> certain action such as disable mobile data when battery is low or night
>>> mode etc.
>>> There are app in the market that able to disable/enable mobile data
>>> connection like SmartAction and a few more. I also dislike the alter APN
>>> method so I am looking for better alternatives.
>>>
>>> On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:
>>>
 Apps won't be able to alter the APN database after Honeycomb or perhaps
 ICS.  The User can disable data from settings.  Why does an application
 need to disable data?


 On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:

 Hi,
>
> I have been googling for a while able the best or right way to
> disable/enable mobile network.
>
> I tried the following code which is all over Stackoverflow and is
> working fine for gingerbread and higher:
>
> private void setMobileDataEnabled(Context context, boolean enabled)
> throws Exception {
>  final ConnectivityManager conman = (ConnectivityManager) context
>  .getSystemService(Context.**CONNECTIVITY_SERVICE);
> final Class conmanClass = Class.forName(conman.getClass(**
> ).getName());
>  final Field iConnectivityManagerField = conmanClass
> .getDeclaredField("mService");
> iConnectivityManagerField.**setAccessible(true);
>  final Object iConnectivityManager = iConnectivityManagerField
> .get(conman);
> final Class iConnectivityManagerClass = Class
>  .forName(iConnectivityManager.**getClass().getName());
> final Method setMobileDataEnabledMethod = iConnectivityManagerClass
>  .getDeclaredMethod("**setMobileDataEnabled", Boolean.TYPE);
> setMobileDataEnabledMethod.**setAccessible(true);
>
> setMobileDataEnabledMethod.**invoke(iConnectivityManager, enabled);
> }
>
> Somehow I didn't find a way to do the same thing for Android 2.2 and
> below. Many mentioned to change the APN name to something invalid like 
> what
> app APNDroid did but is that the only way?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@**
> googlegroups.com 
> To unsubscribe from this group, send email to
> android-developers+**unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en


  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>
>>
>> --
>> Nick Kralevich | Android Security | n...@google.com | 650.214.4037
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Joven Chiew
Well, yes and no. I do understand it is a little weird because an app can
turn on mobile data out of user will. But we are Android :) user can decide
to uninstall ill intention app. Think of it in another way, if my phone
battery is critically low I would want to turn off my data so I can still
receive sms/phone and the battery will last a lot longer. If I keep it in
my pocket and didn't realise that my battery is low, I wouldn't have a
change to switch data off. There are many app such as the famous Juice
Defender that control what happen when battery is low etc, and many apps
has ability to control it. I am sure it is there just not being documented.


On Wed, Aug 1, 2012 at 12:04 AM, Nick Kralevich  wrote:

>
> Hmm  From the platform's point of view, this sounds like a denial of
> service attack against other applications on the device. One application
> shouldn't be able to interfere with another application's network
> connectivity without the user being involved.
>
> -- Nick
>
> On Tue, Jul 31, 2012 at 8:26 AM, CJ wrote:
>
>> Hi, I am working on a app to automate some setting eg. to perform certain
>> action such as disable mobile data when battery is low or night mode etc.
>> There are app in the market that able to disable/enable mobile data
>> connection like SmartAction and a few more. I also dislike the alter APN
>> method so I am looking for better alternatives.
>>
>> On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:
>>
>>> Apps won't be able to alter the APN database after Honeycomb or perhaps
>>> ICS.  The User can disable data from settings.  Why does an application
>>> need to disable data?
>>>
>>>
>>> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:
>>>
>>> Hi,

 I have been googling for a while able the best or right way to
 disable/enable mobile network.

 I tried the following code which is all over Stackoverflow and is
 working fine for gingerbread and higher:

 private void setMobileDataEnabled(Context context, boolean enabled)
 throws Exception {
  final ConnectivityManager conman = (ConnectivityManager) context
  .getSystemService(Context.**CONNECTIVITY_SERVICE);
 final Class conmanClass = Class.forName(conman.getClass(**
 ).getName());
  final Field iConnectivityManagerField = conmanClass
 .getDeclaredField("mService");
 iConnectivityManagerField.**setAccessible(true);
  final Object iConnectivityManager = iConnectivityManagerField
 .get(conman);
 final Class iConnectivityManagerClass = Class
  .forName(iConnectivityManager.**getClass().getName());
 final Method setMobileDataEnabledMethod = iConnectivityManagerClass
  .getDeclaredMethod("**setMobileDataEnabled", Boolean.TYPE);
 setMobileDataEnabledMethod.**setAccessible(true);

 setMobileDataEnabledMethod.**invoke(iConnectivityManager, enabled);
 }

 Somehow I didn't find a way to do the same thing for Android 2.2 and
 below. Many mentioned to change the APN name to something invalid like what
 app APNDroid did but is that the only way?

 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to android-developers@**
 googlegroups.com 
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=en
>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Nick Kralevich | Android Security | n...@google.com | 650.214.4037
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Robert Greenwalt
If the app is granted permission by the user it would be ok.  And apps that
do intelligent things in this area may be useful and welcome.  Without
permission limits though, yeah this could be a problem.


On Tue, Jul 31, 2012 at 9:04 AM, Nick Kralevich  wrote:

>
> Hmm  From the platform's point of view, this sounds like a denial of
> service attack against other applications on the device. One application
> shouldn't be able to interfere with another application's network
> connectivity without the user being involved.
>
> -- Nick
>
>
> On Tue, Jul 31, 2012 at 8:26 AM, CJ  wrote:
>
>> Hi, I am working on a app to automate some setting eg. to perform certain
>> action such as disable mobile data when battery is low or night mode etc.
>> There are app in the market that able to disable/enable mobile data
>> connection like SmartAction and a few more. I also dislike the alter APN
>> method so I am looking for better alternatives.
>>
>> On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:
>>
>>> Apps won't be able to alter the APN database after Honeycomb or perhaps
>>> ICS.  The User can disable data from settings.  Why does an application
>>> need to disable data?
>>>
>>>
>>> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:
>>>
>>> Hi,

 I have been googling for a while able the best or right way to
 disable/enable mobile network.

 I tried the following code which is all over Stackoverflow and is
 working fine for gingerbread and higher:

 private void setMobileDataEnabled(Context context, boolean enabled)
 throws Exception {
  final ConnectivityManager conman = (ConnectivityManager) context
  .getSystemService(Context.**CONNECTIVITY_SERVICE);
 final Class conmanClass = Class.forName(conman.getClass(**
 ).getName());
  final Field iConnectivityManagerField = conmanClass
 .getDeclaredField("mService");
 iConnectivityManagerField.**setAccessible(true);
  final Object iConnectivityManager = iConnectivityManagerField
 .get(conman);
 final Class iConnectivityManagerClass = Class
  .forName(iConnectivityManager.**getClass().getName());
 final Method setMobileDataEnabledMethod = iConnectivityManagerClass
  .getDeclaredMethod("**setMobileDataEnabled", Boolean.TYPE);
 setMobileDataEnabledMethod.**setAccessible(true);

 setMobileDataEnabledMethod.**invoke(iConnectivityManager, enabled);
 }

 Somehow I didn't find a way to do the same thing for Android 2.2 and
 below. Many mentioned to change the APN name to something invalid like what
 app APNDroid did but is that the only way?

 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to android-developers@**
 googlegroups.com 
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=en
>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Nick Kralevich | Android Security | n...@google.com | 650.214.4037
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Nick Kralevich
Hmm  From the platform's point of view, this sounds like a denial of
service attack against other applications on the device. One application
shouldn't be able to interfere with another application's network
connectivity without the user being involved.

-- Nick

On Tue, Jul 31, 2012 at 8:26 AM, CJ  wrote:

> Hi, I am working on a app to automate some setting eg. to perform certain
> action such as disable mobile data when battery is low or night mode etc.
> There are app in the market that able to disable/enable mobile data
> connection like SmartAction and a few more. I also dislike the alter APN
> method so I am looking for better alternatives.
>
> On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:
>
>> Apps won't be able to alter the APN database after Honeycomb or perhaps
>> ICS.  The User can disable data from settings.  Why does an application
>> need to disable data?
>>
>>
>> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:
>>
>> Hi,
>>>
>>> I have been googling for a while able the best or right way to
>>> disable/enable mobile network.
>>>
>>> I tried the following code which is all over Stackoverflow and is
>>> working fine for gingerbread and higher:
>>>
>>> private void setMobileDataEnabled(Context context, boolean enabled)
>>> throws Exception {
>>> final ConnectivityManager conman = (ConnectivityManager) context
>>>  .getSystemService(Context.**CONNECTIVITY_SERVICE);
>>> final Class conmanClass = Class.forName(conman.getClass(**
>>> ).getName());
>>>  final Field iConnectivityManagerField = conmanClass
>>> .getDeclaredField("mService");
>>> iConnectivityManagerField.**setAccessible(true);
>>>  final Object iConnectivityManager = iConnectivityManagerField
>>> .get(conman);
>>> final Class iConnectivityManagerClass = Class
>>>  .forName(iConnectivityManager.**getClass().getName());
>>> final Method setMobileDataEnabledMethod = iConnectivityManagerClass
>>>  .getDeclaredMethod("**setMobileDataEnabled", Boolean.TYPE);
>>> setMobileDataEnabledMethod.**setAccessible(true);
>>>
>>> setMobileDataEnabledMethod.**invoke(iConnectivityManager, enabled);
>>> }
>>>
>>> Somehow I didn't find a way to do the same thing for Android 2.2 and
>>> below. Many mentioned to change the APN name to something invalid like what
>>> app APNDroid did but is that the only way?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Nick Kralevich | Android Security | n...@google.com | 650.214.4037

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

2012-07-31 Thread Jim Graham
On Tue, Jul 31, 2012 at 08:39:18AM -0700, K??roly Holczhauser wrote:

> Is anyone have any idea, or do you know any solution ? 

First, I'm 99.% certain that you can't "convert" a DLL to a
shared library (.so).  You'll have to recompile the library in the NDK.

Second, for NDK questions, the correct group to ask your question in is
android-...@googlegroups.com, NOT this group.  This group is for
developing apps for Android using the SDK (or for a project with both,
for the SDK side of the app).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

"sigh, once upon a time T-1 was fast"
   --seen in alt.sysadmin.net-abuse.email

Android Apps Listing at http://www.jstrack.org/barcodes.html

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

2012-07-31 Thread user123
Hi,
I have an activity which contains 2 fragments. I want to save certain state 
of the activity and also of the fragments, in order to restore if the 
activity, or the fragments, are destroyed.

So I'm using onSaveInstanceState both in the fragments and in the activity, 
and take the data of the bundle passed to onCreate or onCreateView.

This works well besides, when the activity is destroyed. Then in restores 
it's own data, but, since in onCreate() I instantiate the adapter and the 
fragments again, they get no state.

How do I solve this?

Thanks in advance.

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

[android-developers] xmlns

2012-07-31 Thread bob
So, in all my layout files I have this:

xmlns:android="http://schemas.android.com/apk/res/android";

Admittedly, I only semi-understand that.

Here's one thing that confuses me:

When I go to http://schemas.android.com/apk/res/android, there is nothing 
there.

Is this just some magic fake URL that's built into 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] Merge two bitmaps

2012-07-31 Thread Jim Graham
On Tue, Jul 31, 2012 at 05:57:47AM -0700, Numair Qadir wrote:
> I want to merge two bitmaps, here is my code

I was just going to point you to the right page in the dev guide, but I
don't remember if there even is one (I learned this from a book, "Pro
Android Media").  Be advised that with larger bitmaps, you can easily
cause an Out Of Memory error and, if that isn't caught, a force close,
so if you need to do this with LARGE bitmaps, you'll have to use the NDK.

   // blend src1 and src2 into dest (must be same size and, I think they
   // have to be the same configuration, too, e.g., both ARGB_)

   Bitmap dest = Bitmap.createBitmap(width, height, src1.getConfig());
   Canvas canvas = new Canvas(src2);
   Paint paint = new Paint();

   canvas = new Canvas(src2);
   paint = new Paint();
   canvas.drawBitmap(src1, 0, 0, paint);
   paint.setXfermode(new 
PorterDuffXfermode(android.graphics.PorterDuff.Mode.SRC_OVER));
   canvas.drawBitmap(dest, 0, 0, paint);

PorterDuff has quite a few different modes, so check out the dev guide's
page on PorterDuff.Mode for more information.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  "'Wrong' is one of those concepts that depends on witnesses."
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

Android Apps Listing at http://www.jstrack.org/barcodes.html

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

2012-07-31 Thread Károly Holczhauser
Hello developers ! 

 I have a huge problem, and I don`t get over it, so please if you are able 
give me some help.:
we have a microcontroller library in c# which has been converted out into a 
DLL file. It is okay, and nice. I have to write an Android "remote 
controller" applicaiton for the microcontroller, so I have to include the 
DLL into my Eclipse project, to be able call functions in it. It is not 
possible ( i was not able to do :) ) so I`m trying to convert the dll by 
the android NDK, because it is product and .so file. 

My first question is it a good way ?

After i have an so file, I woud like to include in to my Eclipse project, 
but I was not able to do it :( 

Is anyone have any idea, or do you know any solution ? 
Thank you so much, 
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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread CJ
Hi, I am working on a app to automate some setting eg. to perform certain 
action such as disable mobile data when battery is low or night mode etc.
There are app in the market that able to disable/enable mobile data 
connection like SmartAction and a few more. I also dislike the alter APN 
method so I am looking for better alternatives.

On Tuesday, 31 July 2012 23:14:41 UTC+8, Robert Greenwalt wrote:
>
> Apps won't be able to alter the APN database after Honeycomb or perhaps 
> ICS.  The User can disable data from settings.  Why does an application 
> need to disable data?
>
>
> On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote:
>
>> Hi,
>>
>> I have been googling for a while able the best or right way to 
>> disable/enable mobile network.
>>
>> I tried the following code which is all over Stackoverflow and is working 
>> fine for gingerbread and higher:
>>
>> private void setMobileDataEnabled(Context context, boolean enabled)
>> throws Exception {
>> final ConnectivityManager conman = (ConnectivityManager) context
>>  .getSystemService(Context.CONNECTIVITY_SERVICE);
>> final Class conmanClass = Class.forName(conman.getClass().getName());
>>  final Field iConnectivityManagerField = conmanClass
>> .getDeclaredField("mService");
>> iConnectivityManagerField.setAccessible(true);
>>  final Object iConnectivityManager = iConnectivityManagerField
>> .get(conman);
>> final Class iConnectivityManagerClass = Class
>>  .forName(iConnectivityManager.getClass().getName());
>> final Method setMobileDataEnabledMethod = iConnectivityManagerClass
>>  .getDeclaredMethod("setMobileDataEnabled", Boolean.TYPE);
>> setMobileDataEnabledMethod.setAccessible(true);
>>
>> setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);
>> }
>>
>> Somehow I didn't find a way to do the same thing for Android 2.2 and 
>> below. Many mentioned to change the APN name to something invalid like what 
>> app APNDroid did but is that the only way?
>>  
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

2012-07-31 Thread bob
The problem is likely that your app is still dormant.  It has not exited.

What has happened is that it is paused, and when you go back to it, 
onResume is called…  not onCreate.

You can make your app truly exit when the back button is pressed by adding 
this to your Activity class.

@Override
public void onBackPressed() {

System.exit(0);
}

Some people consider this bad, so I'm only recommending it as a diagnostic 
aid.


On Tuesday, July 31, 2012 7:30:56 AM UTC-5, Meena Rengarajan wrote:
>
> Once USB is connected i could able to record the audio and playing well in 
> mobile. But once if i closed my application or disconnected USB then i 
> couldnt able to record the audio in direct access. So again if i opened and 
> recorder as a fresh one its not recording the audio ! Whats the problem 
> here ?
>
> On Tuesday, July 31, 2012 12:01:49 PM UTC+5:30, Meena Rengarajan wrote:
>>
>> I have created a file name "music_1.amr".. When i recording audio it will 
>> capture and stored in "music_1.amr" . So i can do play, stop or save.. Now 
>> i wanna do is, whenever i create a new audio recording that previous 
>> recorded audio should be deleted automatically and this new audio capture 
>> must store it in same file name "music_1.amr". What do i wanna do here . 
>> Can anyone suggest me?
>>
>

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

[android-developers] Re: How to run animation on Custom LockScreen during booting of the device?

2012-07-31 Thread bob
Maybe a wake lock will help you?




PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);

PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK,
"My Tag");
wl.acquire();


Or maybe this?


final Window win = getWindow();
win.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);


win.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);



On Tuesday, July 31, 2012 6:19:27 AM UTC-5, Abhishek Kumar Gupta wrote:
>
>
>I have created a lock screen for ICS and it is placed in the 
> frameworks and I can open applications using this. For the user effects I 
> have started an animation when the lock screen is displayed. When I 
> boot/reboot the device, animation appears after 2-3 seconds of delay. 
>
> Currently, I am receiving broadcast with 
> action*"Intent.ACTION_BOOT_COMPLETED" 
> *and starting the animation. But UI part of the LockScreen(without 
> animation) is displayed before receiving the *Intent.ACTION_BOOT_COMPLETED
> *. My requirement is to display the animation in LockScreen on 
> boot/reboot of device without any delay.
>
> Any help or guidance in this regard will be well 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] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread Robert Greenwalt
Apps won't be able to alter the APN database after Honeycomb or perhaps
ICS.  The User can disable data from settings.  Why does an application
need to disable data?


On Tue, Jul 31, 2012 at 8:03 AM, CJ  wrote:

> Hi,
>
> I have been googling for a while able the best or right way to
> disable/enable mobile network.
>
> I tried the following code which is all over Stackoverflow and is working
> fine for gingerbread and higher:
>
> private void setMobileDataEnabled(Context context, boolean enabled)
> throws Exception {
> final ConnectivityManager conman = (ConnectivityManager) context
> .getSystemService(Context.CONNECTIVITY_SERVICE);
> final Class conmanClass = Class.forName(conman.getClass().getName());
> final Field iConnectivityManagerField = conmanClass
> .getDeclaredField("mService");
> iConnectivityManagerField.setAccessible(true);
> final Object iConnectivityManager = iConnectivityManagerField
> .get(conman);
> final Class iConnectivityManagerClass = Class
> .forName(iConnectivityManager.getClass().getName());
> final Method setMobileDataEnabledMethod = iConnectivityManagerClass
> .getDeclaredMethod("setMobileDataEnabled", Boolean.TYPE);
> setMobileDataEnabledMethod.setAccessible(true);
>
> setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);
> }
>
> Somehow I didn't find a way to do the same thing for Android 2.2 and
> below. Many mentioned to change the APN name to something invalid like what
> app APNDroid did but is that the only way?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Mark Murphy
There's no accessibilityFocusable attribute in the documentation, at
least based on a simple search. I don't see anything quite like it in
the list of XML attributes for View. Where did you find this?

On Tue, Jul 31, 2012 at 10:59 AM, Streets Of Boston
 wrote:
> Hi,
>
> I have a text-view next to a seekbar. The seekbar is accessible and
> announces its current value. The text-view also shows this value.
> For accessibility, I'd like to make the text-view not
> accessibility-focusable, since the seekbar already is (no use in stating the
> same thing twice).
>
> However, when adding android:accessibilityFocusable="no" to the layout xml,
> I get this error:
> No resource identifier found for attribute 'accessibilityFocusable' in
> package 'android' page_slider_layout.xml /KnfbBlio/res/layout line 37
> Android AAPT Problem
>
> The project build target is 4.1 (api level 16).
> The targetSdk in the AndroidManifest.xml is set to 16 as well.
>
> Any idea what the problem could be?
>
> 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



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

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

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


[android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread CJ
Hi,

I have been googling for a while able the best or right way to 
disable/enable mobile network.

I tried the following code which is all over Stackoverflow and is working 
fine for gingerbread and higher:

private void setMobileDataEnabled(Context context, boolean enabled)
throws Exception {
final ConnectivityManager conman = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
final Class conmanClass = Class.forName(conman.getClass().getName());
final Field iConnectivityManagerField = conmanClass
.getDeclaredField("mService");
iConnectivityManagerField.setAccessible(true);
final Object iConnectivityManager = iConnectivityManagerField
.get(conman);
final Class iConnectivityManagerClass = Class
.forName(iConnectivityManager.getClass().getName());
final Method setMobileDataEnabledMethod = iConnectivityManagerClass
.getDeclaredMethod("setMobileDataEnabled", Boolean.TYPE);
setMobileDataEnabledMethod.setAccessible(true);

setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);
}

Somehow I didn't find a way to do the same thing for Android 2.2 and below. 
Many mentioned to change the APN name to something invalid like what app 
APNDroid did but is that the only way?

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

[android-developers] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Streets Of Boston
Hi,

I have a text-view next to a seekbar. The seekbar is accessible and 
announces its current value. The text-view also shows this value. 
For accessibility, I'd like to make the text-view not 
accessibility-focusable, since the seekbar already is (no use in stating 
the same thing twice).

However, when adding *android:accessibilityFocusable="no"* to the layout 
xml, I get this error:
*No resource identifier found for attribute 'accessibilityFocusable' in 
package 'android' page_slider_layout.xml /KnfbBlio/res/layout line 37 Android 
AAPT Problem*

The project build target is 4.1 (api level 16). 
The targetSdk in the AndroidManifest.xml is set to 16 as well.

Any idea what the problem could be?

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: User prompt to allow VPNService is no longer prompted after uninstall.

2012-07-31 Thread mcconnma
The solution is disconnect the vpn from the dropdown menu from top. Then 
when you reinstall, you will get the dialogue.

On Monday, July 30, 2012 1:28:43 PM UTC-4, mcconnma wrote:
>
> In the toyvpn example, if i install/run, it prompts the user to accept the 
> vpn usage. If I uninstall, and reinstall, the prompt no longer appears. I'd 
> like for the prompt to reappear after re-install. What is preventing it 
> from reprompting?
> 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] Re: Use of weak password to protect Android keystore

2012-07-31 Thread Nikolay Elenkov
On Tue, Jul 31, 2012 at 11:38 PM, howa  wrote:
> But suppose they don't have the login into my Android Developer Console, I
> don't need to worry?
>
>

It doesn't matter. They can load you app with malware, put it on some 'sharing'
site and it will look like it came from you. It will even update
cleanly on top of
your own app.

So:

 * put a good password on your keystore
 * put your keystore in a safe :)
 * put a copy in another safe, not in the same building

And you should be relatively safe :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Is it possible to reduce the variability of camera shutter lag time?

2012-07-31 Thread greg
Thanks for the suggestions. Based on them I tried disabling all the camera 
auto parameters. There is still a range of about 0.2 s in the shutter lag 
time. In this application (and perhaps there are others), I'm more 
concerned about the variability and not the average duration of the lag 
time. I have posted a feature request to the Android issue tracker to add 
an optional minimum shutter time argument in Camera.takePicture() that 
would delay the shutter if it were ready before the specified minimum. If 
you think you might find that extra control helpful in a future 
application, "star" the feature request at 
http://code.google.com/p/android/issues/detail?id=35785

Thanks! --Greg

P.S., We have the same initials, and for a while a few years ago I used 
those same initials as an on-line signature. Our writing styles are similar 
enough that I sometimes read your posts and momentarily wonder, "Did I 
write that?" :*)

On Monday, July 30, 2012 9:02:37 PM UTC-4, gjs wrote:
>
> Hi,
>
> Set other camera parameter values to non-auto settings eg: set a specific 
> white balance such as daylight, set flash to off etc.
>
> Other than that ensure there is no other non essential app's / services 
> running at the same time & examine your own app to minimise or eliminate 
> any garbage collection, reduce sensor use / frequency.
>
> Try a few different devices, dual cores, quad cores particularly those 
> claiming zero shutter lag. Some devices let you vary the camera preview 
> frame rate & preview size maybe try this as well, not sure if that would 
> make a difference as I've have not tried this myself.
>
> If that is still not good enough consider triggering a remote camera 
> instead, such as an SLR via bluetooth or usb.
>
> Regards 
>
> On Tuesday, July 31, 2012 6:41:53 AM UTC+10, greg wrote:
>>
>> Thanks Richard. Setting the focus to 
>> Camera.Parameters.FOCUS_MODE_INFINITY helped as shown in the added 
>> histogram at 
>> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>>
>> At the risk of sounding like an ingrate, do you have any ideas on how to 
>> reduce the variability even more? (A range of 0.2 s still covers a large 
>> portion of the periodic motion.)
>>
>> -- Greg
>>
>> On Monday, July 30, 2012 3:05:50 PM UTC-4, RichardC wrote:
>>>
>>> Could it be related to auto-focus? Try turning it off.
>>>
>>> On Monday, July 30, 2012 7:55:52 PM UTC+1, greg wrote:

 Given a known periodic motion (e.g., walking), I'd like to take a full 
 resolution snapshot at the same point in the motion (i.e., the same time 
 offset within different periods). However on the Nexus S (currently 
 running 
 OS 4.1.1 but the same was true of previous OS versions), I'm seeing so 
 much 
 variability in the shutter lag that I cannot accurately plan the timing of 
 the snapshot. Is there anything I can do in the application to reduce this 
 shutter lag variability? (In this application, the mean lag can be any 
 duration but the standard deviation must be small ... much smaller than 
 the 
 0.5 s standard deviation I am seeing.) I'm hoping someone has a clever 
 suggestion. If I don't get any suggestions, I'll post a feature request in 
 the Android bug tracker.

 I've posted the same question (and showing a histogram of camera 
 shutter lag times) at


 http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag

 Thanks! -- Greg

>>>

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

2012-07-31 Thread howa
But suppose they don't have the login into my Android Developer Console, I 
don't need to worry?

On Sunday, July 29, 2012 5:53:31 PM UTC+8, howa wrote:
>
> Are there any drawback in using weak password to protect Android keystore?
>
> Seems even someone stole my keystore file, they can't login into my 
> Android developer console. they can't anything with it,
>
> e.g. provide an update for my app
>
> Right?
>

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

2012-07-31 Thread Evan Ruff
Right, the thing is, I NEVER get the the problem when I'm testing. It's
only happening in the field.

What's really weird is that it's just not THAT much data. I mean, I'd say
the average payload size is <200kb!

Thanks!

E

On Tue, Jul 31, 2012 at 10:27 AM, bob  wrote:

> If you are "getting a variety of" errors, as opposed to a single
> reproducible error, it could indeed be something goofy with your
> connection.  Why not at least switch to a solid Wifi connection so you can
> eliminate that possibility?
>
>
> On Tuesday, July 31, 2012 8:35:42 AM UTC-5, Evan Ruff wrote:
>>
>> Hey guys,
>>
>> I'm having some trouble getting my phone collected data up to my servers.
>> I thought that I was getting old fashioned SocketTimeouts due to the phones
>> having a bad connection or something of the like. After jacking up the
>> timeouts WAY up on the phone (120 seconds) and the timeout WAY up on the
>> server (120 seconds) I think that I must be doing something wrong in my
>> code.
>>
>> After changing the timeouts, I am now getting other odd timeout
>> exceptions on the server. I'm getting a variety of "Unexpected EOF read on
>> the socket", "java.io.IOException: Invalid CRLF" and the venerable "
>> java.net.**SocketTimeoutException". I'm wondering if I'm not properly
>> flushing or clearing out the connection/entity in the Service logic. I was
>> hoping someone could point out what I was doing wrong.
>>
>> My data-sending code is as follows:
>> DefaultHttpClient httpClient = Util.getHttpClient(); // nothing special,
>> just sets the timeouts
>>
>> HttpPost httpPost = new HttpPost( Moose.getServerAddress() );
>> ByteArrayOutputStream baos = new ByteArrayOutputStream();
>>
>> *// Write out the payload using Jackson to the baos*
>>
>> ByteArrayEntity baEntity = new ByteArrayEntity( baos.toByteArray() );
>> baEntity.setContentType("**application/json");
>> baEntity.setChunked( true );
>> httpPost.setEntity( baEntity );
>>
>> HttpResponse response = httpClient.execute( httpPost );
>> HttpEntity entity = response.getEntity();
>>
>> I'm not doing any cleanup at all, and I think that might be my problem.
>> Is there a correct way to terminate this off? I assume I should be closing
>> the  ByteArrayOutputStream, but what about the ByteArrayEntity? Do I
>> need to do anything with the response after I'm doing consuming it?
>>
>> Thanks for any help and suggestions!
>>
>> E
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

  1   2   >