[android-developers] How to sync data from server into android SQLite using sync adapter?

2016-12-23 Thread Gustavo Peixoto
1 - sync adapter was created to synchronize client and server data on the background. It is executed as a different process than the app. 2 - SQLite cannot be written by multiple processes Considering these two points, how am I supposed to write the data parsed from server to the sqlite

[android-developers] Volley - why the requests are not being executed asynchronously?

2016-12-23 Thread Gustavo Peixoto
I'm trying to use volley to make asynchronous, parallel requests. I know this should be default behaviour, I can't figure out what I am doing wrong. I wrote an Instrumentation test to check the asynchronism of the RequestQueue processing. This should go inside de **androidTest** folder, it

[android-developers] Re: Gatt error on Bluetooth low energy

2016-08-22 Thread Gustavo Monteiro
up On Wednesday, August 17, 2016 at 11:36:57 AM UTC-3, Gustavo Monteiro wrote: > > Hello, > > I'm working on a project in android that uses Bluetooth low energy (BLE). > I have a DeviceScanFragment that shows a list of all BLE devices. When I > select a device to con

[android-developers] Gatt error on Bluetooth low energy

2016-08-17 Thread Gustavo Monteiro
Hello, I'm working on a project in android that uses Bluetooth low energy (BLE). I have a DeviceScanFragment that shows a list of all BLE devices. When I select a device to connect, it should go to another fragment ( ScanProfessionalFingerprintFragment ), start the BluetoothLeService and

Re: [android-developers] Create effect of solid blue "curtain" being slowly pulled across a white screen

2016-01-08 Thread Gustavo Oliveira
Take a look at Animation http://developer.android.com/reference/android/view/animation/Animation.html I would suggest you rework your layout, putting your background image as a separate element and making it slide using a TranslateAnimation (or stretch with ScaleAnimation). On Fri, Jan 8, 2016

Re: [android-developers] Google AppInvites beta cause MissingTranslation Lint error compiling in Android

2015-10-22 Thread Gustavo Oliveira
Ok, that's related to Google Services API. Not sure if you found it, but there's an issue open for that: https://code.google.com/p/analytics-issues/issues/detail?id=733 No fix, but there are workarounds in the comments. I think it would help to add your error there. On Thu, Oct 22, 2015 at

Re: [android-developers] Google AppInvites beta cause MissingTranslation Lint error compiling in Android

2015-10-21 Thread Gustavo Oliveira
This is a group for Android app developers (using the SDK, not developing it). You can ask if anyone here has found the same problem and how to work around it. Now if you want to file a bug report, the right place to do it is https://code.google.com/p/android/issues Cheers, Gus On Wed, Oct 21,

Re: [android-developers] Re: adb can not find my device.

2015-10-14 Thread Gustavo Oliveira
Has it worked before? Looks like a driver issue. Try reinstalling the driver. On Sun, Oct 11, 2015 at 5:19 AM, Ray Tayek wrote: > i added a galaxy tab s. and put both into developer mode > . > > adb list

Re: [android-developers] app size build with android studio much bigger than made with Eclipse

2015-10-02 Thread Gustavo Oliveira
art enough not to package it (you can tell it do so if you want it to though). Cheers, Gus On Fri, Oct 2, 2015 at 9:51 AM, Gustavo Oliveira <gus...@gmail.com> wrote: > Follow the steps for Android Studio: > > > On Fri, Oct 2, 2015 at 4:54 AM, Faust Nijhuis <faustnijh...@gmai

Re: [android-developers] app size build with android studio much bigger than made with Eclipse

2015-10-02 Thread Gustavo Oliveira
Follow the steps for Android Studio: On Fri, Oct 2, 2015 at 4:54 AM, Faust Nijhuis wrote: > I made two apk files: > > 1) without com.google.android.gms >app size = 598 kb >Size after install is 864 Kb > 2) with com.google.android.gms (for ads) > app size =

Re: [android-developers] Get the DNS details when the Device is connected to Data connection.

