Re: [android-developers] Using of one application Database into another application

2013-01-30 Thread TreKing
On Thu, Jan 31, 2013 at 12:37 AM, samuel wrote: > i would like to use this database in another application for searching > and displaying the results. Do suggest any solutions. What exactly are you asking? You already have the database file, so write code to search it and display the results.

[android-developers] Re: Using of one application Database into another application

2013-01-30 Thread Zsolt Vasvari
You have to use a shared user ID. Read the Android docs for details. On Thursday, January 31, 2013 2:37:37 PM UTC+8, samuel wrote: > > I have an application which created database from a text file. I have also > pulled the database from the application [data/data/package name/databases/ > ] .no

[android-developers] Re: How to get back camera info in android 1.6 to 2.2?

2013-01-30 Thread Zsolt Vasvari
I don't know the answer to your question, but if your app is a newly developed one, I wouldn't worry about supporting Android 2.2 at this point in time. On Wednesday, January 30, 2013 7:35:40 AM UTC+8, saex wrote: > > in Android 2.3 (API 9), google introduced CameraInfo to check if the given >

[android-developers] Writing a file to USB flash drive using OTG cable

2013-01-30 Thread Artak Kalantarian
I am able to plug in a flash drive to Nexus 7 using an OTG cable. I am also able to enumerate the device and get an Endpoint. What do I need to do from there to write a file to the device or read the files? Do I need to implement the file system myself? Are there any libraries available to help w

[android-developers] Re: Admob stats for past month..What's yours?

2013-01-30 Thread Zsolt Vasvari
Hi, I don't know But unless you have millions of downloads, having an ad-supported app is really bad idea as far as revenue prospects are considered. On Thursday, January 31, 2013 1:01:32 AM UTC+8, Amel Jose wrote: > > Hi i started as an android developer.The following is my stats for the

[android-developers] Re: GooglePlay changes their payout schedule to 15 days after the end of the month!

2013-01-30 Thread Zsolt Vasvari
Huh? Why? It's probably good for 10% of the developers, bad for 10% and irrelevant for 80%. It all depends when your bills are due or if you are capable of managing your finances. On Thursday, January 31, 2013 12:49:11 PM UTC+8, Héctor Júdez wrote: > > What do you guys think? This is not goi

[android-developers] Using of one application Database into another application

2013-01-30 Thread samuel
I have an application which created database from a text file. I have also pulled the database from the application [data/data/package name/databases/ ] .now i would like to use this database in another application for searching and displaying the results. Do suggest any solutions. -- -- You

[android-developers] GooglePlay changes their payout schedule to 15 days after the end of the month!

2013-01-30 Thread Héctor Júdez
What do you guys think? This is not going to be fun at all for some developers that really depend on this money. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com T

Re: [android-developers] is Google going to ship Chrome as a default browser for next OS release

2013-01-30 Thread DroidMaster
I am kind of agree with you on this; if there is a enforcement from google to ship with chrome only then it would be the same browser war on PC. I have down load the ROM for CyanogenMod for Jelly Bean 4.2; It does not have Chrome; it does have a stock browser. On Wednesday, January 30, 2013

Re: [android-developers] is Google going to ship Chrome as a default browser for next OS release

2013-01-30 Thread Mark Murphy
We will find out when the next version of Android ships. I will be reasonably surprised if we find out before then. And, bear in mind that the choice of browsers is really up to the device manufacturer. On Wed, Jan 30, 2013 at 9:12 PM, DroidMaster wrote: > Hi, All > > With Nexus 7, Google has shi

[android-developers] is Google going to ship Chrome as a default browser for next OS release

2013-01-30 Thread DroidMaster
Hi, All With Nexus 7, Google has shipped Google Chrome as stock Browser. Is Google going to eliminate regular browser for the next release of android OS? Thanks, -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

[android-developers] Re: can you debug?... here error: syntax error : insert "(" to complete expression

