Posts

Showing posts from February, 2019

Using Google API for GPS

Using Google API for GPS This post will show you how implement a Google Service Step 1 Enable the service on AndroidManifest.xml         <service android:name="mx.com.yourAppName.Globals.GpsService">         </service> Step 2 Add this class. This class can mantain service on and show an alert window if the GPS service in off and send to activate service. package mx.com. yourAppName .Globals; import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.app.Service; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationManager; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.provider.Settings; import android.support.annotation.NonNull; import android.su

How I can create class for reuse it

How I can create class for reuse it? Well one in the most important trick for build scalable and big applications is build with structure and reuse for reduce complexity and work more easy and fast. -- Divide and Conquer --  Now, I will recoment follow this. Just you make a public class and you can import from other classes for example: public class MyClass{    code here } You can make a folder, for example called "Globals" and put the file in this folder. After that you can import folder like a package like this. packge mx.com.apname.Globals; And now you can use the class. References Document https://developer.android.com/reference/android/support/v7/app/AppCompatActivity Videos explan what is ActivityComponent https://www.youtube.com/watch?v=D4J6WZjRQV0 

How change the min and max API

Image
How change the min and max API You need know what is your min and max API, because it could be a problem. You can change this in Go to Grandle Script and change the min and max Next step is go to the right corner and click on Sync. It could be take some time depending your hardware, if all it's right you should see this. In the next table you can see a history API, linux kernel versiĆ³n and deployment dates. This is the versions grid update at 20-Febrary-2019