Re: [android-developers] Android Admob Integeration

2012-10-06 Thread Anirudh Loya
All devices from Froyo 2.2 !

On Fri, Oct 5, 2012 at 11:59 AM, TreKing treking...@gmail.com wrote:

 On Fri, Oct 5, 2012 at 1:06 AM, Vivek Malavade 
 vivek.malav...@gmail.comwrote:

 Then Google Play will allow to application to download on device that
 below 4.0.3(ICS) ?.


 Any device compatible with what you've set in your manifest. In this case,
 minimum level 8.


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


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




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

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

2012-10-06 Thread Abhi
Hi,

I am coding for my first game.
I am facing problem while pausing my game and resuming it.
I have posted for this issue on StackOveflow 
http://stackoverflow.com/questions/12686912/android-game-loop-pause-resume-issuebut
 
I am unable to find the root cause of my issue.

Issue I face is, when I click Home button or Back button or leave my Game 
Screen (surfaceview with thread) and again click on my Game Icon
I see a deadlock and in 5-6 sec see Force Close and Wait dialog coming.

I have put SOPs on onCreate, onResume and onPause of my game screen 
activity, but they are not getting printed in LogCat when I try to resume 
my game.

Please help me to get out of this issue.

Thanks  

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

Re: [android-developers] bind/unbind service

2012-10-06 Thread Sat
Thanks for the reply guys.

So the best way is in onCreate() bind and then in onDestroy() unbind.

I had another question that is . The flag BIND_AUTO_CREATE says that it 
will create a service as long as the binding exist,
so if I bind multiple times in the same Activity, lets say in onCreate() and 
in onResume() i fire bindservice() then what should happen?
I think multiple binds is not a problem right. But confusing is that flag.

Are these things same for remote and local service.?
thanks,
satish

On Friday, October 5, 2012 8:23:28 PM UTC+5:30, MagouyaWare wrote:

 http://lmgtfy.com/?q=android+bind+service+memory+leak

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


 On Fri, Oct 5, 2012 at 8:42 AM, lokesh gupta lokesh...@gmail.comjavascript:
  wrote:

 Doesnt it get disconnect  by its own
 On Oct 5, 2012 8:00 PM, Justin Anderson magou...@gmail.comjavascript: 
 wrote:

 A memory leak

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


 On Fri, Oct 5, 2012 at 8:24 AM, satish bhoyar 
 getsat...@gmail.comjavascript:
  wrote:

 Hi All,

 I am just confused in Bindservice and unbind.

 I want to know If I am binding to service then is it necessary to 
 unbind it?
 If I won't do it what impact will do onmy application.?

 thanks,
 saitsh

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


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

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




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

2012-10-06 Thread RichardC
See below

On Saturday, October 6, 2012 12:50:12 AM UTC+1, Sergei Okhotnyi wrote:

 Let's assume that I have pre-installed some version of my program on 
 Android device (/system/app/MyApp.apk)

AOSP groups are here:
http://source.android.com/community/index.html

 

 It has predefined some strings (e.g. my_preinstalled_application_name)
 At some point user updates this application with newer version from market 
 without this custom string.
 I want my application in cases it is update to system one extract 
 this my_preinstalled_application_name and use it.
 I've created some code, but stuck how to extract resource from apk:

 final PackageManager pm = context.getPackageManager();
 ApplicationInfo appInfo = 
 pm.getApplicationInfo(context.getPackageName(), 
 PackageManager.GET_DISABLED_COMPONENTS);
 if ((appInfo.flags  ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) 
 != 0) {
 try {
 File sysApps = new File(/system/app);
 String[] preInstalls = sysApps.list(new 
 FilenameFilter() {
 public boolean accept(File dir, String name) {
 if (name.endsWith(.apk)) {
 PackageInfo packageArchiveInfo = 
 pm.getPackageArchiveInfo(new File(dir, name).getAbsolutePath(), 0);
 if (packageArchiveInfo != null) {
 if 
 (packageArchiveInfo.packageName.equals(context.getPackageName())) {
 // extract string somehow ??
 return true;
 }
 }
 }
 return false;
 }
 });
 } catch (Exception e) {
 Log.w(TAG, Error accessing saved affiliation, e);
 }
 }


 pm.getResourcesForApplication throws NullPointerException.

 Any thoughts?


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

