[android-developers] Dashboard Application

2012-01-20 Thread Ubiracy Santos
Hello Android Developers!!!

I have a dashboard application wich will be updated outside with a web 
application such as webservice. What is the best form to develop this 
application?

https://lh5.googleusercontent.com/-2aqM99H11wQ/TxlsIOd7rxI/AGQ/CQrdzNd5MSY/s1600/HOME.png
I will update the buttons and its links and the data will have to be 
available offline.

-- 
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dashboard Application

2012-01-20 Thread James Black
It looks like you are using a table.

You will need to update a file on an SD card or store this in preferences
or a database, but the buttons and links should not be in your layout.

I would suggest the app be empty then it gets an update and places the
buttons.

You may need to specify button colors or types in this file that is
downloaded.
On Jan 20, 2012 8:31 AM, Ubiracy Santos ubiracy@gmail.com wrote:

 Hello Android Developers!!!

 I have a dashboard application wich will be updated outside with a web
 application such as webservice. What is the best form to develop this
 application?


 https://lh5.googleusercontent.com/-2aqM99H11wQ/TxlsIOd7rxI/AGQ/CQrdzNd5MSY/s1600/HOME.png
 I will update the buttons and its links and the data will have to be
 available offline.

 --
 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.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dashboard Application

2012-01-20 Thread Ubiracy Santos
How can I create dynamic buttons? 

-- 
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dashboard Application

2012-01-20 Thread James Black
You can instantiate the buttons from Java and add it to the table row you
would also create.

Look at the ask for the button widget.
On Jan 20, 2012 10:29 AM, Ubiracy Santos ubiracy@gmail.com wrote:

 How can I create dynamic buttons?

 --
 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.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dashboard Application

2012-01-20 Thread Ubiracy Santos
Great... I will test it!!

-- 
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dashboard Application

2012-01-20 Thread Ubiracy Santos
In my OnCreate Method i need to create four buttons for example, but will 
be dynamically creations.  but this does not work =/

 Button botao = new Button(LinearLayoutActivity.this);

 botao.setText(Clique);

 

 botao.setOnClickListener(new OnClickListener() {

  @Override

 public void onClick(View v) {

 Toast.makeText(LinearLayoutActivity.this, Clicado, 
 Toast.LENGTH_LONG).show();

 }

 });

 

 setContentView(R.layout.main);   

 

 LinearLayout mainLayout = (LinearLayout)findViewById(R.id.layout1);

 for (int i = 0; i  4; i++) {

  mainLayout.addView(botao);

 }



-- 
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en