Android – MapView tutorial – Display current location on map in Android
Android – MapView tutorial – Display current location on map in Android
Android – MapView tutorial – Display current location on map in Android
Fragment is light part of activity, It can be added as element of activity or we can show it as dialog also. Android suggest to use fragment to divide UI. It is also separating our UI code.
Let’s make activity first. In activity define FrameLayout, which will manage your fragment:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { tvContent.text = Html.fromHtml("#HTML_STRING", HtmlCompat.FROM_HTML_MODE_LEGACY) } else { tvContent.text = Html.fromHtml("#HTML_STRING") }
why to use GsonConverter here?. It will be useful for converting JsonObject directly to Java class or Kotlin class. So, we only need to pass our models.
implementation 'com.squareup.retrofit2:retrofit:2.6.2' implementation 'com.squareup.retrofit2:converter-gson:2.6.2' implementation 'com.google.code.gson:gson:2.8.5'
To add own splash screen you need to create your own theme for your launcher activity.
Create custom style for activity in style.xml
Take screenshot and save in gallery in unity for android
Google introduces new privacy policies. According to that if your will not serve as core app for SMS or Call, your app may blocked by google.
Geofences is a virtual circle created around specified location with specified radius. It is the awareness of users current location with his proximity location. If you want to notify user for particular location you can do this with Geofence. Get location details for that location and add geofence with certain radius. You can listen enter, exit and wait ( or dwell) event for that location and based on that you can notify user
Room is ORM tool, which helps you to map your sqlite database tables to Objects. Room will actually used to remove pojo’s for database operations like insert, update, get operations.
Service is a component which works on main thread but without UI!!. It is true, service don’t have UI(If not foreground).