2012-10-06 Thread RichardC
Just for your information AdMob has it's own group:
https://groups.google.com/forum/?fromgroups=#!forum/google-admob-ads-sdk

On Friday, October 5, 2012 7:06:20 AM UTC+1, Vivek Malavade wrote:

 Hi,
 I have integrated Admob SDK with my application. OK its fine.
 My question is that as Admob sdk, if I set 
 uses-sdk
 android:minSdkVersion=8
 android:targetSdkVersion=15 /

 And in project.properties

 # Project target.
 target=Google Inc.:Google APIs:15

 Then Google Play will allow to application to download on device that 
 below 4.0.3(ICS) ?.
 e.g. I develope an app and I make it live with admob sdk then Google Play 
 will allow to download app on device that having Android 2.2(Froyo)?

 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] android.os.NetworkOnMainThreadException in facebook wall post

2012-10-06 Thread Amey Bapat
http://www.vogella.com/articles/AndroidNetworking/article.html

Read this blog..!!
You will also get to understand about STRICT MODE..

On Sat, Oct 6, 2012 at 12:09 PM, lokesh gupta lokeshgupt...@gmail.comwrote:

 Put the network call innew thread.. U cant make network call in main thread
 On Oct 6, 2012 12:04 PM, Dilip Kumar Chaudhary androiddili...@gmail.com
 wrote:

 Hi all,
 I'm using Android facebook SDK for post on facebook wall.I have used
 following code for wall post but every time through exception *
 android.os.NetworkOnMainThreadException*
 public void postToWall(String message) {
 Bundle parameters = new Bundle();
 parameters.putString(message, message);
 parameters.putString(description, topic share);
 try {
 facebook.request(me);
 String response = facebook.request(me/feed, parameters,
 POST);
 Log.d(Tests, got response:  + response);
 if (response == null || response.equals()
 || response.equals(false)) {
 showToast(Blank response.);
 } else {
 showToast(Message posted to your facebook wall!);
 }
 finish();
 } catch (Exception e) {
 showToast(Failed to post to wall!);
 e.printStackTrace();
 finish();
 }
 }

 --
 *Thanks  Regards*
 Dilip Kumar Chaudhary
 My Linkedin 
 Profilehttp://in.linkedin.com/pub/dilip-kumar-chaudhary/44/64/55b
 My Development Blog http://dilipdevelopment.blogspot.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




-- 
live and let LIVE!!!

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

[android-developers] How to open activity in fragmentation area ?

2012-10-06 Thread shubh
Is it possible to get same behaviour of TabViewActivity using 
fragmentation, I want to open a new activity in fragmentation area if I 
select any of tab?

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

2012-10-06 Thread tj
hello frnzz,
In my project i am fetching a text file from row folder. file size is near 
about 3 MB. each and every time while reading that text file, heap size 
grows rapidly. after reaching it's memory limit it 
gives outOfMemoryException. i have used bufferReader, inputStream and 
stringBuilder to read file. geeks plz help me. hope for positive responce.
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] Re: phonegap - problem deploying project to phone

2012-10-06 Thread steffen waldmann
ok, to anyone whos interested:
problem solved. solution was this:

i tried to start/install the app from a command window using adb install 
pathToApk
here i got the error message INSTALL_FAILED_OLDER_SDK

so i changed the 'uses-sdk android:minSdkVersion=10 ' entry in the 
AnroidManifest.xml file to 3.

now it runs fine. (of course you would want to check if the sdk version you 
use really fits your app ;)

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

2012-10-06 Thread Narendra Singh Rathore
Hi all,

May anyone please tell, how to apply effects like sepia, mono, negative,
etc, while using camera in my app.