2013-01-30 Thread Lew
lselwd wrote: > >>> private List fileNameList; // flag file names >> >> int[] sizeWordCountries = new int[9]; // 10 >> >> >> >> for (int i = 0; i < 9; i++) >> >> { >> >> sizeWordCountries[i]=(fileNameList.get(i)).length(); // here >>> error: syntax error : insert

Re: [android-developers] Re: Unmanaged items in v3 billing API?

2013-01-30 Thread Michael Parker
While the v3 API is much nicer and simpler, managed consumable v3 items don't seem to be a replacement for unmanaged items in v2. Looking at the reference docs for v3 ( http://developer.android.com/google/play/billing/billing_reference.html) and v2 ( http://developer.android.com/google/play/billing

[android-developers] Re: glGetShaderPrecisionFormat

2013-01-30 Thread bob
Okay. In all honesty, I'm not 100% sure what the 33 and 13 actually mean. Especially the latter one, the precision. The docs say: precision Specifies a pointer to the location in which the log2 of the precision of the format is returned. So, if that number is the log2 of the precision, the p

[android-developers] Re: Unmanaged items in v3 billing API?

2013-01-30 Thread William Ferguson
Managed consumable items in V3 are the replacement for unmanaged items in V2. I think it is a good move. It has greatly simplified the concept IMHO. And the V3 API looks much, much better. William On Thursday, January 31, 2013 3:56:04 AM UTC+10, Michael Parker wrote: > > Hi all, > > Reading ht

[android-developers] Re: Unmanaged items in v3 billing API?

2013-01-30 Thread Nathan
It seems to me that a managed consumable item is a more versatile unmanaged item than using unmanaged items in v3, but I have not dealt with unmanaged items much myself. Actually, I have wondered the same thing about subscriptions. Is a subscription just a consumable managed item, that you th

[android-developers] MediaPlayer getCurrentPosition and getDuration ANR on Samsung Galaxy SIII

2013-01-30 Thread Hedami
I have a music app that received ANR reports from 2 users who both have Samsung Galaxy SIII devices (running Jellybean 4.1). The app is locking up when calling the MediaPlayer.getCurrentPosition and MediaPlayer.getDuration methods. Today I noticed that the Google Play Music app was updated wit

[android-developers] Re: Prevent sms sending

2013-01-30 Thread Nobu Games
On top of what Kristopher says: a custom launcher also does not prevent a user from installing another launcher or restore the default launcher. It's a bit hackish to enforce these company policies based on a user space app. You either need to create your custom firmware, which isn't that bad of

[android-developers] Re: Prevent sms sending

2013-01-30 Thread Nobu Games
On top of what Kristopher says: a custom launcher also does not prevent a user of installing another one or set the default launcher. It's a hackish to enforce these company policies based on a user space app. You either need to create your custom firmware, which isn't that bad of an option bec

Re: [android-developers] New activity when I lock my screen

2013-01-30 Thread lbendlin
add orientation to the configChanges attributes of your activity and handle the rotation layout changes yourself. On Wednesday, January 30, 2013 12:16:59 PM UTC-5, Davide Moriello wrote: > > Thank you a lot Nobu and Kostya you helped me a lot. > > Kostya is right! This is what is happening! Thank

[android-developers] Re: glGetShaderPrecisionFormat

2013-01-30 Thread RichardC
Those number look correct. High Precision support is NOT required to be implemented in the fragment shader and if your implementation does not support high precision you will get 0s from the glGetShaderPrecisionFormat query. On Wednesday, January 30, 2013 8:32:43 PM UTC, bob wrote: > > Oh, ok.

[android-developers] Re: glGetShaderPrecisionFormat

2013-01-30 Thread bob
Oh, ok. Thanks. It works if I do this: GLES20.glGetShaderPrecisionFormat(GLES20.GL_FRAGMENT_SHADER, GLES20.GL_MEDIUM_FLOAT, range, 0, precision, 0); range = [33, 33] precision = [13] On Wednesday, January 30, 2013 2:27:26 PM UTC-6, RichardC wrote: > > 0 means precision format is not support

