package com.cityweather;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import
Logcat say error this line viewInfo.removeViewAt(positionToRemove);
final ListView viewInfo = (ListView)findViewById(R.id.listView1);
final SWFForeCastInfoLayoutAdapter adapter = new
SWFForeCastInfoLayoutAdapter(this, data, data.getCurrentConditionData());
change from viewInfo.removeViewAt(positionToRemove); to what
--
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
i will send my full source to ur mail
what is ur mail
--
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
i don't know. plz tell me
--
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
adap.remove(); don't have
have only adapter.registerDataSetObserver();
--
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
how can i change that line?
--
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
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
if(convertView==null){
if(convertView==null){
convertView = (LinearLayout)layoutInflater.inflate(R.layout.searchlayout,
null);
TextView tx1 =
i can only add city one line
now i get data from google
how can i save data and add city delete city
e mail tawisak.ruksu...@gmail.com
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
This is for 1 time
File newxmlfile = new File(/sdcard/new.xml);
try{
newxmlfile.createNewFile();
}catch(IOException e){
Log.e(IOException, exception in createNewFile() method);
}
FileOutputStream fileos = null;
File newxmlfile = new File(/sdcard/sss.xml);
try{
newxmlfile.createNewFile();
}catch(IOException e){
Log.e(IOException, exception in createNewFile() method);
}
FileOutputStream fileos = null;
try{
listViewInfo = (ListView)findViewById(R.id.listView1);
tempListAdapter = new SimpleAdapter(this, weatherlist,
R.layout.list_row,
new String[] {city, low, high}, new int[] {R.id.CITY_CELL,
R.id.LOW_CELL, R.id.HIGH_CELL});
listViewInfo.setAdapter(tempListAdapter);
package demo.weatherforecast.main;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import org.xmlpull.v1.XmlSerializer;
import
listViewInfo.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView? a, View v,
final int position, long id) {
// TODO Auto-generated method stub
AlertDialog.Builder adb = new AlertDialog.Builder(
EditCity.this);
adb.setTitle(Delete?);
adb.setMessage(Are
I want to get value from weatherlist to write in XML
--
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
15 matches
Mail list logo