Please suggest me the way, if anyone know about this

Thanks n Regards
NSR

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

Re:[android-developers] applying effects to camera images

2012-10-06 Thread lokesh gupta
Go to camera settings effects
On Oct 6, 2012 5:09 PM, Narendra Singh Rathore nsr.curi...@gmail.com
wrote:

 Hi all,

 May anyone please tell, how to apply effects like sepia, mono, negative,
 etc, while using camera in my app.

 Please suggest me the way, if anyone know about this

 Thanks n Regards
 NSR

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

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

[android-developers] intent extras

2012-10-06 Thread Salih Gündüz
Can we control which activity send data in destination activity?

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

2012-10-06 Thread Narendra Singh Rathore
On Sat, Oct 6, 2012 at 5:12 PM, lokesh gupta lokeshgupt...@gmail.comwrote:

 Go to camera settings effects


Great answer Lokesh, but I just wanted to do it in my app.

I wasn't asking how to use android camera, instead how to work with camera
effects.

So, please tell this from developer's point of view, not the user's point
of view.

Thanks
NSR

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

[android-developers] Re: applying effects to camera images

2012-10-06 Thread RichardC
Type this into Google:

image manipulation code


On Saturday, October 6, 2012 12:44:32 PM UTC+1, Narendra Singh Rathore 
wrote:

 Hi all,

 May anyone please tell, how to apply effects like sepia, mono, negative, 
 etc, while using camera in my app.

 Please suggest me the way, if anyone know about this

 Thanks n Regards
 NSR


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

[android-developers] Re: intent extras

2012-10-06 Thread RichardC
Sorry don't understand your question

On Saturday, October 6, 2012 1:00:48 PM UTC+1, Salih Gündüz wrote:

 Can we control which activity send data in destination activity?

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

2012-10-06 Thread shubh
I create an Fragmentation view in which screen have an tray at bottom with 
some button, and rest of area (content area) to draw other content based on 
selection of tray button(same like TabViewActivty), in content area screen 
have a grid of button(3 x 3).
now let's assume focus is at any left most button of content area, now if i 
perform any keyboard-left event here then focus directly jump to 
bottom-left item of tray. 

Same thing didn't do any action on keyboard-right event, if focus is at any 
right-most button ?

any idea why this happening, even same things working properly if I design 
simple layout without use of fragmentation.

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

[android-developers] Re: It is possible to stop a thread that is connecting to URL with httpConnection.connect()?

2012-10-06 Thread Ed Harned
Do your connection in a separate thread or AsyncTask. You can time the 
thread and ignore it if it takes too long. Now you'll be getting into 
thread control which really is a whole other subject.


On Friday, October 5, 2012 7:39:55 PM UTC-4, saex wrote:

 i have a thread that is connecting to a url to obtaining some data.

 Sometimes the method httpConnection.connect(); taked too munch time to 
 get the response, and i want to limit the loading dialog of this connection 
 thread to 5 seg.

 I tryed adding timeouts into the code, *but it doesn't work*!!

 URL formattedUrl = new URL(url); 
 URLConnection connection = formattedUrl.openConnection(); 
 connection.setConnectTimeout(5000);
 connection.setReadTimeout(5000);
 HttpURLConnection httpConnection = (HttpURLConnection) connection;
 httpConnection.setAllowUserInteraction(false);
 httpConnection.setInstanceFollowRedirects(true);
 httpConnection.setRequestMethod(GET);
 httpConnection.setConnectTimeout(5000);
 httpConnection.setReadTimeout(5000);
 httpConnection.connect();

 So, i must stop the connect method and the thread when 5000 seconds have 
 passed or when the used has pressed the back key on the phone.

 How can this be achieved? i can't find info about doing this work in 
 android with a url connection thread.

 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] applying effects to camera images

2012-10-06 Thread Harri Smått

On Oct 6, 2012, at 2:39 PM, Narendra Singh Rathore nsr.curi...@gmail.com 
wrote:

 Hi all,
 
 May anyone please tell, how to apply effects like sepia, mono, negative, etc, 
 while using camera in my app.

