In fact i have 2 edittbox and other one to show the result, then
storing it. When i access to the display activity i have to show all
the datas that i've been added!
So, the procedure that you've talked about is it valid in this case ?
Thanks.
On 19 mar, 12:53, Kostya Vasilyev kmans...@gmail.com
Ah.
No, if you always display the entire data set, then ArrayAdapter should
work fine.
Just use the debugger, and check what data you actually pass to the adapter.
-- Kostya
19.03.2011 15:12, Alaeddine Ghribi пишет:
In fact i have 2 edittbox and other one to show the result, then
storing
Sorry but how to do it with my instructions ?
ListView L = (ListView) findViewById(R.id.lv);
L.setAdapter(new ArrayAdapterString(this, R.layout.list_item,
s[0]));
log.d(..) ?
Thanks.
On 19 mar, 13:42, Kostya Vasilyev kmans...@gmail.com wrote:
Ah.
No, if you always display the entire data
Use the debugger and verify that the values in s[0] are what they
should be. If not, find out why and fix it.
In addition to the above, I think you're setting the adapter twice -
first directly in onCreate, then from a method called from onCreate.
This should not be necessary.
-- Kostya
This this the necessary code:
public class Saves extends Activity {
private Context context;
protected String[][] s;
protected String fileDir;
protected Activity activity;
private static AlertDialog alert_reset;
public void updatelv(Activity
19.03.2011 18:05, Alaeddine Ghribi пишет:
I tried making Log.d(carburant,s[0]), i have an error message: The
method d(String, String) in the type Log is not applicable for the
arguments (String, String[])
Right, s[0] is an array of strings, you can't log it with a single
statement like this
Sorry Kostya but i searched for how to debug an array of string in
this 3 links ad others and i can't find an example(i used often
debugging but just in a simple variables).
On 19 mar, 16:20, Kostya Vasilyev kmans...@gmail.com wrote:
19.03.2011 18:05, Alaeddine Ghribi пишет:
I tried making
I tried this but i have a FC:
for (int i = 0; i s.length; i++) {
Log.d(Saves,s[0][i]);
}
On 19 mar, 16:40, Alaeddine Ghribi alaeddineghr...@gmail.com wrote:
Sorry Kostya but i searched for how to debug an array of string in
this 3 links ad others and i
The loop condition should be:
for ( i s[0].length ; ... )
As for debugging:
Eclipse has a panel that shows local variables, which are updated as you
step through the code.
Once you're in the Debug perspective, use the menu bar: Window - Show
View - Variables. You can expand arrays
9 matches
Mail list logo