-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataFromList.java
More file actions
64 lines (43 loc) · 1.44 KB
/
Copy pathDataFromList.java
File metadata and controls
64 lines (43 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.example.listdemo;
import com.koushikdutta.urlimageviewhelper.UrlImageViewHelper;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;
public class DataFromList extends Activity {
TextView tv1=null, tv2=null, tv3=null;
ImageView appIcon = null;
String name,gmail,mobile;
AlertDialogManager alert = new AlertDialogManager();
ConnectionDetector cd;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.datafromlist);
ConnectionDetector cd;
cd = new ConnectionDetector(getApplicationContext());
if (!cd.isConnectingToInternet()) {
alert.showAlertDialog(DataFromList.this,
"Internet Connection Error",
"Please connect to working Internet connection", false);
return;
}
Intent update = getIntent();
try {
// gets the previously created intent
name = update.getStringExtra("name") + "";
gmail=update.getStringExtra("email") + "";
mobile = update.getStringExtra("mobile") + "";
} catch (Exception E) {
}
tv1 = (TextView) findViewById(R.id.txtname);
tv2 = (TextView) findViewById(R.id.txtemail);
tv3 = (TextView) findViewById(R.id.txtmobile);
tv1.setText(name);
tv2.setText(email);
tv3.setText(mobile);
}
}