No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse' -
the following error came when tried build map activity in android studio version 2.2 "no resource found matches given name 'android:textappearance.material.widget.button.inverse'" please suggest me solution.
using google apiclient best method when working on location based. https://developers.google.com/android/reference/com/google/android/gms/common/api/googleapiclient
when want make connection 1 of google apis provided in google play services library (such google sign-in, games, or drive), need create instance of googleapiclient ("google api client"). google api client provides common entry point google play services , manages network connection between user's device , each google service.
automatically manage connection google play services.
perform synchronous , asynchronous api calls of google play services.
manually manage connection google play services in rare cases necessary.
add manifest file
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.android.gms.location.sample.basiclocationsample" > <uses-permission android:name="android.permission.access_coarse_location"/> </manifest>
add code in activity
mgoogleapiclient = new googleapiclient.builder(this) .addapi(drive.api) .addscope(drive.scope_file) .addconnectioncallbacks(this) .addonconnectionfailedlistener(this) .build() @override public void onconnected(bundle connectionhint) { mlastlocation = locationservices.fusedlocationapi.getlastlocation( mgoogleapiclient); if (mlastlocation != null) { mlatitudetext.settext(string.valueof(mlastlocation.getlatitude())); mlongitudetext.settext(string.valueof(mlastlocation.getlongitude())); } }
Comments
Post a Comment