How to refresh a "Form"

by Giorgio Torres » Sat, 23 Apr 2011 06:32:48 GMT

Sponsored Links
 Hi, i'm new in android development and I've just completed the tutorial at
I'm a J2ME programmer, and I think i have some habits from it.
First of all, it was hard to familiarize with android's UI building way, and
i have some vicious inherited from J2ME's programming way.

I'm trying to build an app which one of the views are refreshed at runtime.
I've created a class "MyForm" that inherits View, and at onCreate method I
setContentView(MyForm). And i'm doing
this with all of my app's "form".

I would like to know android's best way to do what i'm trying.

Giorgio Prmola F. G. Torres
Graduando em Cincia da Computao
Universidade Federal de Viosa

<> ;
<> ;
  <> ;
<> ;
< #Profile?uid=5773068796254932973>


Re: How to refresh a "Form"

by TreKing » Tue, 26 Apr 2011 05:12:10 GMT


I don't think your question is very clear. However, off the bat I would say
you do not need a "MyForm" class that extends View. You just need a layout
defined in XML that lays out your form and you can set that as the content
for your view. As for "refreshing", most things are automatic (like setting
the text on a TextView) but if you need to force refresh you can look at

TreKing <> ; - Chicago
transit tracking app for Android-powered devices


Sponsored Links

Other Threads

1. Gadget Jadul anda ? Tentang Battery lagi :)

Saya ganti subject nya biar agak nyambung yak....

Gadget pertama yang ogut beli juga sama, Nokia 6110 , terus ganti ke Ericsson 
T65, Ericsson 3618, Soner K608, Soner W800, lalu ke Nexus..

Yang lain?

*gak ada weekend mode kan disini?* :D

Sent from my BlackBerry smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!

-----Original Message-----
From: "ichan" <>
Date: Wed, 2 Jun 2010 13:03:18 
To: Android<>
Subject: Re: [id-android] Tentang Battery lagi :)

Ikutan lirik nokia 6110 ah
Warna bunglon

Hh pertama dengan perdana simpati seharga 600rb 


sent by jave aka jupe

-----Original Message-----
From: "adityo (tyo)" <>
Date: Wed, 2 Jun 2010 19:59:55 
To: <>
Subject: Re: [id-android] Tentang Battery lagi :)

ngomongin hp jadul, jadi inget hp yang pertama dipunyain......

*ngelirik ericsson GA628 diatas lemari.....


2. How to know the reason that causes the activity destroyed

I guess one of the reason maybe due to the screen orientation changed?


3. Can't we add shared libraries without use of android ndk tools

4. Creating streams for in memory data

5. Test, please ignore

6. How to know the reason that causes the activity destroyed

7. Map is not dispalying in the android emulator