[android-developers] Android new accounttype without AuthenticatorActivity

2013-01-31 Thread Tom
Hi guys, I write an app which should use an own account for contacts. I found a lot of examples in the internet but not that what I want. And the SampleSyncAdapter from the samples doesn't help me so much. What I want is a something like AccountManager _accountMgr =

[android-developers] Re: using INCLUDE layouts

2013-01-31 Thread dashman
Little dense...make sure i understand. You're saying first to a findById on the root layout id and then do another one on the control within that - right? On Wednesday, January 30, 2013 9:42:31 AM UTC-5, skink wrote: dashman wrote: if i refer to a textview inside a TextView as

Re: [android-developers] Mobile network idle sockets disconnected

2013-01-31 Thread Goncalo Oliveira
Thanks for the reply Robert. I also had the idea that this was device side only, but I'm still confused by these behaviors. I do bet that Samsung's is doing something different (not that uncommon). I'm pasting the radio logs below. The SIM card used here is the one that works in the other device.

[android-developers] how to limit display items of listview

2013-01-31 Thread Live Happy
i m using a cursor adapter to display items in listview from database and i want to limit the number of displaying by get last 20 items and than after click on header button retrieve other 20 i tried to use the method getCount() in the adapter public int getCount() {// TODO Auto-generated method

[android-developers] Re: using INCLUDE layouts

2013-01-31 Thread skink
dashman wrote: Little dense...make sure i understand. You're saying first to a findById on the root layout id and then do another one on the control within that - right? right, from your example: layout.xml textview id=@+id/textView1/ textview id=@+id/textView2/ and in the container

[android-developers] aptoide piracy

2013-01-31 Thread Andrea Pietroni
Hi all, this might be OT as it's not programming related, however, have you ever tried to have aptoide remove your pirated app? Did you succeed? how long did you have to wait (without answers, let alone app removal)? Thank you, Andrea -- -- You received this message because you are

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

2013-01-31 Thread lselwd
https://lh4.googleusercontent.com/-kxbaryQn3-Y/UQpeCHgJO3I/E6c/Trd_NNGOU4w/s1600/flags+app+last+bug.jpg // after the user guesses a correct flag, load the next flag private void loadNextFlag() { // get file name of the next flag and remove it from the list

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

2013-01-31 Thread Héctor Júdez
I don't know much about finance but... why could this be good for anyone but Google? El jueves, 31 de enero de 2013 07:50:29 UTC+1, Zsolt Vasvari escribió: 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

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

2013-01-31 Thread lselwd
!ENTRY org.eclipse.ui 4 0 2013-01-31 14:12:01.562 !MESSAGE Unhandled event loop exception !STACK 0 org.eclipse.e4.core.di.InjectionException: org.eclipse.swt.SWTError: No more handles at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63) at

[android-developers] Re: using INCLUDE layouts

2013-01-31 Thread kj
If there is a layout you want to include that has a lot of components, it can be easier to make a View class for that layout and simply use that class in your layouts. The easier approach to this is to extend and existing ViewGroup class and simply inflate your desired layout in the

[android-developers] Re: aptoide piracy

