[android-developers] Problem in multiple web service request using AsyncTask

2013-05-05 Thread Guilherme Bernardi
Hi. I implemented a process that do multiple web service request to fill the tables one by one, but I'm having some problems for example: - The same process on my Razr(Android 4.0.4) the process completed normally, but in a smartphone with Android(2.2) for example, I get errors like 'SocketTim

[android-developers] How do I pass an ArrayList SherlockFragment type between SherlockFragment's?

2012-12-04 Thread Guilherme Bernardi
Hi Some days ago, I'm post here about a problem to control Tabs at the SherlockActivityFragment. Because I have 3 Tab (SherlockFragment) inside an SherlockActivityFragment and all of them made one object, and I need to have the control about the 3 tabs and doesn't lose the data and change or re

Re: [android-developers] Persistence 3 Tabs (TabNavigation) in action of ActionBar Sherlock.

2012-12-04 Thread Guilherme Bernardi
hen you click the save button you > can access them and save them on the way you would like to save them. > > > On Fri, Nov 30, 2012 at 2:30 PM, Guilherme Bernardi > > > wrote: > >> Hi >> >> I'm using the lastest ActionBar Sherlock version and

[android-developers] Persistence 3 Tabs (TabNavigation) in action of ActionBar Sherlock.

2012-11-30 Thread Guilherme Bernardi
Hi I'm using the lastest ActionBar Sherlock version and I'm developing an application with layout with ActionBar and 3 Tabs for the navigation. These tabs will load two attribute classes: *1st Tab - (Dados): Class Cliente.* *2nd and 3rd Tabs - (Entrega, Cobrança): Class ClienteEndereco.* Could

[android-developers] Imports cannot be resolved after adding a permission in Manifest.

2012-09-06 Thread Guilherme Bernardi
Hello everyone. My application is separated by package's (Activity, Connection, Attributes, Engine) and their respective classes. In whole application I import the necessary package's and attributes class like this: *import dataplus.application.attributes.Cliente;* and use the objects: *Client

Re: [android-developers] Re: How Can I pass an ArrayList do another Activity?

2012-09-04 Thread Guilherme Bernardi
singleton where I put the data in there and grab it from the next >> Activity. >> >> On Friday, August 31, 2012 12:59:51 PM UTC-7, Guilherme Bernardi wrote: >>> >>> Hi everyone. >>> >>> I'm developing an application that have a composition

Re: [android-developers] Re: How Can I pass an ArrayList do another Activity?

2012-09-04 Thread Guilherme Bernardi
ow to serialize (or parcel) your ArrayList between activities.I would use >> a singleton where I put the data in there and grab it from the next >> Activity. >> >> On Friday, August 31, 2012 12:59:51 PM UTC-7, Guilherme Bernardi wrote: >>> >>> Hi everyone. >>>

Re: [android-developers] How Can I pass and ArrayList of Object and receive the result to adapter in another activity?

2012-09-04 Thread Guilherme Bernardi
Well I'm already fix it. Thank you. You're right. Now my problem is how can I add items and update an ListView. Em terça-feira, 4 de setembro de 2012 15h15min22s UTC-3, TreKing escreveu: > > On Tue, Sep 4, 2012 at 12:24 PM, Guilherme Bernardi > > > wrote: > >

Re: [android-developers] How Can I pass and ArrayList of Object and receive the result to adapter in another activity?

2012-09-04 Thread Guilherme Bernardi
ull, listaItem=[dataplus.application.attributes.PedidoItem@44f90e88], null] and when I try to access the extra by the position that is 0. I get null... Em terça-feira, 4 de setembro de 2012 13h41min52s UTC-3, TreKing escreveu: > > On Tue, Sep 4, 2012 at 11:22 AM, Guilherme Bernardi > > > wrote: >

Re: [android-developers] How Can I pass and ArrayList of Object and receive the result to adapter in another activity?

