├── GPSSetting
├── .classpath
├── .project
├── AndroidManifest.xml
├── bin
│ ├── GPSSetting.apk
│ ├── classes.dex
│ ├── jarlist.cache
│ ├── res
│ │ ├── drawable-hdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-ldpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ │ └── ic_launcher.png
│ │ └── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ └── resources.ap_
├── proguard-project.txt
├── project.properties
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── drawable-ldpi
│ │ └── ic_launcher.png
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── layout
│ │ └── main.xml
│ └── values
│ │ └── strings.xml
└── src
│ └── com
│ └── gps
│ └── test
│ └── GPSSettingActivity.java
└── SpalshScreen
├── .classpath
├── .project
├── AndroidManifest.xml
├── bin
├── SpalshScreen.apk
├── classes.dex
├── jarlist.cache
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── drawable-ldpi
│ │ └── ic_launcher.png
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ └── drawable
│ │ └── logo.png
└── resources.ap_
├── proguard-project.txt
├── project.properties
├── res
├── anim
│ ├── alpha.xml
│ └── translate.xml
├── drawable-hdpi
│ └── ic_launcher.png
├── drawable-ldpi
│ └── ic_launcher.png
├── drawable-mdpi
│ └── ic_launcher.png
├── drawable-xhdpi
│ └── ic_launcher.png
├── drawable
│ ├── logo.png
│ └── radialback.xml
├── layout
│ └── main.xml
└── values
│ └── strings.xml
└── src
└── com
└── fancy
└── splashscreen
└── SpalshScreenActivity.java
/GPSSetting/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/GPSSetting/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | GPSSetting
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/GPSSetting/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/GPSSetting/bin/GPSSetting.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/bin/GPSSetting.apk
--------------------------------------------------------------------------------
/GPSSetting/bin/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/bin/classes.dex
--------------------------------------------------------------------------------
/GPSSetting/bin/jarlist.cache:
--------------------------------------------------------------------------------
1 | # cache for current jar dependecy. DO NOT EDIT.
2 | # format is
3 | # Encoding is UTF-8
4 |
--------------------------------------------------------------------------------
/GPSSetting/bin/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/bin/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GPSSetting/bin/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/bin/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/GPSSetting/bin/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/bin/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GPSSetting/bin/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/bin/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GPSSetting/bin/resources.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/bin/resources.ap_
--------------------------------------------------------------------------------
/GPSSetting/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/GPSSetting/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-7
15 |
--------------------------------------------------------------------------------
/GPSSetting/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GPSSetting/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/GPSSetting/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GPSSetting/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/GPSSetting/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GPSSetting/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/GPSSetting/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hello World, GPSSettingActivity!
5 | GPSSetting
6 |
7 |
--------------------------------------------------------------------------------
/GPSSetting/src/com/gps/test/GPSSettingActivity.java:
--------------------------------------------------------------------------------
1 | package com.gps.test;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.location.Location;
6 | import android.location.LocationListener;
7 | import android.location.LocationManager;
8 | import android.os.Bundle;
9 | import android.widget.Toast;
10 |
11 | public class GPSSettingActivity extends Activity implements LocationListener {
12 | /** Called when the activity is first created. */
13 | LocationManager locationManager;
14 | @Override
15 |
16 | public void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.main);
19 | checkGPS();
20 | }
21 | private void checkGPS(){
22 | locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
23 | locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L,1.0f, this);
24 | boolean isGPS = locationManager.isProviderEnabled (LocationManager.GPS_PROVIDER);
25 | if(isGPS){
26 | showToast("Gps On");
27 | }else{
28 |
29 | startActivityForResult(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS), 0);
30 | }
31 | }
32 |
33 | @Override
34 | protected void onActivityResult(int requestCode, int resultCode, Intent data) {
35 | super.onActivityResult(requestCode, resultCode, data);
36 | checkGPS();
37 | }
38 |
39 | private void showToast(String text) {
40 | Toast toast = Toast.makeText(this, text, Toast.LENGTH_LONG);
41 | toast.show();
42 | }
43 |
44 | @Override
45 | public void onLocationChanged(Location arg0) {
46 | // TODO Auto-generated method stub
47 |
48 | }
49 |
50 | @Override
51 | public void onProviderDisabled(String arg0) {
52 | // TODO Auto-generated method stub
53 |
54 | }
55 |
56 | @Override
57 | public void onProviderEnabled(String arg0) {
58 | // TODO Auto-generated method stub
59 |
60 | }
61 |
62 | @Override
63 | public void onStatusChanged(String arg0, int arg1, Bundle arg2) {
64 | // TODO Auto-generated method stub
65 |
66 | }
67 | }
--------------------------------------------------------------------------------
/SpalshScreen/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SpalshScreen/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | SpalshScreen
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/SpalshScreen/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/SpalshScreen/bin/SpalshScreen.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/bin/SpalshScreen.apk
--------------------------------------------------------------------------------
/SpalshScreen/bin/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/bin/classes.dex
--------------------------------------------------------------------------------
/SpalshScreen/bin/jarlist.cache:
--------------------------------------------------------------------------------
1 | # cache for current jar dependecy. DO NOT EDIT.
2 | # format is
3 | # Encoding is UTF-8
4 |
--------------------------------------------------------------------------------
/SpalshScreen/bin/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/bin/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpalshScreen/bin/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/bin/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpalshScreen/bin/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/bin/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpalshScreen/bin/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/bin/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpalshScreen/bin/res/drawable/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/bin/res/drawable/logo.png
--------------------------------------------------------------------------------
/SpalshScreen/bin/resources.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/bin/resources.ap_
--------------------------------------------------------------------------------
/SpalshScreen/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/SpalshScreen/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-7
15 |
--------------------------------------------------------------------------------
/SpalshScreen/res/anim/alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/SpalshScreen/res/anim/translate.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
13 |
14 |
--------------------------------------------------------------------------------
/SpalshScreen/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpalshScreen/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpalshScreen/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpalshScreen/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SpalshScreen/res/drawable/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manishkpr/SplashScreen/8d01b4361eceae896eccb445595b2b96c66f8a6b/SpalshScreen/res/drawable/logo.png
--------------------------------------------------------------------------------
/SpalshScreen/res/drawable/radialback.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/SpalshScreen/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
16 |
17 |
--------------------------------------------------------------------------------
/SpalshScreen/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hello World, SpalshScreenActivity!
5 | SpalshScreen
6 |
7 |
--------------------------------------------------------------------------------
/SpalshScreen/src/com/fancy/splashscreen/SpalshScreenActivity.java:
--------------------------------------------------------------------------------
1 | package com.fancy.splashscreen;
2 |
3 | import android.app.Activity;
4 | import android.graphics.PixelFormat;
5 | import android.os.Bundle;
6 | import android.view.Window;
7 | import android.view.animation.Animation;
8 | import android.view.animation.AnimationUtils;
9 | import android.widget.ImageView;
10 | import android.widget.LinearLayout;
11 |
12 | public class SpalshScreenActivity extends Activity {
13 | public void onAttachedToWindow() {
14 | super.onAttachedToWindow();
15 | Window window = getWindow();
16 | window.setFormat(PixelFormat.RGBA_8888);
17 | }
18 | /** Called when the activity is first created. */
19 | @Override
20 | public void onCreate(Bundle savedInstanceState) {
21 | super.onCreate(savedInstanceState);
22 | setContentView(R.layout.main);
23 | StartAnimations();
24 | }
25 | private void StartAnimations() {
26 | Animation anim = AnimationUtils.loadAnimation(this, R.anim.alpha);
27 | anim.reset();
28 | LinearLayout l=(LinearLayout) findViewById(R.id.lin_lay);
29 | l.clearAnimation();
30 | l.startAnimation(anim);
31 |
32 | anim = AnimationUtils.loadAnimation(this, R.anim.translate);
33 | anim.reset();
34 | ImageView iv = (ImageView) findViewById(R.id.logo);
35 | iv.clearAnimation();
36 | iv.startAnimation(anim);
37 |
38 |
39 |
40 | }
41 |
42 | }
--------------------------------------------------------------------------------