2013-01-31 Thread Andrea Pietroni
I can finally answer for myself: 2 days (with email solicitation?) and hundreds of downloads :( Il giorno giovedì 31 gennaio 2013 12:38:58 UTC+1, Andrea Pietroni ha scritto: Hi all, this might be OT as it's not programming related, however, have you ever tried to have aptoide remove your

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

2013-01-31 Thread Jim Graham
On Wed, Jan 30, 2013 at 06:39:21PM -0800, DroidMaster wrote: 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. Question: does anyone seriously use the default browser anyways? There are (in my

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

2013-01-31 Thread Jim Graham
On Wed, Jan 30, 2013 at 10:50:29PM -0800, Zsolt Vasvari wrote: 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. Not that I expect this to matter to me

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

2013-01-31 Thread Dan
On Wednesday, January 30, 2013 9:21:26 PM UTC-5, Mark Murphy (a Commons Guy) wrote: 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.

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

2013-01-31 Thread John Coryat
doesn't google have a high-water mark where if you reach that, there's an automatic immediate payout? No. I can't see how this will be good for anyone but Google as well but it's not without precedent. AdMob holds your money for 45 days. AdSense for 21 days. Google Play is only holding (for

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

2013-01-31 Thread Kostya Vasilyev
At least they're making it gradual, with two payouts for February 2013... 2013/1/31 John Coryat cor...@gmail.com doesn't google have a high-water mark where if you reach that, there's an automatic immediate payout? No. I can't see how this will be good for anyone but Google as well but

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

2013-01-31 Thread Héctor Júdez
I still remember when they used to pay every day... that was really nice! Well, the gradual change makes it a little bit less painful, that's true. El jueves, 31 de enero de 2013 14:57:20 UTC+1, John Coryat escribió: doesn't google have a high-water mark where if you reach that, there's an

[android-developers] Re: glGetShaderPrecisionFormat

2013-01-31 Thread bob
My best guess concerning this is that the 33 bits are for the mantissa. Then, the 13 bits are for the exponent. So that gives 46 bits. Then, there's a sign bit for the mantissa and a sign bit for the exponent, thus yielding 2 extra bits for a total of 48 bits. So, I guess it is a 48 bit

[android-developers] Re: Android new accounttype without AuthenticatorActivity

2013-01-31 Thread Nobu Games
How are you validating that your own contacts database is still in sync with the device contacts data? As you mentioned: the ID can change over time. According to the API docs it can even change on synchronization and / or account aggregation not just when the user switches phones. You should

Re: [android-developers] Android new accounttype without AuthenticatorActivity

2013-01-31 Thread Nikolay Elenkov
On Thu, Jan 31, 2013 at 6:43 PM, Tom tklapet...@aol.com wrote: My idea was, to create an new account for my app (like WhatsApp is doing that) and storing there my additonal contactinformation. This account I can export and import it to a new smartphone. That's right, or? But for that I don't

[android-developers] text in OpenGL

2013-01-31 Thread bob
Does anyone know what the best way to do text in OpenGL on Android is? It would be nice if there was a way to do True Type fonts. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: how to limit display items of listview

2013-01-31 Thread lbendlin
don't change the list view, change the adapter feed with a query that uses the limit. On Thursday, January 31, 2013 5:51:13 AM UTC-5, Live Happy wrote: i m using a cursor adapter to display items in listview from database and i want to limit the number of displaying by get last 20 items and

[android-developers] Re: text in OpenGL

2013-01-31 Thread Nobu Games
What a coincidence. I'm also researching that topic at the moment. And as far as I understand there are two approaches. 1. You can integrate one of these fully-featured True Type font libraries for OpenGL. I believe you will have to go the native code route because I'm not aware of a

[android-developers] MINI_KIND Thumbnails wrong ratio on Nexus 4 (and other LG devices)

2013-01-31 Thread CameraMX Team
Hi, I am developer of a quite common camera app. We were testing on the new Nexus 4 these days and experienced wrong aspect ratios of the MINI_KIND thumbnails for the captured photos. The photos are captured in a 16:9 ratio but the MINI_KIND thumbnails are created in a distorted 4:3 ratio. We

[android-developers] Dynamic Application Theme

2013-01-31 Thread Pent
Tearing my hair out over this one. I'm offering the user a choice of several dark or light themes. Setting with getApplication().setTheme() and setTheme() in onCreate of activity (as the first thing in that function). There's a period while the app loads when the screen goes black. If you have a

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread Latimerius
On Thu, Jan 31, 2013 at 5:13 PM, Nobu Games dev.nobu.ga...@gmail.comwrote: 2. This seems to be the Android standard approach: pre-render an atlas / map texture with all letters and symbols you need using a Bitmap, Canvas and a font of your choice. The Android tools available are very

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread Nobu Games
I haven't tested / benchmarked that myself using OpenGL ES, but what I read so far over on Stackoverflow is that developers noticed a performance impact when you have an extra view for rendering text on top of a GLSurfaceView. I only experimented with a custom view with text and graphics

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread Nobu Games
Oh, in addition to what I said: since GL rendering and Android UI are done in two separate threads, there is the chance that both text and 3D graphics are not completely in sync. This is not much of a problem for HUDs, but it might turn out to be a problem when text has to be positioned

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread Latimerius
Hm, I'm not sure I'm following you. What I have in mind is - make a new Paint, setTypeface() and setTextSize() on it - take a string to render, measure it using getTextBounds() - create a Canvas, setting it a Bitmap (usually a Bitmap of bounds width*height, both taken to the next power of two if

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread Nobu Games
I see, I misunderstood your previous response. I was thinking you were talking about an overlay view on top of the OpenGL view. What you're saying is also an approach that seems to be practically used by Android game developers. It works well for static common messages. However, if you're

[android-developers] Re: Dynamic Application Theme

2013-01-31 Thread Kostya Vasilyev
I see this in every app with theme switching, mine included. My guess is that when Android performs an activity launch from nothing, it runs the launch animation using whatever theme is specified in the manifest, before any of the app's code is executed. You can easily test this by setting a

[android-developers] Wi-Fi Direct?

2013-01-31 Thread bob
Is there an easy way to tell if a device supports Wi-Fi Direct or not? 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,

[android-developers] External video output (USB/HDMI/etc)

2013-01-31 Thread Larry Meadors
I've been looking for information on how to determine if a device can do this or not - is there a standard API for this or is it all device/vendor specific? Larry -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Styling list selector in spinner dialogs?

2013-01-31 Thread saladbowl
*In earlier versions of Android (API level 8-10 I think):* If I create my own ListView style with the listSelector attribute set to my own custom state list drawable in my styles.xml file, then I am able to see my custom colours when a list item is pressed, focused, etc., including in spinner

Re: [android-developers] External video output (USB/HDMI/etc)

2013-01-31 Thread Mark Murphy
Prior to Android 4.2, there was no API for this. Now, you can take a look at the DisplayManager and see if it will give you the info that you need. On Thu, Jan 31, 2013 at 1:24 PM, Larry Meadors larry.mead...@gmail.com wrote: I've been looking for information on how to determine if a device can

Re: [android-developers] External video output (USB/HDMI/etc)

2013-01-31 Thread Larry Meadors
Thanks, will do! Larry On Thu, Jan 31, 2013 at 11:47 AM, Mark Murphy mmur...@commonsware.com wrote: Prior to Android 4.2, there was no API for this. Now, you can take a look at the DisplayManager and see if it will give you the info that you need. On Thu, Jan 31, 2013 at 1:24 PM, Larry

[android-developers] Re: Styling list selector in spinner dialogs?

2013-01-31 Thread saladbowl
Some further information . this only seems to apply when the spinnerMode is set to dialog, the list selector is picked up in dropdown mode. On Thursday, 31 January 2013 18:36:53 UTC, saladbowl wrote: *In earlier versions of Android (API level 8-10 I think):* If I create my own ListView

[android-developers] Re: Thread Loop

2013-01-31 Thread Indicator Veritatis
And since Blake was too shy to mention his own web site and book, let me do it for him;) The coverage of these issues in Programming Android is better than in many Android books, and in his webcast Concurrent Programming in Android is even better. IntentService is so handy, I am amazed it got

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

2013-01-31 Thread Nathan
I agree that It doesn't benefit anyone but Google. I feel sorry for those who have to write the message to make it sound like it benefits us. We will all have adjusted within 90 days. I *hope* this is an inconvenience for more people, though not in a bad way. Two years ago when they were

Re: [android-developers] Re: Prevent sms sending

2013-01-31 Thread Lucas Diego
Ok, so... what I did to avoid (or at least try to) user send sms, was to show users a message by the moment they send the sms. Basically, the messagem says that it is aganist the company's rules and they (users) are not suppose to do that. Well.. I think it is gonna decrease the amount of sms

Re: [android-developers] Re: Prevent sms sending

2013-01-31 Thread Kristopher Micinski
A google search on android stop call programmatically gives this: http://stackoverflow.com/questions/1083527/how-to-block-calls-in-android kris On Thu, Jan 31, 2013 at 3:05 PM, Lucas Diego diegoluc...@gmail.com wrote: Ok, so... what I did to avoid (or at least try to) user send sms, was to

Re: [android-developers] html parsing issuess

2013-01-31 Thread TreKing
On Thu, Jan 31, 2013 at 2:29 PM, prudhvi p n v prudhviraju1...@gmail.comwrote: so please download the html parser 1.6 jar while executing the code The error i was facing is : responseBody cannot be resolved to a variable can anyone solve this error.. So you want someone to go download a

Re: [android-developers] Re: Prevent sms sending

2013-01-31 Thread Lucas Diego
Yeah I've seen and tried it already... The problem is that, it doesn't work on android 2.3.7 or up On 31 Jan 2013 17:32, Kristopher Micinski krismicin...@gmail.com wrote: A google search on android stop call programmatically gives this:

[android-developers] TCP Socket sample

2013-01-31 Thread bob
I was looking at the samples for Android, hoping to find an example of a TCP Socket client. However, I was unable to. I think it would be especially nice to have this now that we shouldn't be using the UI thread. Am I missing something or is there no such sample? Thanks. -- -- You

Re: [android-developers] Re: Prevent sms sending

2013-01-31 Thread Kristopher Micinski
Again: this *should not* be possible to do. Fundamentally, on the app level, you should not have control over this kind of functionality. The relevant Google bug report is here: https://code.google.com/p/android/issues/detail?id=15022 But it is marked as closed. The basic story is: don't try

Re: [android-developers] Re: Prevent sms sending

2013-01-31 Thread Kristopher Micinski
(Though you can apparently still watch the incoming call log and kill calls, I see this as a bug in the Android framework, but you're free to use as you wish...) kris On Thu, Jan 31, 2013 at 4:30 PM, Kristopher Micinski krismicin...@gmail.com wrote: Again: this *should not* be possible to do.

Re: [android-developers] TCP Socket sample

2013-01-31 Thread Kristopher Micinski
You were never supposed to be using the UI thread (apps that were doing it were just written incorrectly). Socket communication really has nothing to do with Android, which is why there isn't a sample. Instead you can google java socket programming and find a bit about it, Kris On Thu, Jan

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread a1
- Use Canvas to create a texture map with all used characters for the current locale (and I agree, that looks like a big PITA unless you're supporting just a single or a few languages) It's usually done offline (see BMFont http://www.angelcode.com/products/bmfont/ and

[android-developers] Re: TCP Socket sample

2013-01-31 Thread Ian Ni-Lewis
Kristopher is right that socket programming isn't really an Android-specific topic. We try to produce samples that won't duplicate information you could find elsewhere. Might be reasonable to have a sample on how to move your network code off of the UI thread, though. Android provides a rich

Re: [android-developers] Re: text in OpenGL

2013-01-31 Thread bob
I have something for Mac called bmGlyph, which is pretty good. But, I haven't written the OpenGL code for loading those yet. On Thursday, January 31, 2013 4:20:25 PM UTC-6, a1 wrote: - Use Canvas to create a texture map with all used characters for the current locale (and I

[android-developers] Activity passing

2013-01-31 Thread bob
Is it possible to pass an open Bluetooth socket from one Activity to another? I guess I'm somewhat confused about what activities can and cannot pass. Thanks. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Activity passing

2013-01-31 Thread Lew
bob wrote: Is it possible to pass an open Bluetooth socket from one Activity to another? I guess I'm somewhat confused about what activities can and cannot pass. I don't know if it's possible, but if so it's almost certainly a bad idea. Once more than one component has a socket open, it

Re: [android-developers] Activity passing

2013-01-31 Thread Kristopher Micinski
When you think about what you can send between activities, think to yourself can I serialize this data to a text file and send it to another process? In this case, you really can't do that, because you can't serialize references (generally..). You should not be doing this, a lightweight solution

[android-developers] how to store path of images on SQLite database

2013-01-31 Thread Prabu Siabuabu
hi guys, i want to ask how to store path of the images on SQLite db?? because i was googling about how to store image direct to SQLite and it's a very tricky way, and i wonder, is it possible just to store the path of images and retrieving all of them? if yes, would you please guys show me the

[android-developers] Canvas 101 question

2013-01-31 Thread dashman
As I delve into the Canvas class - here's my first of many questions I've got a sub-class and handling onDraw() why does canvas.getWidth()/getHeight() return the full dimensions of the device screen. whereas canvas.getClipBounds() returns a more accurate dimensions of the canvas view. How do I

[android-developers] Could Google Play filter by OS before user can download certain application

2013-01-31 Thread DroidMaster
Dear Experts, I have developed an application which is only intended for Jelly Bean ( not ICS ). Is it anyway for Google Play to prevent ICS device from download my application? If the same device has the with a different OS ; I know there is a way to filter by device id. What are the

Re: [android-developers] Canvas 101 question

2013-01-31 Thread Romain Guy
Canvas.getWidth/getHeight() return the size of the Canvas. The dimension of the Canvas is decided by the caller of your draw() method. It would be legitimate for instance for every View to use a different Canvas (which is actually what happens when hardware acceleration is enabled.) The

[android-developers] simple matrix question

2013-01-31 Thread dashman
this is the onDraw method for my View sub-class drawCross() is a simple method that draws a cross. shouldn't this code result in overlapping crosses. trying to understand the translate method. drawCross( canvas, 200, 400 ); // no transformations Matrix m = new

Re: [android-developers] simple matrix question

2013-01-31 Thread Romain Guy
Calling setMatrix() will override the existing transforms set on the Canvas. The Canvas passed to View.onDraw() may already have transforms set to draw in the correct location. Instead of using setMatrix(), using Canvas.translate(), Canvas.scale(), etc. Don't forget to use Canvas.save() and

[android-developers] Re: Could Google Play filter by OS before user can download certain application

2013-01-31 Thread antasis9
You can specify minSdkVersion maxSdkVersion to AndroidManifest.xml. If a user device's sdk version is less than minSdkVersion or bigger than maxSdkVersion, Google Play shows alert string to user, you can't download.. blah blah. There is detail information.

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

2013-01-31 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

[android-developers] Re: Dynamic Application Theme

2013-01-31 Thread Zsolt Vasvari
Funny Here's a very recent article on this: http://android.cyrilmottier.com/?p=873 On Friday, February 1, 2013 2:08:54 AM UTC+8, Kostya Vasilyev wrote: I see this in every app with theme switching, mine included. My guess is that when Android performs an activity launch from nothing,

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

2013-01-31 Thread Anthony Prieur
What about the Java Webview binding then, would it be replaced by a ChromeView ? Le jeudi 31 janvier 2013 14:50:54 UTC+1, Dan a écrit : On Wednesday, January 30, 2013 9:21:26 PM UTC-5, Mark Murphy (a Commons Guy) wrote: We will find out when the next version of Android ships. I will be

[android-developers] My game has cloned/stolen, how has this happend?

2013-01-31 Thread Adam
I released a game a few years ago with little to no success, around 6k downloads. It was a bit of fun, I didn't intend to make money from it, so had no ads. Anyway, it turns out someone has decompiled it to include ads and a link to their other games (where it would otherwise go to my pro

[android-developers] Re: Dynamic Application Theme

2013-01-31 Thread Pent
http://android.cyrilmottier.com/?p=873 Good link, thanks. Unfortunately it only helps with static configuration, which is not the problem. The comments show that Romain also doesn't have a solution for user-preference-based theming. @Kostya: I know how to control the launch theme, the problem

[android-developers] Re: My game has been cloned/stolen, how has this happend?

2013-01-31 Thread Adam
On Friday, 1 February 2013 18:41:46 UTC+11, Adam wrote: I released a game a few years ago with little to no success, around 6k downloads. It was a bit of fun, I didn't intend to make money from it, so had no ads. Anyway, it turns out someone has decompiled it to include ads and a link