2012-09-04 Thread Guilherme Bernardi
public class PedidoItemAdapter extends BaseAdapter{ I can't get the items at the BaseAdapter... Em terça-feira, 4 de setembro de 2012 13h20min24s UTC-3, TreKing escreveu: > > On Tue, Sep 4, 2012 at 11:12 AM, Guilherme Bernardi > > > wrote: > >> I tried to extend Pa

Re: [android-developers] How Can I pass and ArrayList of Object and receive the result to adapter in another activity?

2012-09-04 Thread Guilherme Bernardi
Ok, thank you i'll try convert them to a bundle. I tried to extend Parcelable, but doesn't work on the adapter... Em terça-feira, 4 de setembro de 2012 13h05min49s UTC-3, TreKing escreveu: > > On Tue, Sep 4, 2012 at 9:24 AM, Guilherme Bernardi > > > wr

[android-developers] How Can I pass and ArrayList of Object and receive the result to adapter in another activity?

2012-09-04 Thread Guilherme Bernardi
Hello everyone. I'm have an activity that generate an ArrayList of a object: ArrayList list = new ArrayList(); PedidoItem objPedItem = new PedidoItem(); objPedItem.set_Item(item.getText().toString()); objPedItem.set_Produto(produto.getText().toString()); objPedItem.set_Qtd

[android-developers] How Can I pass an ArrayList do another Activity?

2012-08-31 Thread Guilherme Bernardi
Hi everyone. I'm developing an application that have a composition case. In the first activity there is an ListView, some fields and a button that call another activity. This activity will set an ArrayList and then pass to first activity the array it appears in the listview... Can anyone help

[android-developers] Re: How do I append an Xml File?

2012-08-31 Thread Guilherme Bernardi
I got it... I'll post how I did... Thanks Em quinta-feira, 30 de agosto de 2012 16h42min36s UTC-3, Guilherme Bernardi escreveu: > > Hi. > > I'm trying to append an Xml Data File. > > The structure of Xml is: > > > > > > > 1 > >

[android-developers] Re: How do I append an Xml File?

2012-08-30 Thread Guilherme Bernardi
Ok, I'll start... and post the results. Thank you. Em quinta-feira, 30 de agosto de 2012 16h42min36s UTC-3, Guilherme Bernardi escreveu: > > Hi. > > I'm trying to append an Xml Data File. > > The structure of Xml is: > > > > > > >

Re: [android-developers] How do I append an Xml File?

2012-08-30 Thread Guilherme Bernardi
Well... I can use DOM parser, but by DOM parser I can get the nodes? remove nodes? and append the records? Em quinta-feira, 30 de agosto de 2012 17h03min10s UTC-3, Jacky Alciné escreveu: > > Why not use a DOM parser? > > On Thu, Aug 30, 2012 at 3:42 PM, Guilherme Bernardi

[android-developers] How do I append an Xml File?

2012-08-30 Thread Guilherme Bernardi
Hi. I'm trying to append an Xml Data File. The structure of Xml is: 1 5 gsdf ags gasd I need to add another record. I got it, but the new record was inserted like this: 1 5 gsdf ags gasd * testandotestandotestando * * * How can

Re: [android-developers] Re: How do I read an XML Data in Android?

2012-08-28 Thread Guilherme Bernardi
hink...) > > You should also look into using XmlPullParser. > > As a quick note, this isn't really specific to Android: these are the > same technologies you would use in Java.. > > kris > > On Tue, Aug 28, 2012 at 3:38 PM, Guilherme Bernardi > > wrote: >

[android-developers] Re: How do I read an XML Data in Android?

2012-08-28 Thread Guilherme Bernardi
FileInputStream is a good choise? Em segunda-feira, 27 de agosto de 2012 17h06min26s UTC-3, Lew escreveu: > > Guilherme Bernardi wrote: >> >> I'm developing an application that uses XML data... >> >> I consumed an wcf web service with SOAP, convert the object to

[android-developers] How do I read an XML Data in Android?

2012-08-27 Thread Guilherme Bernardi
I'm developing an application that uses XML data... I consumed an wcf web service with SOAP, convert the object to a basic XML and save on sdcard, but now I need to read this data file to edit, confer and save? How can I do that? Can anyone help me? -- You received this message because you ar

[android-developers] Read/Edit XML File External Storage.

2012-08-27 Thread Guilherme Bernardi
Hello... I'm trying to find the best way to read/edit XML File on External Storage... I searched on the internet and the most part of the tutorials told about XStream, but in terms of performance is there any difference? -- You received this message because you are subscribed to the Google Gro

Re: [android-developers] Re: Process large Bitmap on background

2012-08-16 Thread Guilherme Utrabo
Just keep in mind that not all devices supports the largeHeap attribute. On 16 August 2012 17:11, bob wrote: > Have you tried this: > > android:largeHeap = “true” > > > On Monday, August 13, 2012 11:49:55 AM UTC-5, José Ignacio Merino wrote: >> >> Hi, >> >> When I load the Bitmap with BitmapFacto

Re: [android-developers] Process large Bitmap on background