2015-10-01 Thread Gustavo Oliveira
Doesn't that work on Lollipop as well? On Thu, Oct 1, 2015 at 2:28 PM, 'Robert Greenwalt' via Android Developers < android-developers@googlegroups.com> wrote: > On M you can use > ConnectivityManager.getLinkProperties(ConnectivityManager.getActiveNetwork()).getDnsServers() > > On Thu, Oct 1,

Re: [android-developers] app size build with android studio much bigger than made with Eclipse

2015-09-30 Thread Gustavo Oliveira
Maybe you have external libs being packaged into your apk by Android Studio. On Wed, Sep 30, 2015 at 5:45 PM, Justin Anderson wrote: > Have you tried looking at the contents of the .apk and comparing it with > one of your older .apk files built from eclipse? > > On Wed,

Re: [android-developers] Re: Activity with new BarcodeDetector API from Google Play Services 7.8

2015-08-21 Thread Gustavo Oliveira
Activity.finish() should be called from the UI thread. Try doing that and post the result. Cheers, Gus On Fri, Aug 21, 2015 at 10:24 AM, gc gcst...@gmail.com wrote: Just updating, if anyone can help it would be appreciated. If you need more information please ask. I think this should be

Re: [android-developers] Manifest android:process field

2015-08-11 Thread Gustavo Oliveira
I think Justin has answered your question. The documentation states that a fresh new process will be created only when it's needed. So it all points out to System.exit() probably not terminating your process. It just calls Runtime.exit(), which states in its doc: This method is unlikely to be

Re: [android-developers] android {create,update} project

2014-12-17 Thread Gustavo Oliveira
Hello, I think you need to use custom_rules.xml file. Check http://playaprogrammer.blogspot.com.br/2013/01/android-build-configuration-tutorial.html Regards, Gustavo On Wed, Dec 17, 2014 at 12:20 PM, pedr0 pulsarpie...@gmail.com wrote: Hi everyone, I am working using the android android

Re: [android-developers] How to get more reviews/comments when my app runs mainly in background?

2014-04-14 Thread Gustavo Oliveira
I believe the Rate Us dialog is a good idea. Also, I would add interesting information in that dialog, like some tips, usage statistics, just like some free apps do (e.g. antivirus and protection software normally tell how many threats were blocked). Best, Gus On Mon, Apr 14, 2014 at 5:24 PM,

[android-developers] Re: Zooming on a custom overlay

2012-11-06 Thread Gustavo Castillo
Tod did you find someexample code? i am trying to do this on android too but have not been successful in finding any code. Thanks in advance, Gustavo On Monday, 30 July 2012 11:33:44 UTC-4:30, Todd Bennett wrote: Hey Igor, I am trying to subclass the Overlay class so that I can pull tiles

Re: [android-developers] Master-Detail layout inside a TabActivity

2012-10-21 Thread Silvio Gustavo
Hi Marco, Nested Fragments are not supported by Android. You could change the activity layout, putting 3 containers to attach the 3 different fragments when the tab is selected. If you do not need these containers on the other tabs, you can set their visibility to gone after detach the fragments.

Re: [android-developers] Re: Sqllite order by

2012-10-20 Thread Silvio Gustavo
To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Silvio Gustavo de Oliveira Santos Engenheiro de Software -- You received this message because you

Re: [android-developers] Creating a Widget without extendig AppWidgetProvider

2011-09-01 Thread Silvio Gustavo
to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Silvio Gustavo de Oliveira Santos Engenheiro de Software -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Custom View

2011-07-06 Thread Gustavo Vargas
Hello all, I'm working on a custom view and I have some problems trying to define some custom XML attributes. Here is part of my definitions: declare-styleable name=ViewUpDown attr name=step format=float / attr name=value

[android-developers] Saving pointers to object

2011-06-28 Thread Gustavo Vargas
Ok, I know pointers don't exist in Java, but I was wondering if there is a way to mimic its behavior or any other mechanism that let me keep the reference to an object when my activity restart from a softkill. inside the onCreate of my activity I have something like that: work= new

