Showing posts with label Source files. Show all posts
Showing posts with label Source files. Show all posts

Friday, 16 November 2018

Open New Screen - Free AIDE Source codes and zip


AIDE Source codes

AndroidManifes
#AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.w4apk.ONS" >

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".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>
<activity
android:name=".SecondActivity"/>
</application>

</manifest>

MAIN (.xml)
# main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">

<Button
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Button"
android:id="@+id/button1"/>

</LinearLayout>

Secon (.xml)
# secon.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#665E5D">

</LinearLayout>

MainActivity (.java)
#MainActivity.java
package com.w4apk.ONS;

import android.app.*;
import android.os.*;
import android.widget.*;
import android.view.*;
import android.view.View.*;
import android.content.*;

public class MainActivity extends Activity
{
private Button but1;
private Intent i = new Intent();

@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

but1=(Button) findViewById(R.id.button1);
but1.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
i.setClass(getApplicationContext(),SecondActivity.class);
startActivity(i);
}
});
}
}

SecondActivity (.java)
#SecondActivity.java
package com.w4apk.ONS;
import android.app.*;
import android.os.*;


public class SecondActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.secon);
}}

Download AIDE Source File (.zip)


Sunday, 5 August 2018

WebView AIDE Tutorial and Source File Free


WebView AIDE Tutorial and Source Codes Free

main.xml
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
android:id="@+id/wp">

    <WebView
        android:id="@+id/web"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

<ProgressBar
android:id="@+id/pb"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

</FrameLayout>

MainActivity.java
package com.w4apk.webview;

import android.app.*;
import android.os.*;
import android.webkit.*;
import android.widget.*;
import android.view.*;

public class MainActivity extends Activity
{
private WebView web;
private FrameLayout wp;
private ProgressBar pb;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

web=(WebView)findViewById(R.id.web);
wp=(FrameLayout)findViewById(R.id.wp);
pb=(ProgressBar)findViewById(R.id.pb);

WebSettings WebSettings= web.getSettings();
WebSettings.setJavaScriptEnabled(true);
web.loadUrl("http://w4apk.blogspot.com");
web.setWebViewClient(new WebViewClient(){

@Override
public void onPageFinished(WebView View, String url){
wp.removeView(pb);
}
});

    }
}


AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.w4apk.webview" >

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".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>

<uses-permission android:name="android.permission.INTERNET"/>

</manifest>



Tuesday, 22 May 2018

Alarm Clock ( aia, aix and apk files )

Alarm Clock

How to Create Android Alarm Clock App? 

Step 1:
Go to app.thunkable.com and login using your Google Account. 
Open an exising project or create a new one. 



Taifun Alarm Extension (aix file):
Initial Version released: August 26, 2016

This extension enables you to set an alarm programmatically for devices > API Level 9, Android 3.0 (Honeycomb).
Required permission: com.android.alarm.permission.SET_ALARM







Download Files