2012-08-16 Thread Guilherme Utrabo
José, I don't know NDK to answer about that. But, since api level 10 you can use BitmapRegionDecoder to decode only part of the bitmap at a time. Might be one option: http://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html On 16 August 2012 16:47, Harri Smått wrote: > >

[android-developers] Re: How to use apache thrift with android????

2012-08-08 Thread Guilherme Ramos
This is not about Thrift. This error occurs because you are including on your android app classpath a class compiled with a JVM version not compatible with Dalvik. Make you all your libraries are compatible. On Wednesday, August 8, 2012 10:32:50 AM UTC-3, adroidanky wrote: > > [2012-08-08 18:07

[android-developers] Re: glowing text effect

2012-07-26 Thread Guilherme Ramos
Is any better to do some art work? Like a designed UI instead of a simple Android component? On Thursday, July 26, 2012 2:27:18 PM UTC-3, bob wrote: > > Does anyone know how to do a glowing text effect on Android? > > > Thanks. > > > -- You received this message because you are subscribed to t

[android-developers] Is it possible to Canvas.drawBitmap() directly to a file?

2012-07-08 Thread Guilherme Utrabo
ry. Do you guys know if it is possible? Thanks in advance. Guilherme -- 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 t

[android-developers] decodeFile performance bottleneck - should I consider NDK?

2012-06-25 Thread Guilherme Utrabo
ider using NDK to optimize this part of the code? Any advice? Thanks in advance. Regards, Guilherme -- 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 unsubsc

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Dianne, I'm changing the application to save the files at the right place. I really appreciate the tip. Thank you. Guilherme On 23 June 2012 19:48, Dianne Hackborn wrote: > If these are your own files, please put them in your app-specific > directory: > > > http://d

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
TURES) + "AppRootDirectory/" Thank you, Guilherme On 23 June 2012 19:29, Dianne Hackborn wrote: > Fwiw, this is not "your application dir". Pictures on external storage is > for shared pictures. You shouldn't be putting your own stuff there. > > On Thu, Jun 21, 2012 at 8:54

Re: [android-developers] Re: managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Nobu, It worked. Thanks for the tip. Guilherme On 23 June 2012 17:38, Guilherme Utrabo wrote: > Nobu, I will try that and post the results. > > Thanks. > Guilherme > > > On 23 June 2012 17:35, Nobu Games wrote: > >> I'm not yet familiar with MediaStore,

Re: [android-developers] Re: managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Nobu, I will try that and post the results. Thanks. Guilherme On 23 June 2012 17:35, Nobu Games wrote: > I'm not yet familiar with MediaStore, but did you try the ContentResolver. > delete<http://developer.android.com/reference/android/content/ContentResolver.html#delete%28a

[android-developers] Re: managedQuery returning deleted files

2012-06-21 Thread Guilherme Utrabo
Ps.: and here is the method that actually deletes the file: http://pastebin.com/SbBFHuwC On 22 June 2012 00:54, Guilherme Utrabo wrote: > I need to delete some images from my application dir (inside > Pictures/Application). > Though the image gets removed, when I call for the managedQ

[android-developers] managedQuery returning deleted files

2012-06-21 Thread Guilherme Utrabo
ot working. Some code below: deleting files: http://pastebin.com/tQe8s7mm sanning directory http://pastebin.com/ixuz8xsC Do you guys have any ideas of what may be causing this behavior? Thanks in advance, Guilherme -- You received this message because you are subscribed to the Google Group

Re: [android-developers] Re: BitmapFactory.decodeByteArray *not* failing on a corrupt jpg file

2012-05-31 Thread Guilherme Utrabo
Nathan, Is it possible to you to get a checksum of the image before the file transfer? So you can calc the checksum again after the file transfer and compare to see if the file is corrupted. Regards, Guilherme On 31 May 2012 13:22, Nathan wrote: > I've confirmed it happens in 3.2

[android-developers] Is multithreading recommended for my case?

2012-05-31 Thread Guilherme Utrabo
would be a bad practice. Thanks in advance. Guilherme -- 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-

Re: [android-developers] images

2012-03-09 Thread Guilherme Utrabo
it. On SD the file can be deleted out of your application. Regards, Guilherme On 9 March 2012 10:45, Knutsford Software wrote: > Depends on the size of your images and how you're using them. Back it up, > tell us what the problem you're trying to solve is and why you're loo

Re: [android-developers] Performatic way to create a Bitmap?

2012-03-08 Thread Guilherme Utrabo
TreKing, Exactly. Sorry for my english. Thanks for the answer. On 8 March 2012 14:12, TreKing wrote: > On Mon, Mar 5, 2012 at 10:04 AM, Guilherme Utrabo wrote: > >> I want to get four image files and join then to create one big image file. >> Is there a performatic wa

