-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Innotebook
committed
Sep 1, 2012
1 parent
8b12d7f
commit a4843eb
Showing
51 changed files
with
101 additions
and
43 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:paddingTop="4px" | ||
android:background="#FFFFFF" > | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" > | ||
|
||
<!-- | ||
<include | ||
android:id="@+id/detail_inc" | ||
layout="@layout/detail_inc" /> | ||
--> | ||
<WebView | ||
android:id="@+id/webView1" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageCommingSoon" | ||
android:layout_width="wrap_content" | ||
android:layout_marginTop="200dp" | ||
android:layout_height="wrap_content" | ||
android:layout_centerInParent="true" | ||
android:src="@drawable/commingsoonp" /> | ||
|
||
|
||
|
||
</RelativeLayout> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file not shown.
Empty file.
Empty file.
65 changes: 57 additions & 8 deletions
65
src/ge/gtug/dictionary/DetailActivity.java
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,73 @@ | ||
package ge.gtug.dictionary; | ||
|
||
import java.io.BufferedReader; | ||
import java.io.InputStream; | ||
import java.io.InputStreamReader; | ||
|
||
import org.apache.http.HttpResponse; | ||
import org.apache.http.client.methods.HttpGet; | ||
import org.apache.http.impl.client.DefaultHttpClient; | ||
|
||
import android.app.Activity; | ||
import android.os.AsyncTask; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.webkit.WebView; | ||
import android.webkit.WebViewClient; | ||
import android.widget.EditText; | ||
import android.widget.TextView; | ||
|
||
public class DetailActivity extends Activity { | ||
TextView tv; | ||
String selectedWord; | ||
WebView mWebView; | ||
String[] words; | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
// TODO Auto-generated method stub | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.detail); | ||
|
||
// Bundle extras = getIntent().getExtras(); | ||
// if (extras == null) { | ||
// return; | ||
// } | ||
// selectedWord = extras.getString("selectedWord"); | ||
// tv = (TextView) findViewById(R.id.selectedWord); | ||
// tv.setText(selectedWord); | ||
// words = selectedWord.split("-"); | ||
|
||
|
||
/*Bundle extras = getIntent().getExtras(); | ||
if (extras == null) { | ||
return; | ||
} | ||
selectedWord = extras.getString("selectedWord"); | ||
tv = (TextView) findViewById(R.id.selectedWord); | ||
tv.setText(selectedWord);*/ | ||
WebViewClient yourWebClient = new WebViewClient() | ||
{ | ||
// Override page so it's load on my view only | ||
@Override | ||
public boolean shouldOverrideUrlLoading(WebView view, String url) | ||
{ | ||
// This line we let me load only pages inside Firstdroid Webpage | ||
if ( url.contains("firstdroid") == true ) | ||
// Load new URL Don't override URL Link | ||
return false; | ||
|
||
// Return true to override url loading (In this case do nothing). | ||
return true; | ||
} | ||
}; | ||
|
||
|
||
// Get Web view | ||
mWebView = (WebView) findViewById( R.id.webView1 ); //This is the id you gave | ||
mWebView.getSettings().setJavaScriptEnabled(true); | ||
mWebView.getSettings().setSupportZoom(true); //Zoom Control on web (You don't need this | ||
//if ROM supports Multi-Touch | ||
mWebView.getSettings().setBuiltInZoomControls(true); //Enable Multitouch if supported by ROM | ||
mWebView.setWebViewClient(yourWebClient); | ||
|
||
// Load URL | ||
mWebView.loadUrl("http://www.google.com"); | ||
|
||
|
||
|
||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.