ActivityThread.performancelaunch Activity
ConnectivityManager cm = (ConnectivityManager)
getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo info = cm.getActiveNetworkInfo();
if (info != null && info.isAvailable())
{
String
user_url="http://mobileapps.iwedplanner.com/mobileapps/iwedplanner/mobile/version21/MBudget.aspx?unme="+username;
httpclass obj = new httpclass();
result = obj.server_conn(user_url);
if (result != null) {
token = new StringTokenizer2(result, "|", false);
}
value = new ArrayList<String>();
while (token.hasMoreTokens())
{
value.add(token.nextToken());
}
Integer k = null;
table = new Hashtable<Integer, ArrayList<String>>();
str2 = new ArrayList<String>();
str3 = new ArrayList<String>();
str4 = new ArrayList<String>();
str5 = new ArrayList<String>();
int id = 0, c = 0, n = value.size();
while (c < n - 1)
{
str = new ArrayList<String>();
for (int i = 0; i < 12; i++)
{
str.add(value.get(c).trim());
if (i == 4)
str2.add(value.get(c));
if (i == 5)
str3.add(value.get(c));
if (i == 6)
str4.add(value.get(c));
if (i == 7)
str5.add(value.get(c));
c++;
}
k = new Integer(id);
table.put(k, str);
id++;
}
}
This is my viewBudget coding when I run the code the program was crashed
sometimes view some times exit the code in my program any changes need on
my code.Please correct it.
No comments:
Post a Comment