[android-developers] Performatic way to create a Bitmap?

2012-03-08 Thread Guilherme Utrabo
Hello everybody, I want to get four image files and join then to create one big image file. Is there a performatic way to do it? Thank you. Regards, Guilherme -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] por favor, divulguem!!! Pinheirinho

2012-01-24 Thread Guilherme Lunhani
Sorry for this message in forum, but what is happening in Brazil IS VERY, VERY IMPORTANT, and needs visibility... For those who not speak portuguese to... READ THE EMAIL below the news in portuguese ...Please share this, please... https://www.facebook.com/guzz.junqueira/posts/142712285845718

[android-developers] DexFile Error meaning

2011-07-07 Thread Guilherme Lunhani
.internal.os.ZygoteInit.main(java.lang.String[]) line: 618 dalvik.system.NativeStart.main(java.lang.String[]) line: not available [native method] Thanks! -- -- GUILHERME -- You received this message because you are subscribed to the Google Groups "Android Developers" group

[android-developers] ListView change children Views position when clicked

2011-06-30 Thread Guilherme Lunhani
Hi all! I have a little ListView in custom ListActivity with following shape in onCreate(): [ListElement 0]: [TextView: String a] [EditView: String b] [ListElement 1]: [TextView: String x] [EditView: String y] When perform a click in any of these EditViews (wh

[android-developers] Re: Problem on create many different Views with ArrayList

2011-06-03 Thread Guilherme Lunhani
I found this thread: http://stackoverflow.com/questions/2216811/creating-dynamic-view-multiple-a-view-x-times-get-set-value-for-each-group 2011/6/3 Guilherme Lunhani > Hi all, > > I'm trying to populate many different widgets (SeekBars and Buttons) > in a RelativeLayout with

[android-developers] Problem on create many different Views with ArrayList

2011-06-03 Thread Guilherme Lunhani
Hi all, I'm trying to populate many different widgets (SeekBars and Buttons) in a RelativeLayout with ArrayList objects, but when I run/debug application, LogCat give me errors; It is not the first time I face problems to populate Views with ArrayList Is there a better option to make this? 06-03

[android-developers] A little Hi and our old "Unable to establish" connections...

2011-05-25 Thread Guilherme Lunhani
anifest.xml http://schemas.android.com/apk/res/android"; package="gml.android.surround" android:versionCode="1" android:versionName="1.0">

[android-developers] Re: How can I handle Exception message internationalization

2011-04-29 Thread Guilherme Matsumoto
On Apr 28, 12:39 pm, TreKing wrote: > Then don't show the exception message. What will the average do with that? > If you know what the exception is and know what it means for you app, then > show them a dedicated message for that error. IOW, instead of showing > "SocketException: Unknown Host" or

[android-developers] How can I handle Exception message internationalization

2011-04-27 Thread Guilherme Matsumoto
Hi Everyone, Here is an example of my problem: try { // code that throws an exception } catch (Exception e) { Toast.makeText(getApplicationContext(), e.getLocalizedMessage(), Toast.LENGTH_LONG).show(); } I'd like it to show a message in other language in a beautiful way something like ju

Re: [android-developers] Re: Virtual Camera + Accelerometer + 3ds max

2010-01-08 Thread Guilherme Vieira
y hope so) I have what can be > > called Virtual Camera Engine set. > > > > Now some advanced points: > > > > its possible to render 3d content in the phone? Then I can load up my > > scene. (Low poly, of course.) > > if so, using the Virtual Camera Engine is

[android-developers] Virtual Camera + Accelerometer + 3ds max

2010-01-08 Thread Guilherme Vieira
hank you anyway! Regards! Guilherme -- 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...@

[android-developers] DDMS Heap debug

2009-11-05 Thread Guilherme
Does anybody can explain me exactaly which meaning the words Class Objects, Data Objects, Non-Java Objects, 1-byte array: byte, boolean, 2-byte array: char, short, 4-byte array: float, int and 8-byte array: double, long in DDMS Heap debug. -- You received this message because you are subscribed t

[android-developers] DDMS Heap debug

2009-11-05 Thread Guilherme Daher
Can anyone please help me to know what do the following mean in the Heap view of *DDMS*: 1) Data Object 2) Class Object 3) 1,2,4,8-byte *array* : which arrays are we talking about here?? 4) non- Java object -- You received this message because you are subscribed to the Google Groups "Android