I started a project some time ago in which I implemented camera effects in 
realtime using GLSL shaders plus output image is processed using RenderScript. 
It's API 15+ application but might give some ideas how to continue from there;

https://github.com/harism/android_instacam

--
H

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Google Docs - DocsService - Building a sample app - VerifyError? What does that mean?

2012-10-06 Thread NickL
The answer is that Google does not support the GDoc Java api on Android.  
Why?  Really Google?  Would it be that hard to do?  Liking 
Apple and FB way so much more as a API (ok rant over)
On Friday, August 17, 2012 4:06:57 AM UTC-4, TreKing wrote: 

 On Thu, Aug 16, 2012 at 7:34 PM, NickL nicklo...@gmail.com 
 javascript:wrote:

 VerifyError? What does that mean?


 Try punching errors you don't understand into your favorite search engine.


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



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

Re: [android-developers] Re: Google Docs Access

2012-10-06 Thread NickL
Getting google docs to work on Android is probably one of the least well 
documented, and difficult to decipher, tasks in this platform.  One can 
find scattered examples, but nothing fully explanatory. For all of those 
who have figured it out, we have few posted sample applications that cover 
everything.  Just parts.  Why this should be such a secret is beyond me.
 

On Thursday, May 19, 2011 10:13:06 AM UTC-4, Mark Murphy wrote:

 On Thu, May 19, 2011 at 10:04 AM, Doug Gordon 
 gord...@gmail.comjavascript: 
 wrote:
  The databases are user-generated, so I need a public solution. I
  can't use my web server to store megabytes of data for thousands of
  users, manage usernames and passwords, etc. 

 Support for Google Docs APIs can be found on the Google Docs Web sites, 
 such as: 

 http://code.google.com/apis/documents/forum.html 

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

 Android 3.0 Programming Books: http://commonsware.com/books

  

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

2012-10-06 Thread Raffaele Sgarro
The documentation for computeVerticalScrollRange() 
sayshttp://developer.android.com/reference/android/view/View.html#computeVerticalScrollRange()
:


 Compute the vertical range that the vertical scrollbar represents.
 The range is expressed in *arbitrary units* that must be the same as the 
 units used by 
 computeVerticalScrollExtent()http://developer.android.com/reference/android/view/View.html#computeVerticalScrollExtent()
  
 andcomputeVerticalScrollOffset()http://developer.android.com/reference/android/view/View.html#computeVerticalScrollOffset()
 .


The same *arbitrary units* are mentioned in the other two methods. Looking 
at the sources, this is what I found:

protected int computeVerticalScrollRange() {
return getHeight();
}
protected int computeVerticalScrollOffset() {
return mScrollY;
}
protected int computeVerticalScrollExtent() {
return getHeight();
}

So, what's going on here? getHeight() is documented to return the height of 
the view in pixels, and I wander if it makes any sense to measure things in 
miles, kilometers, astronomic units... Do they documented it in such a way 
to allow subclasses to use percentages or number of items?

In particular, I looked at this methods because I'm implementing a ListView 
with a custom background http://stackoverflow.com/q/12737600/315306, and 
it seems I need to deal with scroll dimensions

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

[android-developers] How to create an AVD running HTC sense 4.1?

2012-10-06 Thread MB
Hi,

I would really appreciate any help in how to go about troubleshooting 
issues specific to HTS sense 4.1

One of our users recently contacted us indicating issues with our app after 
upgrade to HTC sense 4.1.

I created an AVD in Eclipse using HTC Opensense SDK. Is there some way to 
tell what the HTC sense version  on the AVD is.
Under About Phone it says:

Build number: sdk-eng 4.0.4 MR1 303030 test-keys

I am unable to reproduce the issue on this AVD. Is there some way to tell 
if the AVD is running HTC sense 4.1 or something else?

Thanks,

--MB.

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