[android-developers] Re: Saving pointers to object

2011-06-28 Thread Gustavo Vargas
On 28 jun, 17:46, Justin Anderson magouyaw...@gmail.com wrote: Why not wrap this original work thread in a service? Yes, I think I'll do that, I can't see another reliable way to do this. Thanks everybody that give me the tip of using the onRetainNonConfigurationInstance(), I just tried it out

[android-developers] Shell interface

2011-06-22 Thread Gustavo Vargas
What I need to do is to find a way to have an EditText that works normally except that always the user type a new key, this new char always goes to the end of the text. In other words I don't want the user to move the carret/cursor, any new text should be appended to the end. I'm trying to write

[android-developers] translated onKeyDown

2011-06-22 Thread Gustavo Vargas
Hello, I'm using an onKeyDown to receive keys and it works good for soft and hard keyboards, but all I receive is keyCodes and scanCodes. I don't want this. I don't want to have to deal with shift and alt to discover what key the user pressed. I don't need to receive every key the user press

[android-developers] Re: Shell interface

2011-06-22 Thread Gustavo Vargas
Does someone can give me a tip how to do that? Extend EditText? I tried but the user can touch on every piece of text and then I can't found a way to discover where is the carret and how to move it to the end. Currently I'm using a TextView extension and it finally seems to work fine. The

[android-developers] Re: translated onKeyDown

2011-06-22 Thread Gustavo Vargas
Searching the docs for keyboard character:http://developer.android.com/reference/android/view/KeyCharacterMap.h..., int) The last day I readed this two times and it is not what I need. But I have to thank you any way, as you sugested it to me I gave it a second chance and following some link

[android-developers] Re: Shell interface

2011-06-22 Thread Gustavo Vargas
How hard did you look? While I admit the solution is a little less than obvious all I did was search for android EditText cursor position and found the answer. http://tinyurl.com/6fcveor I know, the problem is this doesn't work. suppose my class extends edittext and then:

[android-developers] Re: Shell interface

2011-06-22 Thread Gustavo Vargas
I misunderstood the beharior of moveCursorToVisibleOffiset on the piece of code I've put on my last e-mail. But any way. Now I'm using an extension based on TextView. Works fine. Thank you! On 22 jun, 22:23, Gustavo Vargas xgvar...@gmail.com wrote: How hard did you look? While I admit

[android-developers] Integration problem ZXing via Intent

2011-05-19 Thread Gustavo Costa
Well, I'm trying implement a integration of zxing with my Android App. In my app there is a MainActivity. In this MainActivity, I use a button to execute the first block of code below. But every time when execute the first block of code and the app read the QR Code, I receive as resultCode the

[android-developers] First insert didn't work when I using SQLiteDatabase.insert method.

2011-04-13 Thread Gustavo Costa
In my app I inserted a row since a button in main screen and recover this row in a Service process. But, when I clicked in the button that execute the SQLiteDatabase.insert, the first insert didn't worked. Immediately after I tried insert the row, I can recover the row, but when I tried recover

[android-developers] First row didn't record In SQLiteDatabase.insert method

2011-04-13 Thread Gustavo Costa
1) Record with the method SQLiteDatabase.insert 2) The method SQLiteDatabase. returns the id of the record 3) App successfully retrieves the record by id using the SQLiteDatabase.query immediately after insertion 4) In another thread, the app try retrieves the record but the

[android-developers] Re: First row didn't record In SQLiteDatabase.insert method

2011-04-13 Thread Gustavo Costa
No, I'm using a diferent handle. On 13 abr, 17:12, lbendlin l...@bendlin.us wrote: are you using the same handle/database instance in both threads?  Maybe just a timing issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: First row didn't record In SQLiteDatabase.insert method

2011-04-13 Thread Gustavo Costa
No, I'm using a diferrent handle On 13 abr, 17:12, lbendlin l...@bendlin.us wrote: are you using the same handle/database instance in both threads?  Maybe just a timing issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: First row didn't record In SQLiteDatabase.insert method

