forked from androidquery/androidquery
-
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
Showing
40 changed files
with
2,069 additions
and
1,164 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.androidquery" | ||
android:versionCode="20" | ||
android:versionName="0.14.10"> | ||
|
||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
|
||
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | ||
<uses-permission android:name="android.permission.USE_CREDENTIALS" /> | ||
|
||
<!-- | ||
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> | ||
--> | ||
|
||
|
||
<uses-sdk android:minSdkVersion="4"/> | ||
|
||
<application android:icon="@drawable/launch" android:label="@string/app_name" > | ||
|
||
<activity android:name=".test.IntentListActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity android:name=".test.AdhocActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.async.AjaxLoadingActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingListActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingList2Activity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingList3Activity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingList4Activity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingListOptionsActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingGridActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingAspectRatioActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.async.AjaxAuthActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.async.XmlActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.async.ServiceActivity" android:theme="@style/android:Theme.Light"></activity> | ||
</application> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.androidquery" | ||
android:versionCode="23" | ||
android:versionName="0.15.3"> | ||
|
||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
|
||
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | ||
<uses-permission android:name="android.permission.USE_CREDENTIALS" /> | ||
|
||
<!-- | ||
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> | ||
--> | ||
|
||
|
||
<uses-sdk android:minSdkVersion="7"/> | ||
|
||
|
||
<application android:icon="@drawable/launch" android:label="@string/app_name"> | ||
|
||
<!-- | ||
<application android:icon="@drawable/launch" android:label="@string/app_name" android:hardwareAccelerated="true"> | ||
--> | ||
<activity android:name=".test.IntentListActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity android:name=".test.AdhocActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.AdhocActivity2" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.async.AjaxLoadingActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingListActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingList2Activity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingList3Activity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingList4Activity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingListOptionsActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingGridActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.image.ImageLoadingAspectRatioActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.async.AjaxAuthActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.async.XmlActivity" android:theme="@style/android:Theme.Light"></activity> | ||
<activity android:name=".test.async.ServiceActivity"></activity> | ||
</application> | ||
</manifest> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
|
||
package com.androidquery; | ||
|
||
import android.R; | ||
import android.app.Dialog; | ||
import android.content.Context; | ||
import android.os.Bundle; | ||
import android.view.ViewGroup; | ||
import android.webkit.WebView; | ||
import android.webkit.WebViewClient; | ||
import android.widget.FrameLayout; | ||
|
||
public class WebDialog extends Dialog { | ||
|
||
private String url; | ||
private WebViewClient client; | ||
|
||
public WebDialog(Context context, String url, WebViewClient client) { | ||
super(context, R.style.Theme); | ||
this.url = url; | ||
this.client = client; | ||
|
||
} | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
|
||
super.onCreate(savedInstanceState); | ||
|
||
WebView wv = setUpWebView(); | ||
|
||
FrameLayout.LayoutParams FILL = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT); | ||
addContentView(wv, FILL); | ||
|
||
} | ||
|
||
|
||
private WebView setUpWebView() { | ||
|
||
WebView mWebView = new WebView(getContext()); | ||
mWebView.setVerticalScrollBarEnabled(false); | ||
mWebView.setHorizontalScrollBarEnabled(false); | ||
|
||
WebViewClient wvc = client; | ||
if(wvc == null) wvc = new WebViewClient(); | ||
|
||
mWebView.setWebViewClient(wvc); | ||
|
||
mWebView.getSettings().setJavaScriptEnabled(true); | ||
mWebView.loadUrl(url); | ||
|
||
return mWebView; | ||
} | ||
|
||
@Override | ||
public void dismiss(){ | ||
|
||
try{ | ||
super.dismiss(); | ||
}catch(Exception e){ | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.