User Profile
-
alex levine started a new conversation How to clear Android App cache from app programmatically? 2 years ago ago
I am trying to use this However that gives me error .
I want to remove cache memory when I exit from the app.
without going in the App settings i want to remove or clean App data. -
alex levine started a new conversation Cannot access database on the main thread since it may potentially lock the UI for a long period of time. 2 years ago ago
I am trying to use this However that gives me error .
While using Room Database in the Android app
If i add allowMainThreadQueries() in Room configuration all my listings are start hanging or lacking of scroll. SO i don't want to add it. My Project has almost 100+ Queries so i can add thread with every query to resolve it. Do you have any other idea or how can i make a different thread to reuse with all room query functions.
Android app example using Room database
java.lang.IllegalStateException: Cannot access database on the main thread since it may potentially lock the UI for a long period of time.
at androidx.room.RoomDatabase.assertNotMainThread(RoomDatabase.java:267)
at androidx.room.RoomDatabase.query(RoomDatabase.java:323)
at androidx.room.util.DBUtil.query(DBUtil.java:83) -
alex levine started a new conversation Error inflating class TextView Android 5.1.1, 6.1.0, 8.1.0 : android.view.InflateException: Binary XML file line #10: Binary XML file line #9: Error inflating class TextView 2 years ago ago
I am trying to use this However that gives me error .
Error inflating class TextView when I use the app in these Android version 5.1.1, 6.1.0, 8.1.0 .
I am not sure what is the issue or bug with these android versions rest of the versions are all working fine for my app.
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.AppPackage/com.app.fragment.settings.lanPackage.LanSettingsActivity}: android.view.InflateException: Binary XML file line #10: Binary XML file line #9: Error inflating class TextView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2789)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2872)
at android.app.ActivityThread.-wrap11()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6543)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:810) -
alex levine started a new conversation How to integrate amazon Affiliate product APIs and where to found development documentation in php codeigniter? 2 years ago ago
I am trying to use this However that gives me error .
I want to integrate Amazon Affiliate APIs in my eCommerce Website but not able to found amazon affiliate development documentations. I have my Key and all things needed, Please help me how to integrate amazon affiliate APIs in my website.
I am using PHP (Codeigniter Framework)
Thanks in Advance -
alex levine started a new conversation How to choose and Upload Multiple Images to server by using Retrofit in android? 3 years ago ago
I am trying to use this However that gives me error .
Hello All,
I want to upload multiple images or files to Server through APIs in the single key by using Retrofit lib.
-
alex levine started a new conversation java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity 3 years ago ago
I am trying to use this However that gives me error .
java.lang.RuntimeException: Unable to start activity ComponentInfo{tvs.app.neofitness/com.app.vbage.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2914)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6692)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:696)
at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:659)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:552)
at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:95)
at androidx.appcompat.app.AlertController.installContent(AlertController.java:232)
at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279)
at android.app.Dialog.dispatchOnCreate(Dialog.java:407)
at android.app.Dialog.show(Dialog.java:302)
at com.app.vbage.MainActivity.onCreate(MainActivity.java:178)
at android.app.Activity.performCreate(Activity.java:7136)
at android.app.Activity.performCreate(Activity.java:7127)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2894)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6692) -
alex levine started a new conversation How to create Custom Progress Bar in Android, customize app logo Loader Dialog? 3 years ago ago
I am trying to use this However that gives me error .
I am using basic android loader which has Spinner and Text to show Loading message, But i want my Application logo loading DialogBox.
Create a Customize DialogBox or AlertDialog to implement Loading
-
alex levine started a new conversation the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. 3 years ago ago
I am trying to use this However that gives me error .
Resources$NotFoundException when calling svg in kitkat.
android.content.res.Resources$NotFoundException: File res/drawable/ic_product_icon.xml from drawable resource ID #0x7f080161. If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info.
-
alex levine started a new conversation How to Integrate Rewarded Ads of Google AdMob in Android Application? Java 4 years ago ago
I am trying to use this However that gives me error .
Rewarded Ads of Google AdMob Integrate in Android App, I have searched on Google to use AdMob lib in android mobile application.
-
alex levine started a new conversation Any APIs available that provide data of Indian Vehicle? 4 years ago ago
I am trying to use this However that gives me error .
I want to make a website and Mobile Application to verify Vehicle Registration Details through only Vehicle Registration number for Free.
-
alex levine started a new conversation How to make a phone call in android Programmatically? 4 years ago ago
I am trying to use this However that gives me error .
Hello Developers,
I have a button which is for Call directly to the set Phone Number I want to call directly to the Customer Care not to open number and then touch on Call button.How to make a phone call Programmatically in android?
-
alex levine started a new conversation How to allow mailto and tel URL schemes in Flutter? 4 years ago ago
I am trying to use this However that gives me error .
I am developing WebApp in Flutter but when I click on tel:987654321 or mailto: links going page Not Found,
To open the default app in mobile I am using url_launcher dependency. But in the background when I click webview also run the same link and go to page not found.
How to handle this task? -
alex levine started a new conversation WebView visible behind statusbar in flutter application? 4 years ago ago
-
alex levine started a new conversation How to create ProgressDialog in Android 4 years ago ago
I am trying to use this However that gives me error .
How to create ProgressDialog system define progress dialog box, which will indicate that request is in process.
Not customize, Is there any way to implement Progress Dialog with Spinner and its Title in android. -
alex levine started a new conversation More than One Floating Action Button on one page Flutter ? 4 years ago ago
I am trying to use this However that gives me error .
I want to add more than one FloatingActionbutton on the flutter app screen. but
build
function can contain only on floating button How can I addfloatingActionButton
on the page -
alex levine started a new conversation Android Application - keep Service running when app is killed from app history stack? 4 years ago ago
I am trying to use this However that gives me error .
I am creating an App which is on Live location sharing, for getting User's Location I want to make a service which has Location getting the functionality which is working fine, but when I close the app or kill the app from history Apps clear from there, my service stop working. I want to make Service live until the user stops sharing location.
LocationService.Java
import android.app.Service; import android.content.Intent; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.support.annotation.Nullable; import android.util.Log; import android.widget.Toast; import java.util.Timer; import java.util.TimerTask; public class LocationService extends Service implements LocationListener { boolean isGPSEnable = false; boolean isNetworkEnable = false; double latitude, longitude; LocationManager locationManager; Location location; private Handler mHandler = new Handler(); private Timer timer = null; long notify_interval = 10000; public static String str_receiver = "vbage.service.receiver"; Intent intent; public LocationService() { } @Nullable @Override public IBinder onBind(Intent intent) { return null; } @Override public void onCreate() { super.onCreate(); timer = new Timer(); timer.schedule(new TimertoGetLocation(), 5, notify_interval); intent = new Intent(str_receiver); } @Override public void onLocationChanged(Location location) { Log.d("LOCATIONSERVICE", "onLocationChanged= Accuracy:"+location.getAccuracy()+" Lat:" + location.getLatitude() + " Long" + location.getLongitude()); } @Override public void onStatusChanged(String provider, int status, Bundle extras) { Log.d("LOCATIONSERVICE", "onStatusChanged: (" + status + ") " + provider); } @Override public void onProviderEnabled(String provider) { Log.d("LOCATIONSERVICE", "onProviderEnabled: " + provider); } @Override public void onProviderDisabled(String provider) { Log.d("LOCATIONSERVICE", "onProviderDisabled: " + provider); } private void getLocationLattitudeLongitude() { locationManager = (LocationManager) getApplicationContext().getSystemService(LOCATION_SERVICE); isGPSEnable = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); isNetworkEnable = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); if (!isGPSEnable && !isNetworkEnable) { Toast.makeText(this, "GPS disabled", Toast.LENGTH_SHORT).show(); } else { if (isNetworkEnable) { location = null; locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, notify_interval, 0, this); if (locationManager != null) { location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); if (location != null) { Log.d("Networklatitude", location.getLatitude() + ""); Log.d("Networklongitude", location.getLongitude() + ""); latitude = location.getLatitude(); longitude = location.getLongitude(); locationUpdate(location); } } } if (isGPSEnable) { location = null; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, notify_interval, 0, this); if (locationManager != null) { location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); if (location != null) { Log.d("GPSlatitude", location.getLatitude() + ""); Log.d("GPSlongitude", location.getLongitude() + ""); latitude = location.getLatitude(); longitude = location.getLongitude(); locationUpdate(location); } } } } } private class TimertoGetLocation extends TimerTask { @Override public void run() { mHandler.post(new Runnable() { @Override public void run() { getLocationLattitudeLongitude(); } }); } } private void locationUpdate(Location location) { intent.putExtra("latutide", location.getLatitude() + ""); intent.putExtra("longitude", location.getLongitude() + ""); intent.putExtra("gps_status", location.getLongitude() + ""); sendBroadcast(intent); } }
MainActivity.java
import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.location.Address; import android.location.Geocoder; import android.location.LocationManager; import android.preference.PreferenceManager; import android.provider.Settings; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import java.io.IOException; import java.util.List; import java.util.Locale; public class MainActivity extends Activity { Button btn_start, btn_stop; private static final int REQUEST_PERMISSIONS = 100; boolean boolean_permission; TextView tv_latitude, tv_longitude, tv_address, tv_area, tv_locality; SharedPreferences mPref; SharedPreferences.Editor medit; Double latitude, longitude; Geocoder geocoder; Activity mActivity; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn_start = (Button) findViewById(R.id.btn_start); btn_stop = (Button) findViewById(R.id.btn_stop); tv_address = (TextView) findViewById(R.id.tv_address); tv_latitude = (TextView) findViewById(R.id.tv_latitude); tv_longitude = (TextView) findViewById(R.id.tv_longitude); tv_area = (TextView) findViewById(R.id.tv_area); tv_locality = (TextView) findViewById(R.id.tv_locality); geocoder = new Geocoder(this, Locale.getDefault()); mPref = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); medit = mPref.edit(); mActivity = MainActivity.this; final Intent intent = new Intent(mActivity, LocationService.class); if (mPref.getString("service", "").matches("service")) { medit.putString("service", "").commit(); stopService(intent); } btn_start.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (!checkLocation()) { if (mPref.getString("service", "").matches("")) { medit.putString("service", "service").commit(); startService(intent); setButtonfun(); } else { Toast.makeText(getApplicationContext(), "Service is already running", Toast.LENGTH_SHORT).show(); } } else { Toast.makeText(getApplicationContext(), "Please enable the gps ", Toast.LENGTH_SHORT).show(); } } }); btn_stop.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { medit.putString("service", "").commit(); stopService(intent); setButtonfun(); } }); setButtonfun(); } void setButtonfun() { fn_permission(); if (mPref.getString("service", "").matches("")) { btn_start.setVisibility(View.VISIBLE); btn_stop.setVisibility(View.GONE); } else { btn_start.setVisibility(View.GONE); btn_stop.setVisibility(View.VISIBLE); } } private void fn_permission() { Log.d("CheckPermission", "Entered"); if ((ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) && (ContextCompat.checkSelfPermission(mActivity, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED)) { ActivityCompat.requestPermissions(mActivity, new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, REQUEST_PERMISSIONS); Log.d("CheckPermission", "Exiting " + boolean_permission); return; } } @Override public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); switch (requestCode) { case REQUEST_PERMISSIONS: { if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { boolean_permission = true; } else { Toast.makeText(getApplicationContext(), "Please allow the permission", Toast.LENGTH_LONG).show(); } } } } private BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { latitude = Double.valueOf(intent.getStringExtra("latutide")); longitude = Double.valueOf(intent.getStringExtra("longitude")); Geocoder geocoder; List<Address> addresses; geocoder = new Geocoder(mActivity, Locale.getDefault()); try { addresses = geocoder.getFromLocation(latitude, longitude, 1); // Here 1 represent max location result to returned, by documents it recommended 1 to 5 String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex() String city = addresses.get(0).getLocality(); String state = addresses.get(0).getAdminArea(); String country = addresses.get(0).getCountryName(); String postalCode = addresses.get(0).getPostalCode(); String knownName = addresses.get(0).getFeatureName(); tv_area.setText(addresses.get(0).getAdminArea()); tv_locality.setText(knownName + ", " + city + ", " + state + ", " + country + "-" + postalCode); tv_address.setText(address); } catch (IOException e1) { e1.printStackTrace(); } tv_latitude.setText("latitude: " + latitude); tv_longitude.setText("longitude: " + longitude); tv_address.getText(); } }; @Override protected void onResume() { super.onResume(); registerReceiver(broadcastReceiver, new IntentFilter(LocationService.str_receiver)); } @Override protected void onPause() { super.onPause(); unregisterReceiver(broadcastReceiver); } boolean checkLocation() { LocationManager lm = (LocationManager) mActivity.getSystemService(Context.LOCATION_SERVICE); boolean gps_enabled = false; boolean network_enabled = false; try { gps_enabled = lm.isProviderEnabled(LocationManager.GPS_PROVIDER); } catch (Exception ex) { ex.printStackTrace(); } try { network_enabled = lm.isProviderEnabled(LocationManager.NETWORK_PROVIDER); } catch (Exception ex) { ex.printStackTrace(); } boolean locationCheck = !gps_enabled && !network_enabled; Log.d("CheckPermissionLo", "" + locationCheck); if (locationCheck) { // notify user new AlertDialog.Builder(mActivity).setTitle("Device GPS is disabled.") .setMessage("Please enable it now.").setCancelable(false) .setPositiveButton("Enable", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface paramDialogInterface, int paramInt) { mActivity.startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS)); } }) .setNegativeButton("Cancel", null) .show(); } return locationCheck; } }
-
alex levine started a new conversation How to split mobile number into country code, area code and local number? 4 years ago ago
I am trying to use this However that gives me error .
I am getting a list of mobile numbers from the phone book, But I need to show mobile and country code split.
how to split phone number and area code in android? -
alex levine started a new conversation Android working with Volley Library and how can i implement Volley? 4 years ago ago
-
alex levine started a new conversation Integrating OTP Verification or phone number authentication in Android 4 years ago ago
I am trying to use this However that gives me error .
How to integrate Free OTP service which will help us to verify valid mobile number?
How to login with Mobile Number Firebase?
Authenticate with Firebase with a Phone Number and get OTP to verify valid mobile number. -
alex levine started a new conversation Terminating app due to uncaught exception 'GMSServicesException', reason: 'Google Maps SDK for iOS must be initialized via [GMSServices provideAPIKey:...] prior to use' 4 years ago ago
I am trying to use this However that gives me error .
I am tring to integrate Flutter map from lib
google_maps_flutter:
it is working fine and showing me map in emulator and real device but when i run project on IOs device it gives me below mentioned error
*** Terminating app due to uncaught exception 'GMSServicesException', reason: 'Google Maps SDK for iOS must be initialized via [GMSServices provideAPIKey:...] prior to use'
How to resolve GMSServicesException?
-
alex levine started a new conversation How to change URL without reload the Website 4 years ago ago
I am trying to use this However that gives me error .
I have multiple users on the same page and there is some commen data for all customers when i click on any user only some part of webpage change and url change but Web Page should not refresh on click.
-
alex levine started a new conversation Flutter Switch widget does not working fine 4 years ago ago
I am trying to use this However that gives me error .
Flutter Switch widget does not working fine, i am using switch widget for yes and no options but in flutter i am not able to change swtich button state. when i drag dot left to right only then it is changeing but i want to switch on click event.
Switch( value: false, onChanged: (bool val) {}, ),
also switch doesnt have anything to show my Text.
whats wrong i am doing here?
-
alex levine started a new conversation Module HMRClient is not a registered callable module (calling enable) React Native 4 years ago ago
I am trying to use this However that gives me error .
I have created New React Native Project and start using Props it gives me Error Unable to load script from assets index.android.bundle I resolve this error but after resolving this error I got a new issue about Module HMRClient is not a registered callable module Why this error is raised before the props my project was working fine. How can resolve this issue?
-
alex levine started a new conversation How to implement Firebase Facebook Login or Authenticate Using Facebook Login in android? 4 years ago ago
I am trying to use this However that gives me error .
I want to implement Facebook Login with Firebase Authentication using facebook login in android. I am trying to implement facebook Login but not getting any easy documentation and elaboration tutorial.
Please share Firebase Authentication using facebook login in android tutorial or sample Project
-
alex levine started a new conversation How to get current location using react-native Expo on MapView? 4 years ago ago
I am trying to use this However that gives me error .
I am learning React Native app, Working on a Live Location Sharing App for Android and Ios Mobile Application. Where I
want to show MapView to show geoLocation of mine (User). like below MapView Screen.
and show Marker of the location where user locate.
Get Current Location and Map Centered on Current Location with a Marker.
-
alex levine started a new conversation "localhost phpmyadmin " unable to connect 4 years ago ago
I am trying to use this However that gives me error .
After installing a local XAMPP server and trying to connect phpMyAdmin it is giving me Error. Unable to connect Localhost Phpmyadmin.and showing me white page with the link localhost/phpmyadmin/
and sometimes gives me error
Object not found!The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.If you think this is a server error, please contact the webmaster. Error 404 localhost Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 -
alex levine started a new conversation no toolchains found in the ndk toolchains folder for abi with prefix mips64el-linux-android 4 years ago ago
I am trying to use this However that gives me error .
I have download Project from GitHub to check some functionality and when I open Android Project in Android Studio it gives me Error
no toolchains found in the ndk toolchains folder for abi with prefix mips64el-linux-android
I have updated everything as required
and Already installed NDK in SDK but Still showing this issue. I have download another Project to check issue is in My Side or In the project but that project also gives the same.
What is the issue in Android studio for that it is raising No toolchains Folder not found Error?
-
alex levine started a new conversation MainApplication.java:35: error: method does not override or implement a method from a supertype 4 years ago ago
I am trying to use this However that gives me error .
I have created React Native project by npm install -g create-react-native-app to import project
it imports many packages and at the end shows Expo QR code I don't want to run React native app in Expo I need to execute it as the Native app so I exit from npm run eject and it ask to me for How would you like to eject from create-react-native-app? React Native: I'd like a regular React Native project. after all this, I have successfully exited from running npm Now I have the project with android and ios folder too.
To Run Hello World React Native
npm run androidThese are the version of my Needed Libs which is using in the React Native App Development
Node -v
v8.11.2npm -v
6.4.1react-native -v
react-native-cli: 2.0.1
react-native: 0.55.4ERROR:
warning: string 'catalyst_debugjs' has no default translation.
warning: string 'catalyst_element_inspector' has no default translation.
warning: string 'catalyst_jsload_error' has no default translation.
warning: string 'catalyst_jsload_message' has no default translation.
warning: string 'catalyst_jsload_title' has no default translation.
warning: string 'catalyst_reloadjs' has no default translation.
warning: string 'catalyst_settings' has no default translation.
warning: string 'catalyst_settings_title' has no default translation.:app:generateDebugSources
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
C:\ReactNative\PROJECTFOLDER\android\app\src\main\java\com\appName\MainApplication.java:5: error: cannot find symbol
import com.facebook.react.ReactApplication;
^
symbol: class ReactApplication
location: package com.facebook.react
C:\ReactNative\PROJECTFOLDER\android\app\src\main\java\com\appName\MainApplication.java:6: error: cannot find symbol
import com.facebook.react.ReactNativeHost;
^
symbol: class ReactNativeHost
location: package com.facebook.react
C:\ReactNative\PROJECTFOLDER\android\app\src\main\java\com\appName\MainApplication.java:14: error: cannot find symbol
public class MainApplication extends Application implements ReactApplication {
^
symbol: class ReactApplication
C:\ReactNative\PROJECTFOLDER\android\app\src\main\java\com\appName\MainApplication.java:16: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
C:\ReactNative\PROJECTFOLDER\android\app\src\main\java\com\appName\MainApplication.java:36: error: cannot find symbol
public ReactNativeHost getReactNativeHost() {
^
symbol: class ReactNativeHost
location: class MainApplication
C:\ReactNative\PROJECTFOLDER\android\app\src\main\java\com\appName\MainActivity.java:5: error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity
public class MainActivity extends ReactActivity {
^
C:\ReactNative\PROJECTFOLDER\android\app\src\main\java\com\appName\MainApplication.java:16: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
C:\ReactNative\PROJECTFOLDER\android\app\src\main\java\com\appName\MainApplication.java:35: error: method does not override or implement a method from a supertype
@Override
^
8 errors
:app:compileDebugJavaWithJavac FAILEDFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED
Total time: 1 mins 3.452 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html -
alex levine started a new conversation What do we get in Android Wear SDK? 5 years ago ago
I am trying to use this However that gives me error .
What we have in our Wear SDK to develop? How Android Wear Os is different than our Android Mobile Application?
What new Features are introduce in Wear SDK?
-
alex levine started a new conversation Why we need Android Wear Platform? 5 years ago ago
I am trying to use this However that gives me error .
We already have a mobile smartphone then why we needed any other smart device like an Android watch?
Everything can we do on our Smart mobile and they are much cheap then Android Wear Device then why Google Launch Android Wear?
-
alex levine started a new conversation Flipkart Affiliate Marketing earn commission on every purchase. 5 years ago ago
I am trying to use this However that gives me error .
I have searched for the easy way to earn Money without any investing just with my Website and Android Mobile App then I heard about Flipkart Affiliate Marketing How can I create flipkart affiliate login in it and how to use this program in my website and earn money. i have some flipkart information like i can Download Flipkart app or login on Flipkart you will get a link post that link everywhere who will purchase by the your affiliate Flipkart URL you got commission.
-
alex levine started a new conversation How to convert HTML page in Image Format from jquery? 5 years ago ago
I am trying to use this However that gives me error .
Every i have to create a Image from Photoshop and set all value what clients website earn then i sent to client.
I want any macanisum like at one click download same Html Page as Image and share to my Clients.
How to convert Html to Image (JPG/JPEG/PNG) any Image format by Jquery or Php?
-
alex levine started a new conversation How to install ionic 3 and Start Hybrid project? 5 years ago ago
I am trying to use this However that gives me error .
How can I start Development of Hybrid Mobile App, Ionic is better. How can I Install ionic 3 to develop mobile Apps?
Ionic is Cordova product is there any ionic 3 tutorial for beginners or any demo ionic projects. Please share the needed details about Ionic framework.
-
alex levine started a new conversation How do I get current location programmatically in Android by Using GPS? 5 years ago ago
I am trying to use this However that gives me error .
I want to get my Current location in my Android App.
How to implement GPS Location finder in android mobile and get my latitude and Longitude?
-
alex levine started a new conversation how to come on home screen in android programmatically? 5 years ago ago
I am trying to use this However that gives me error .
I want to come on Mobile Home Screen By clicking on My Application Button it should redirect me on Android Home Screen in the Mobile.
its like when we click on Home Softkey and it redirect us on the Home Screen.
The same thing I want to do but I don't want to click on any soft key of mobile How can I do this?
-
alex levine started a new conversation How to get string-array from Strings.xml file in android? 5 years ago ago
I am trying to use this However that gives me error .
I have a String Array in the Strings.XML file
<string-array name="OSPackage"> <item>Android</item> <item>Windows</item> <item>IOS</item> </string-array>
How can i get this array in my MainActivity.java file?
-
alex levine started a new conversation How to get default call / SMS app package in android programmatically? 5 years ago ago
I am trying to use this However that gives me error .
How can we get the package name of Default set SMS Application and Calling Application in Android Mobile programmatically?
I want to count how many times I open my SMS App and Call Application just for fun app.
-
alex levine started a new conversation How can I get current using application name on screen in android? 5 years ago ago
I am trying to use this However that gives me error .
I want to detect which app is open right now and perform some action according to the Android App.
How can I get currently open Application in android?
-
alex levine started a new conversation SyntaxError: Unexpected token import in React-Native 5 years ago ago
I am trying to use this However that gives me error .
When I try to create a new project in React-Native I am getting below error and created an incomplete project folder.
import type {CommandT} from './commands'; ^^^^^^ SyntaxError: Unexpected token import at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:616:28) at Module._compile (C:\...\reactNative\ProjectName\node_modules\pirates\lib\index.js:91:24) at Module._extensions..js (module.js:663:10) at Object.newLoader [as .js] (C:\...\reactNative\ProjectName\node_modules\pirates\lib\index.js:96:7) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17)
-
alex levine started a new conversation How to check node.js Version in windows CMD? 5 years ago ago
I am trying to use this However that gives me error .
How can we know the current installed Node Version in my Windows System?
-
alex levine started a new conversation How do I create an Intent that opens the Call Log in android pragmatically? 5 years ago ago
I am trying to use this However that gives me error .
I want to call default Call log Application form my app programmatically how can I call default call log application?
I am not able to open Call history App searched whole day but not get any working solution. I got something which is open the Default Call App but there is already open number keypad to dial call but I need the only listing of my call Activities.
-
alex levine started a new conversation Local Notifications on Android 8.0 Oreo 5 years ago ago
I am trying to use this However that gives me error .
I have Implemented Local Notification in Android Application it is working in all mobile version well except Android Oreo (Android V8.0).
How can I create Notification in Android Application in android Oreo 8.0?
How to implement Notification in Android Oero?
-
alex levine started a new conversation Unclearable Notification not showing in above lollipop android Version 5 years ago ago
I am trying to use this However that gives me error .
I need a notification when my Android Start Working and the Notification can not clear by the user.
Notification is stayed there eighter App stop working. I have searched on google for
un-clearable Notification by the user in android Programmatically?
-
alex levine started a new conversation Cannot fit requested classes in a single dex file. Try supplying a main-dex list. 5 years ago ago
I am trying to use this However that gives me error .
I want to add fused location services and getting this Error in Build
Cannot fit requested classes in a single dex file. Try supplying a main-dex list.
# methods: 65596 > 65536
Message{kind=ERROR, text=Cannot fit requested classes in a single dex file. Try supplying a main-dex list.
# methods: 65596 > 65536, sources=[Unknown source file], tool name=Optional.of(D8)} -
alex levine started a new conversation java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission. 5 years ago ago
I am trying to use this However that gives me error .
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.tech.scar, PID: 30698
java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
at android.os.Parcel.readException(Parcel.java:1942)
at android.os.Parcel.readException(Parcel.java:1888)
at android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:732)
at android.location.LocationManager.requestLocationUpdates(LocationManager.java:914)
at android.location.LocationManager.requestLocationUpdates(LocationManager.java:472)
at com.tech.scar.MyService.location(MyService.java:64)
at com.tech.scar.MyService$1.run(MyService.java:44)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6798)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
06-18 16:04:08.589 30698-30698/com.tech.scar D/OSTracker: OS Event: crash -
alex levine started a new conversation How to get mobile Name / Model in android programmatically ? 5 years ago ago
I am trying to use this However that gives me error .
I want to get Device Name which is using my Android App. How to get Android Mobile Model Number in android programmically?
It will implement in a Game which will create list of Devices using that Game for long time. -
alex levine started a new conversation How to check Bluetooth Connected to any device or not pragmatically in android? 5 years ago ago
I am trying to use this However that gives me error .
I want to show Bluetooth icon in my App if Bluetooth is connected to any device. How can i fine programically is android device Mobile is connected to bluetooth?
-
alex levine started a new conversation How to implement Content provider in android? 5 years ago ago
I am trying to use this However that gives me error .
How can we Implement the CRUD methods through Conent provider? How Content provider Works? Is content provider is same as like SQLite?
I have searched about it about Content Provider that what exactly is it and how Content Provider Works.
I have found Content provider is prform CRUD oprations in our Android app and create DB file in our local location or Globally. it is use to share data one Android Application to other.
I want to know more deep about it How can we create Content provider and implement in Android and make it secure?
-
alex levine started a new conversation How to check programmatically check Play Store for app updated Version is live android? 5 years ago ago
I am trying to use this However that gives me error .
I have updated my Android App on Play Store. Sometimes I change in my app which is totally diffrent from the last application so when old app user use the app it got crashed.
I want to add a AlertBox in my app for show "Your App is Live now Please Update It". But i am not able to fine any APIs which help me to get Live Android App Version Code in my coding to perform task on AlertBox Accept button.if there is a critical update and the user has not updated yet, he cannot use the app until he does so.
Is this possible using the Play Store?
-
alex levine started a new conversation How to get version code in android programmatically? 5 years ago ago
I am trying to use this However that gives me error .
How to get Android Application Current Veriosn Code? I want to show my Version code in my Setting Activity every time when i update my App Version Code / Build Code change it will auto change in my Setting Activity not need any Static Value.
How can i get current version of my Mobile App? -
alex levine started a new conversation How to transfer google play apps to new Account? 5 years ago ago
I am trying to use this However that gives me error .
Transfer apps to a different developer account
I have apps that I want to transfer to a different Google Play Developer account, How can i Transfer apps to a diffrent Google Play Store developer Account?
-
alex levine started a new conversation How to develop android App like mCent or ladoo to earn rewards? 5 years ago ago
I am trying to use this However that gives me error .
As you know there many android apps like mCent ,ladoo, mCent bBrowse, gigs and more which is very famous in india brazil and more emerging economy where huge number of users are on Android Mobiles. So this apps are hitting too much.
How mCent redeem rewards to give user free recharge?
From which orgniorganizor online invester who gives APIs to monitor all the things.
How to create app like mCent or ladoo in android ?
-
alex levine started a new conversation how to direct open product in app through link android - Deep Links to App Content 5 years ago ago
I am trying to use this However that gives me error .
How deep liking work in android?
I have seen in many apps, When I hit URL related to the app it will open the app and take me to the specific product page without navigating through all pages. I have to search it is called Deep linking android feature. How to implement it and how actually it works.
-
alex levine started a new conversation How to implement In-App billing v3 in Android ? 5 years ago ago
I am trying to use this However that gives me error .
In-app Billing Version 3 (IAP V3) easy to integrate In-app Purchase in an app.we can add our Products and Subscription Plans and offer the user to buy them and get the profit of that Service.
I am not able to Implement In-App Purchase or In-App Billing Functionality in my Android App.
Please elaborate In-App Purchase Tutorial with step by step.I am using Android Studio for Developing Android App, What I have to import or add in SDK?
How to Implement In-App Billing Version3 in Android Application?
I have to implement in-app purchases of the TrivialDrive sample app from google samples but I have got no proper details and not import this project into my Android Studio.
-
alex levine started a new conversation How to set Run-time Permission for Marshmallow and above Android Version? 5 years ago ago
I am trying to use this However that gives me error .
i am not able to ask for Runtime Permission in android, my Android Application getting Crash after Lolipop Version and above Please suggest me the right way to set Runtime permission.
-
alex levine started a new conversation How to restrict EditText to accept only Text Values not Numbers in android? 5 years ago ago
I am trying to use this However that gives me error .
In my Registration form Name, field (EditText) accepting Number values but Name can't be a Number. How to restrict Edit Text to restrict to get only Text Values and denial Number Value? Numbers should not enter in Name Field.
Please suggest any Working Example for Restrict EditText to only get Text.
I have tried below code but not working
<EditText android:id="@+id/name_EditText_signup_ID" style="@style/edittextStyle" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/top_right_round_edge_input" android:hint="Full Name" android:inputType="textPersonName" android:padding="@dimen/fieldPadding"/>
-
alex levine started a new conversation Can't create handler inside thread that has not called Looper.prepare() 5 years ago ago
I am trying to use this However that gives me error .
Why i am getting this error? i don't have any idea why it occur and how to resolve Can't create handler inside thread that has...
FATAL EXCEPTION: OkHttp Dispatcher Process: com.google.fundook, PID: 3214 java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.<init>(Handler.java:208) at android.os.Handler.<init>(Handler.java:122) at android.widget.Toast$TN.<init>(Toast.java:327) at android.widget.Toast.<init>(Toast.java:92) at android.widget.Toast.makeText(Toast.java:241) at com.google.fundook.PaymentPack.Payment_Activity$6$1.onReceived(Payment_Activity.java:443) at com.google.fundook.StartUploadingClass$1.log(StartUploadingClass.java:60) at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:263) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) 02-28 10:44:49.996 3214-3214/com.google.fundook E/WindowManager: android.view.WindowLeaked: Activity com.google.fundook.PaymentPack.Payment_Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{425b4558 V.E..... R......D 0,0-640,434} that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:422) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:250) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69) at android.app.Dialog.show(Dialog.java:286) at com.google.fundook.validationPack.CustomeDialogClass.show(CustomeDialogClass.java:45) at com.google.funbook.PaymentPack.Payment_Activity$6.onClick(Payment_Activity.java:425) at android.support.v7.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5292) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644) at dalvik.system.NativeStart.main(Native Method)
-
alex levine started a new conversation How to remove an element from String array in android ? 5 years ago ago
I am trying to use this However that gives me error .
Hello,
I want to remove an element from my String Array in android.
In my Android Application, I am using an array to get data and print it in RecyclerView List but now I want to Delete any item from the list.
I have research on Google about this that how can remove an element from my String Array? and I got result but
imagesPath = ArrayUtils.removeElement(imagesPath, imagesPath[position]);
ArrayUtils not found in android how can I access this class in android?
Please share any working example or suggestions for my Query.
Thanks
-
alex levine started a new conversation How to remove the white screen that shows up when my Android app Start Up? 5 years ago ago
I am trying to use this However that gives me error .
When I start my Android App it shows me a White screen for 1 or 2 seconds. This screen often show before app start How can I remove this starting White screen from my application?
-
alex levine started a new conversation How to get last inserted row ID in SQlite android 5 years ago ago
I am trying to use this However that gives me error .
I am using SQLite for store my Android Application's Local Data when I reach on next Screen I am Inserting Data in Table but if my process complete inserted Id should be deleted or if User leave process in between it store in the local database.
How to get last Inserted Rows ID in my SQLite Database?
-
alex levine started a new conversation How to Insert,Select, Delete, Update and Create Database in SQLite queries ? | Android 5 years ago ago
I am trying to use this However that gives me error .
Saving Data Using SQLite Queries How can I create my Local Database for in android with the help of SQLite? I have some idea about it but sometimes I puzzle with query is there any example with almost all
- Create Database Query
- Create New Table query
- Select Statment for Selecting All data from Table
- Select Statment for Selecting specific data from Table
- Update data Query
- Delete Data Query
- Insert Data Query
How to use SQLite Database in Android ?
-
alex levine started a new conversation keytool error: java.io.IOException: Incorrect AVA format 5 years ago ago
I am trying to use this However that gives me error .
I am trying to Create new Signed APK it's giving me Exceptions like
keytool error: java.io.IOException: Incorrect AVA format
early i have created many Apps but yet i have not get any Error Like this.
Please help How can i resolve this Exception?
-
alex levine started a new conversation How do I display AlertDialog with Material pre-Lollipop default Style Android 5 years ago ago
-
alex levine started a new conversation Android getting value from selected RadioButton from RadioGroup 5 years ago ago
I am trying to use this However that gives me error .
How to use RadioGroup in android and get Radiobutton's Value after that how can set selected (Checked) on last selected RadioButton With any example
-
alex levine started a new conversation how to transfer data between fragments Android? 5 years ago ago
I am trying to use this However that gives me error .
I have Fragments in Activity, I know how to data pass in Activity to Activity but I am not able to pass data between fragment to fragment.
-
alex levine started a new conversation How to auto logout after some time if no one using website? 5 years ago ago
I am trying to use this However that gives me error .
Hello Geeks,
I want to log out automatically if no one using website. I am using codeigniter to develop my website and there i want to so this.How can i do this?