2011-04-13 Thread Gustavo Costa
And How can I do it? On 13 abr, 18:12, lbendlin l...@bendlin.us wrote: that's a little bit of a no-no. Try opening each database only once, and use a shared handle. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Does In-App on Market for test stop work?

2011-03-31 Thread Gustavo Costa
Does In-App on Market for test stopped work? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Unable to start service com.android.vending.billing.IMarketBillingService

2011-03-24 Thread Gustavo Costa
I'm trying start com.android.vending.billing.IMarketBillingService service and I received this message. I'm using emulator Android 2.3.3 - API Level 10. AnyBody Help Me? 03-23 15:04:53.535: WARN/ActivityManager(61): Unable to start service Intent {

Re: [android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
Kostya, Thank for your answer. I ran the dungeons potions sample and I receive the same message. I had copy the code of the dungeons potions sample and include in my app. Do you have another suggestion? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
Kostya, Where Can I find BillingService.java and where I need paste/put this class? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
If it's possible, Can you send me a sample code that you are using? I'm trying during 3 days and I couldn't complete the codification. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
Justin, I think the same way. But the class is not avaiable in the emulator or I'm use the wrong class. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
But the com.android.vending.billing.IMarketBillingService is a service implement for Android Market (app). I'm using Implementing In-app Billing document and sample app to implemente my In-app Billing, therefore I couldn't do. Implementing In-app

[android-developers] Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
I'm trying start com.android.vending.billing.IMarketBillingService service and I received this message. I'm using emulator Android 2.3.3 - API Level 10. Anybody help me? 03-23 15:04:53.535: WARN/ActivityManager(61): Unable to start service Intent {

Re: [android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
Kostya, What the version of emulator do you using and What the android version? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Only one app to run

2010-09-24 Thread Gustavo Coutinho
.* * * My application starts when i turn the device on, but, i cant override homebutton's keypress method. * * *Does anybody know how can i run only my app or something that can help me?* * * *Thanks. *Gustavo Coutinho +55 (81) 8863-4117 -- You received this message because you are subscribed

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-08 Thread Gustavo
specify it, minSdkVersion has NO part in it. On Sep 3, 5:14 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Sep 3, 2010 at 1:31 PM, Gustavo gumat...@gmail.com wrote: supports-screens android:largeScreens=true android:normalScreens=true android:smallScreens=true

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-08 Thread Gustavo
Mark, My apologies for not saying the app name, I named it Just testing. by the way, I'll try taking that non-existent permission off my code. Many thanks. - Gus On 8 set, 16:33, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 8, 2010 at 3:21 PM, Gustavo gumat...@gmail.com wrote

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-08 Thread Gustavo
questions about what to do, this has gone out of my knowledge. =/ - Gus On 8 set, 16:59, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 8, 2010 at 3:52 PM, Gustavo gumat...@gmail.com wrote: My apologies for not saying the app name, I named it Just testing. It shows up on my Nexus One

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-05 Thread Gustavo
have an idea why is this happening? is that only with me? how to deal with it? any workaround? Many thanks, - Gus On Sep 4, 10:43 pm, Gustavo gumat...@gmail.com wrote: Thank you very much for all your help guys. I'm not at work today so tomorrow I'll try taking those redundant lines off my

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-05 Thread Gustavo
. - Gus On Sep 5, 9:20 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 5, 2010 at 8:07 PM, Gustavo gumat...@gmail.com wrote: In conclusion, I realized that there's got to be something wrong with the CALL_PHONE permission. does anyone have an idea why is this happening? is that only

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-04 Thread Gustavo
. By the rules of English grammar, this means that this manifest element ALONE lets you specify it, minSdkVersion has NO part in it. On Sep 3, 5:14 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Sep 3, 2010 at 1:31 PM, Gustavo gumat...@gmail.com wrote: supports-screens

[android-developers] Bug in minSdkVersion or what?

2010-09-03 Thread Gustavo
Hi guys, I've just published my app on the android market but something weird happened, this is not my first time publishing an app so I'm almost sure I'm not doing anything wrong here, so would like to know if anyone had this same issue before. 1st Attempt: Manifest.xml file supports-screens

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-03 Thread Gustavo
Thanks for the quick reply Lance, So I read that post and seems that my app is perfectly fine. gust...@gustavo-desktop:/opt/android/platforms/android-2.1/tools$ ./ aapt dump badging /home/gustavo/android_app/test_app.apk package: name='com.test.android' versionCode='1' versionName='1.0

[android-developers] Get phone country/area code, anyone?

2010-04-27 Thread Gustavo
Hi, I know that I can get some informations from the Sim card by using the TelephonyManager class, but I couldn't find any specific method to get its country and area code, and also if the user is on roaming the area code would probably change to the location he currently is. Any help would be

[android-developers] Problem including pauses with Intent.CALL

2010-04-14 Thread Gustavo
Hi folks, I'm trying to send DTMF tones to an IVR including them in a tel: uri with a Intent.CALL. To include pauses i'm trying to use a tel: uri with special characters (i.e. tel:+16,,5). The problem is the special characters are stripped and the phone tries to place the

[android-developers] Sending especial caracters (pause = ,) when calling with ACTION_CALL

2010-04-13 Thread Gustavo
I'm trying to place a call with Intent.ACTION_CALL and a tel uri including pauses and dtmf codes to be sent when the call is established (i.e. tel:+17,,555). Android strips all the special characters and place the call to the rest of the uri (i.e. tel:+17555) Any

[android-developers] Button inside a TextView???

2010-04-02 Thread Gustavo
Hi all, I was wondering how can I place a small button inside my EditText view (AutoCompleteTextView to be more specific), just like the iPhone has on its search box. http://img69.yfrog.com/img69/8931/keyboardv.png -- You received this message because you are subscribed to the Google Groups

[android-developers] Put some image on background of a row of a ListView

2009-10-29 Thread Gustavo Melo
ListView Question ! I know it's possible change the row color, but it's possible to put some imagem on background? And if yes, it's possible to create an imagem 1px and repeat-x or repeat-y like CSS? -- []'s Gustavo Melo --~--~-~--~~~---~--~~ You received

[android-developers] Re: Changing application label from code

2009-09-24 Thread Gustavo Lima
several combinations like values-mcc724-mnc05, values-mcc724-mnc5, values-mcc724-mnc005-pt and others. Only the use of MCC alone values-mcc724 is working as expected. thanks Gustavo On 22 set, 18:04, Dianne Hackborn hack...@android.com wrote: There are lots of examples in the framework here

[android-developers] Group para brasileiros

2009-05-16 Thread Gustavo / GMail
Amigos, (FOR BRAZILIAN) O que vocês acham de criarmos um group de sobre desenvolvimento de Android para brasileiros em português. Caso haja interessados eu mesmo crio o grupo. Obrigado. Gustavo São Paulo / Brasil --~--~-~--~~~---~--~~ You received this message

[android-developers] running emulator image with standard qemu

2009-05-04 Thread Gustavo
Hi, Is it possible to run the android image distributed with the SDK using the standard qemu executable (instead of the emulator executable)? Thx, G. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] How to refresh or update gridview by code

2009-05-04 Thread Gustavo Porpino
and don't konw how to. help me!!! Thanks! -- Gustavo Porpino Coutinho --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: Problem installation Android Development Tools

2009-04-20 Thread Gustavo Pereira
Hmm, are you using GWT (Google Webtoolkit) plugin for eclipse? I'm got the same error. On 19 abr, 18:02, tweitzel tweit...@gmail.com wrote: Had the same problem a couple of hours ago: Failed to prepare partial IU: [R]com.android.ide.eclipse.ddms 0.8.0.v200809220836-110569. In the Eclipse

[android-developers] Javascript runtime

2008-05-06 Thread Gustavo
Is there anybody working on implementing a javascript framework for android? In my opinion it would foster much more the application development for this platform. Something similar to the jiggy runtime for the iPhone. Thank you for the information, G.