Develop a file loading app as shown below:
User enters URL in an EditText. On the on click listener of the load button, url’s data should be read into a html file in a separate thread as an asynchronous task. Display a progress bar too. On the post execute method, display done text in a text view.
On the click of Display button, data that’s stored in html file gets retrieved and displayed in text view.
USING ANDRIOD STUDIO / JAVA
actually i have made the same project before i have complete source code i m uploading here you can copy paste this code easily from here below is the code ---------------------------------------------------------------------------------------------------------------
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.web_view_demo" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="22" /> <!-- Permission required for loading urls --> <uses-permission android:name="android.permission.INTERNET" />
<!-- Permission required for checking internet connection --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".WebActivity" android:theme="@android:style/Theme.NoTitleBar" > </activity> <activity android:name="com.web_view_demo.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> -----------------------------------------------------------activity_main.xml file :--------------------------------------------------------------------------- |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:padding="10dp" android:text="@string/text" android:textColor="#0587d9" android:textSize="18sp" android:textStyle="bold" /> <EditText android:id="@+id/url" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:gravity="center" android:hint="@string/enter_url" android:inputType="textUri" android:padding="10dp" android:singleLine="true" android:textColor="#000000" android:textSize="15sp" /> <Button android:id="@+id/open_url" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:padding="5dp" android:text="@string/open_url" android:textSize="15sp" /> <!-- Web View to open URL --> <WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout> ------------------------------------------------------------------ MainActivity.java--------------------------------------------------------------------------
|
Develop a file loading app as shown below: User enters URL in an EditText. On the...
I am having an issue. When i press submit to test the code, it goes to a blank screen. Please, will some one assist me? Thanks! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Sign Guest Book</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> <?php if (empty($_POST['?rst_name']) || empty($_POST['last_name'])) echo "<p>You must enter your ?rst and last name! Click your browser's Back button to return to the Guest Book form.</p>"; else { $DBConnect = @mysql_connect("localhost", "root", ""); ...
for Javascript, JQuery When the page is first opened a user will see the name field and the three vacation images to the left of the page. The page should behave according to the following rules. 1. When a user's mouse pointer goes over any image, that image's border will change to be "outset 10px" and when the mouse pointer leaves that image it's border will change to "none". 2. When the user clicks a "Vacation" image on the left,...