-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathInstall.java
More file actions
65 lines (46 loc) · 1.61 KB
/
Install.java
File metadata and controls
65 lines (46 loc) · 1.61 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
65
package com.vivek.github.basic;
import com.vivek.github.R;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebView;
import android.widget.Button;
public class Install extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
String fed = "file:///android_asset/linux.html";
String deb = "file:///android_asset/debian.html";
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
super.onCreate(savedInstanceState);
setContentView(R.layout.d);
WebView f = (WebView) findViewById(R.id.fedora);
f.loadUrl(fed);
WebView d = (WebView)findViewById(R.id.debian);
d.loadUrl(deb);
Button fe = (Button)findViewById(R.id.wind);
fe.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent f = new Intent(Intent.ACTION_VIEW).setData(Uri.parse("https://windows.github.com/"));
startActivity(f);
}
});
Button ma = (Button)findViewById(R.id.macd);
ma.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent m = new Intent(Intent.ACTION_VIEW).setData(Uri.parse("https://mac.github.com/"));
startActivity(m);
}
});
}
}