2012-10-06 Thread MB
From what the user has described it looks like something has changed with 
how GestureDetector emits the following two events:


   - onScroll
   - onDoubleTap



On Saturday, October 6, 2012 10:03:19 AM UTC-7, MB wrote:

 Hi,

 I would really appreciate any help in how to go about troubleshooting 
 issues specific to HTS sense 4.1

 One of our users recently contacted us indicating issues with our app 
 after upgrade to HTC sense 4.1.

 I created an AVD in Eclipse using HTC Opensense SDK. Is there some way 
 to tell what the HTC sense version  on the AVD is.
 Under About Phone it says:

 Build number: sdk-eng 4.0.4 MR1 303030 test-keys

 I am unable to reproduce the issue on this AVD. Is there some way to tell 
 if the AVD is running HTC sense 4.1 or something else?

 Thanks,

 --MB.



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

2012-10-06 Thread James Yonan


 If it is indeed reproducible, it should be easy to fix. Have you tried 
 building 
 latest AOSP source, there have been a number of fixes/changes in this 
 area? I fail to see how this is documented in the bug report though (no 
 steps to reproduce). 


Steps for me on Nexus 7 were:

1. import PKCS#12 file containing root cert, client cert, and private key

2. have app obtain an alias to the client cert

3. get the private key: PrivateKey pk = KeyChain.getPrivateKey(this, alias);

4. observe segfault when pk is collected by GC


  2. You say that the new OpenSSL engine supports only signing, verifying 
 and 
  key import.  That's fine, but keep in mind that the RSA signature used 
 for 
  verification of an SSL session is typically generated by the cipher 
 object 
  javax.crypto.Cipher.getInstance(RSA/ECB/PKCS1PADDING) acting as an 
  encryptor.  Can java.security.Signature replicate this behavior?  This 
 issue 
  is also documented here: 
  http://stackoverflow.com/questions/11261774/using-android-4-1-keychain 
  

 Again, are there any reasons you are using the Cipher class for signing? 
 I don't think this is typical at all, but if you have a particular reason 
 for wanting to use 'raw' RSA encryption, please say why. And, again, 
 this is probably more suitable for andorid-security. 


Raw RSA encryption is necessary as part of the challenge/response handshake 
of an SSL/TLS negotiation, if your side of the connection is using a cert 
as an authentication factor.  It's essential for VPN implementations that 
layer on top of SSL/TLS transport and need to interoperate with an external 
key store.  I enumerated the signature algs provided by the AndroidOpenSSL 
1.0 provider and I don't see any implementation for raw RSA.  Some Java 
implementations include it as NONEwithRSA, but I don't see it here.

Yes, I'll try to move this over to android-security.  Thanks for your time.

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

2012-10-06 Thread Kevin
I need to display a table of data, and I've been trying to do it with a 
GridLayout, but I can't make it look good.  The last column is expanded to 
fill the rest of the screen space.  I understand that GridLayout doesn't 
have the concept of weight.  I don't think using a LinearLayout as each row 
would work because I want each column to be lined up.  Am I stuck using a 
TableLayout?  It seems like there should be a way to make GridLayout do 
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

[android-developers] Can I offer a trial period for an otherwise Google Play subscription-based service?

2012-10-06 Thread Sorenchr
I apologize if this is entirely the wrong forum to ask this, but seeing as 
there is no Google Play specific forum I thought this one would be 
appropriate.
I'm wondering if it's against the Google Play policies to offer a trial 
period for a service that users normally pay a subscription fee for (using 
In-app billing).
I would like to offer, say a 1-month free trial period whereafter the user 
will have to subscribe to continue using the service.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Can I offer a trial period for an otherwise Google Play subscription-based service?

2012-10-06 Thread TreKing
On Sat, Oct 6, 2012 at 2:53 PM, Sorenchr soren.qv...@gmail.com wrote:

 I'm wondering if it's against the Google Play policies


No one here is qualified to give you advice on what is or isn't against
their policies. Read them for yourself and consult a lawyer if in doubt.

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

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