[android-developers] Re: glGetShaderPrecisionFormat

2013-01-30 Thread RichardC
0 means precision format is not supported *"If a high precision floating-point format is not supported for fragment shaders, calling glGetShaderPrecisionFormat with argumentsGL_FRAGMENT_SHADER and GL_HIGH_FLOAT will return 0 for both range and precision. Support for a high precision floating-po

[android-developers] glGetShaderPrecisionFormat

2013-01-30 Thread bob
I tried to call the function glGetShaderPrecisionFormat like so: *int range[] = new int[2];* *int precision[] = new int[1];* * * *GLES20.glGetShaderPrecisionFormat(GLES20.GL_FRAGMENT_SHADER, GLES20.GL_HIGH_FLOAT, range, 0, precision, 0);* However, it seems to just stick zeros into range and pre

[android-developers] No subscriptions in Billing V3 API - permanent?

2013-01-30 Thread Nathan
Is this a permanent or temporary condition? Is it likely to change in, say, the next three months? Or is it likely to show up in V4 sometime next year. Anyone who is the know, let me know. Nathan -- -- You received this message because you are subscribed to the Google Groups "Android Devel

Re: [android-developers] Prevent sms sending

2013-01-30 Thread Kristopher Micinski
You might say "but what about app X"? (e.g., https://play.google.com/store/apps/details?id=com.textecution) These apps don't *really* disable SMS abilities. They just: - Look for SMS apps to be started on the phone - Recognize apps which text messaging related - Kill them But that doesn't rea

Re: [android-developers] Prevent sms sending

2013-01-30 Thread Kristopher Micinski
It's not possible, and here's why: User level apps are not supposed to be able to control system level facilities. If your use case is within a company, you'll need a ROM extension. Refusing to believe this doesn't make it any less true. You can't do it, the API isn't exposed. It's not exposed

[android-developers] Prevent sms sending

2013-01-30 Thread Lucas Diego
Hi everybody, I have been developping a launcher for a company in order to prevent users (from this company of course) from doing some actions on the phone, like send sms text for example. So, I'd like to know how can I prevent user from sending sms text. After seaching it, all I have found is peo

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-30 Thread Héctor Júdez
Looks like it has stopped... finally. The result 363 rates gone. El miércoles, 30 de enero de 2013 12:05:11 UTC+1, latimerius escribió: > > On Wed, Jan 30, 2013 at 9:55 AM, Zsolt Vasvari > > wrote: > >> > Why would you consider that suspicious? Half of our five star ratings >> are without a c

[android-developers] Unmanaged items in v3 billing API?

2013-01-30 Thread Michael Parker
Hi all, Reading http://developer.android.com/google/play/billing/index.html, it seems that they're really pushing for devs to use v3 of the API. At the end, it says you should use v2 if "you want to sell subscriptions in your app." But v3 doesn't handle selling unmanaged items, while v2 does. I

[android-developers] can you debug?... here error: syntax error : insert "(" to complete expression

2013-01-30 Thread lselwd
> > > > >> private List fileNameList; // flag file names > > int[] sizeWordCountries = new int[9]; // 10 > > > > for (int i = 0; i < 9; i++) > > { > > sizeWordCountries[i]=(fileNameList.get(i)).length(); // here error: >> syntax error : insert "(" to complet

Re: [android-developers] New activity when I lock my screen

2013-01-30 Thread Davide Moriello
Thank you a lot Nobu and Kostya you helped me a lot. Kostya is right! This is what is happening! Thank you for understaing me, my english is not so good :-( Now, how can I tell the code to do not re-create on orientation change when you lock the screen? The code should handle it without crashing

[android-developers] Admob stats for past month..What's yours?

2013-01-30 Thread Amel Jose
Hi i started as an android developer.The following is my stats for the past 30 days. How do you think i am doing considering the low requests,.. Can you share your data here..I think it would be good to make some comparisons.. Revenue :$62.36 Requests :84,019 eCPM :$0.75 Fill Rate :99.35% i u

[android-developers] asynctask vs. FragmentRetainInstance.java in API demo

2013-01-30 Thread Greenhand
For asynctask to deal with activity rotation, I find this solution: https://github.com/commonsguy/cw-android/blob/master/Rotation/RotationAsync/src/com/commonsware/android/rotation/async/RotationAsync.java . However, getlastnonconfigurationinstance() is deprecated in API level 13 ( http://develop

[android-developers] Re: New activity when I lock my screen

2013-01-30 Thread Nobu Games
You mentioned "crash" in your first post. So the screen is just black. That's weird because if the activity is really re-created from scratch then you should get the exact same result as in first start of your app. I think you should make yourself familiar with the activity life cycle. The Andr

Re: [android-developers] New activity when I lock my screen

2013-01-30 Thread Kostya Vasilyev
Are you locking the device in landscape mode? On phones, locking the screen represents an orientation change, a locked screen is always in portrait mode. This means that if your activity is the top-most one on the screen, it will be destroyed and re-created, and then again when you unlock the dev

[android-developers] Re: New activity when I lock my screen

2013-01-30 Thread Davide Moriello
No errors. When my app is launched (it's a game) and I lock the screen (sleep?) and everything is black, the app start again calling a new activity, creating a new istance of this class: http://pastebin.com/j1mTRUnB I don't know why, I don't touch anything, it just create a new activity when is

[android-developers] Re: getting the active Fragment

2013-01-30 Thread Nobu Games
That's certainly another solution. However, you need to be careful about future updates of that component. You never know what might change. The caching approach would roughly look like as follows: public abstract class MyFragmentPagerAdapter extends > FragmentStatePagerAdapter { > final pr

[android-developers] Re: New activity when I lock my screen

2013-01-30 Thread Johan Appelgren
What error do you get? On Wednesday, January 30, 2013 11:48:59 AM UTC+1, Davide Moriello wrote: > > Hello, I'm developing an android app for some time now. Everything is > going well. When I close my app with the home button and I reopen it there > aren't any problems or crashes. > But, when I

[android-developers] Re: File Upload - Get Bytes Uploaded

2013-01-30 Thread Nobu Games
Sorry, I was just reacting to the other user who resurrected this old thread by giving the wrong answer. I better should stop doing that :-D On Wednesday, January 30, 2013 9:41:42 AM UTC-6, Bobbie wrote: > > I don't even remember this post, haha. I'm not sure what I did to check > the file uploa

[android-developers] Re: New activity when I lock my screen

2013-01-30 Thread Davide Moriello
Hi, nothing changed adding android:launchMode =["singleTop"] :-( Il giorno mercoledì 30 gennaio 2013 16:40:14 UTC+1, lbendlin ha scritto: > > see here for reference > http://developer.android.com/guide/topics/manif

[android-developers] Re: File Upload - Get Bytes Uploaded

2013-01-30 Thread Bobbie
I don't even remember this post, haha. I'm not sure what I did to check the file upload status, this is a project from quite a while ago, sorry! I believe Android has some built-in tools to do this now, though. Bobbie On Wednesday, January 30, 2013 10:38:14 AM UTC-5, Nobu Games wrote: > > He

[android-developers] Re: New activity when I lock my screen

2013-01-30 Thread lbendlin
see here for reference http://developer.android.com/guide/topics/manifest/activity-element.html On Wednesday, January 30, 2013 10:01:48 AM UTC-5, Davide Moriello wrote: > > Hi, thank you for trying to help me. > > My mainfest is this > http://pastebin.com/RgNvES45 > > I don't know where to look :

[android-developers] Re: File Upload - Get Bytes Uploaded

2013-01-30 Thread Nobu Games
Hey, Bobbie! If you can still hear this back in 2010: tell me if you have been successful with getting the amount of uploaded bytes with Base64. And don't forget to upload your server! On Wednesday, January 30, 2013 12:30:12 AM UTC-6, Anything wrote: > > Convert Your ByteArray to Base64String th

[android-developers] In IAB v3, can I use getBuyIntent() to check purchase?

2013-01-30 Thread NoraBora
I'm testing IAB v3 and found that if I tried to buy a product I already bought, getBuyIntent() returns with the response code BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED. This would be much easier than getPurchase() to check a productId because getPurchase() returns all list. Can I use this to c

[android-developers] Re: New activity when I lock my screen

2013-01-30 Thread Davide Moriello
Hi, thank you for trying to help me. My mainfest is this http://pastebin.com/RgNvES45 I don't know where to look :-( Il giorno mercoledì 30 gennaio 2013 15:54:37 UTC+1, lbendlin ha scritto: > > Check your manifest file for singleTop etc. > > On Wednesday, January 30, 2013 5:48:59 AM UTC-5, David

[android-developers] Re: New activity when I lock my screen

2013-01-30 Thread lbendlin
Check your manifest file for singleTop etc. On Wednesday, January 30, 2013 5:48:59 AM UTC-5, Davide Moriello wrote: > > Hello, I'm developing an android app for some time now. Everything is > going well. When I close my app with the home button and I reopen it there > aren't any problems or cras

[android-developers] Re: using INCLUDE layouts

2013-01-30 Thread skink
dashman wrote: > if i refer to a textview inside a TextView as > > findViewById(R.id.textView1); > > how do i refer the the textView in the second and subsequent INCLUDEd > layout. > > they all have the same id. > > > > hint: use View.findViewById pskink -- -- You received this message becau

[android-developers] Re: using INCLUDE layouts

2013-01-30 Thread dashman
if i refer to a textview inside a TextView as findViewById(R.id.textView1); how do i refer the the textView in the second and subsequent INCLUDEd layout. they all have the same id. On Wednesday, January 30, 2013 7:53:22 AM UTC-5, skink wrote: > > > > dashman wrote: > > So this means that

[android-developers] In App Billing - getSkuDetails returns app name as part of product title

2013-01-30 Thread Lev Stipakov
Hello, I have noticed today that getSkuDetails returns application name as part of product title, something like: { "productId" : "exampleSku", "type" : "inapp", "price" : "$5.00", "title : > "Example Title (HERE GOES APP NAME)", "description" : "This is an example > description" }' This has

[android-developers] Re: Injecting focus change events programatically

2013-01-30 Thread Piren
Seems like the obvious way is to implement an app that mimics a keyboard, without the UI. then the only commands you need are: up, down, left and right (and hope that the other developers remembered to set focus orders :) ) On Wednesday, January 30, 2013 3:02:38 PM UTC+2, shashidhar wrote: > >

[android-developers] Re: Injecting focus change events programatically

2013-01-30 Thread Shashidhar
Any help on this??? On Mon, Jan 7, 2013 at 4:48 PM, Shashidhar wrote: > Hi, > I have seen the examples for injecting key press and motion > events programmatically in android. But is there a way to inject focus > change events programmatically. > > I want to make a android device operated with

[android-developers] Re: Thread Loop

2013-01-30 Thread G. Blake Meike
First of all, congrats for not doing this with an AsyncTask. Second, as of Honeycomb, you may not touch the network from the UI thread (as you've probably surmised by now). The fact that you are getting that error message suggest to me that you are using a Handler *attached to the UI thread* Y

[android-developers] Re: using INCLUDE layouts

2013-01-30 Thread skink
dashman wrote: > So this means that the same layout cannot be INCLUDEd more than once? no, it can be included as many times as you wish. pskink -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Re: using INCLUDE layouts

2013-01-30 Thread dashman
So this means that the same layout cannot be INCLUDEd more than once? -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] Re: set Mydate to Datepicker

2013-01-30 Thread skink
sree android wrote: > Hi, > when i am create datepicker dialogue,it contain current date,month,year was > displayed.instead of these i would like to display my own date,month,year. see updateDate pskink -- -- You received this message because you are subscribed to the Google Groups "Android

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-30 Thread Latimerius
On Wed, Jan 30, 2013 at 9:55 AM, Zsolt Vasvari wrote: > > Why would you consider that suspicious? Half of our five star ratings > are without a comment. > > I consider that VERY suspicious. Out of my almost 2000 5-star ratings, at > least 95% have a comment to go with it. > That's cool, but t

Re: [android-developers] Re: Google Map Android Api V2 not working

2013-01-30 Thread sree android
can u send your xml code. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups

[android-developers] set Mydate to Datepicker

2013-01-30 Thread sree android
Hi, when i am create datepicker dialogue,it contain current date,month,year was displayed.instead of these i would like to display my own date,month,year. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

Re: [android-developers] Re: Google Map Android Api V2 not working

2013-01-30 Thread harryb87
Yah, Official Google Map is installed at phone. On Tue, Jan 29, 2013 at 6:07 PM, Krishna Prasad < krishnaprasadrs.1...@gmail.com> wrote: > check whether google map is installed in phone > > > On Monday, January 21, 2013 10:05:10 PM UTC-8, Haps wrote: >> >> Hi Guys, >> >> I am trying to use the la

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-30 Thread Héctor Júdez
Yes, it has always been possible. Just download a free app and test it yourself. El miércoles, 30 de enero de 2013 11:48:04 UTC+1, Zsolt Vasvari escribió: > > My app is a Personal Finance app. The exact same demographics as yours. > > I literally cannot remember the last time somebody left a r

Re: [android-developers] Re: Google Map Android Api V2 not working

2013-01-30 Thread harryb87
I tried the code at this link, but its not working on Galaxy Young device. Having fragment exception at layout file. at code:- *setContentView(R.layout.activity_main);* 01-30 14:01:41.089: E/AndroidRuntime(451): FATAL EXCEPTION: main 01-30 14:01:41.089: E/AndroidRuntime(451): java.lang.RuntimeExc

[android-developers] New activity when I lock my screen

2013-01-30 Thread Davide Moriello
Hello, I'm developing an android app for some time now. Everything is going well. When I close my app with the home button and I reopen it there aren't any problems or crashes. But, when I have my app open and I lock my screen the app create a new istance of the activity and call again onCreate

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-30 Thread Zsolt Vasvari
My app is a Personal Finance app. The exact same demographics as yours. I literally cannot remember the last time somebody left a rating but not a comment. Is it even possible to do that? That said, last weekend, I had about 10 ratings appear out of the blue without a comment -- but then thos

[android-developers] Image Crashing or folding by using multi-touch event

2013-01-30 Thread chandur mani
Hi All, I am working one project, which is having multi touch event with images editing. My task is crashing or folding image using multi touch event. I go through the google , i got only stretching , drag and drop images. how to do this stuff. Please help me. Sorry for my english. Th

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-30 Thread Héctor Júdez
Well, each app is a different world. For example, no one younger than 18 will ever buy my app because you need to have a car (maybe 16 in some countries).. If you publish a game maybe you get much more comments because younger users are more used to write stuff and leave their opinions in the In

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-30 Thread Héctor Júdez
Thanks, I've taken screenshots from Google cache. That´s a good idea. El miércoles, 30 de enero de 2013 04:54:18 UTC+1, bob escribió: > > I confirmed that you did lose a lot of 5 star ratings. > > You had 373. > > Now you have 268. > > You might want to take a screenshot of the cached Google Play

Re: [android-developers] All my apps are losing 5 star rates at a really high speed. I've lost more than 200 during this weekend.

2013-01-30 Thread Zsolt Vasvari
> Why would you consider that suspicious? Half of our five star ratings are without a comment. I consider that VERY suspicious. Out of my almost 2000 5-star ratings, at least 95% have a comment to go with it. Can you even leave a rating and not comment? > > -- -- You received this mes