android-studio

Android app keeps going back to main activity UI when I try to display something using an adapter on the current activity

浪子不回头ぞ 提交于 2021-02-10 06:45:55
问题 I am very new to android development and am building an app that can read characteristics from a BLE device. I am able to connect to a device and read its characteristics. However, I have a problem is displaying the characteristics using an adapter. Initially, I tried using the RecycleView adapter but my program kept going back to the main activity as soon as I tried to notify my recycleview adapter and everything left on the Logcat would be this: 2020-11-24 13:35:37.220 12966-12966/? I

Android app keeps going back to main activity UI when I try to display something using an adapter on the current activity

爷,独闯天下 提交于 2021-02-10 06:45:18
问题 I am very new to android development and am building an app that can read characteristics from a BLE device. I am able to connect to a device and read its characteristics. However, I have a problem is displaying the characteristics using an adapter. Initially, I tried using the RecycleView adapter but my program kept going back to the main activity as soon as I tried to notify my recycleview adapter and everything left on the Logcat would be this: 2020-11-24 13:35:37.220 12966-12966/? I

Connection to localhost on the Android emulator

佐手、 提交于 2021-02-10 06:25:14
问题 I can not connect to localhost in the android emulator. The API I have built in Net Core 2 and running in VS2017 (Windows 10) adress http://localhost:50069/api/values What I checked and does not work (does not react): http://10.0.2.2:50069/api/values http://ip:50069/api/values (ip -> ipv4 address from ipconfig) http://127.0.0.1:50069/api/values http://0.0.0.0:50069/api/values I've already checked out all the advice on what was on the net and nothing 回答1: I had same problem with ASP.net. I

Execution failed for task ':google_sign_in:verifyReleaseResources'

对着背影说爱祢 提交于 2021-02-10 05:37:15
问题 Ok so I have been building my flutter application , however, i can't figure you what to do in case of this error. I have been following this blog https://flutter.dev/docs/deployment/android , for the release build of my app .Everything worked fine , until i added flutter build apk --split-per-abi It gave me the following error, FAILURE: Build failed with an exception. ' Execution failed for task ':google_sign_in:verifyReleaseResources'. > java.util.concurrent.ExecutionException: com.android

How change encoding in android studio

久未见 提交于 2021-02-10 05:19:42
问题 I want change encoding UTF-8 from UTF-16 for display Unicode . How change encoding in android studio ? I'm search in internet but The result did not. 回答1: Look at the bottom-right part of your Android Studio window: Just click the appropriate dropdown (in this case, one that shows my current encoding: UTF-8 ) and you'll be greeted with a handful of other encoding options. 来源: https://stackoverflow.com/questions/38714358/how-change-encoding-in-android-studio

How change encoding in android studio

喜你入骨 提交于 2021-02-10 05:18:12
问题 I want change encoding UTF-8 from UTF-16 for display Unicode . How change encoding in android studio ? I'm search in internet but The result did not. 回答1: Look at the bottom-right part of your Android Studio window: Just click the appropriate dropdown (in this case, one that shows my current encoding: UTF-8 ) and you'll be greeted with a handful of other encoding options. 来源: https://stackoverflow.com/questions/38714358/how-change-encoding-in-android-studio

Android - EditText made programmatically not showing keyboard

岁酱吖の 提交于 2021-02-09 20:23:07
问题 I am making an app where I am using a ArrayAdapter<String> and I am programmatically making an editText view inside of a Relative Layout which is all inside of a AppCompatDialogFragment . Each of the editTexts are showing up and I can click on them, but if it doesn't open the keyboard to type. I have tried things like: EditText editText = (EditText) findViewById(R.id.myTextViewId); editText.requestFocus(); InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD

Camera intent permissions in Android 10

╄→尐↘猪︶ㄣ 提交于 2021-02-09 10:41:44
问题 I am having an unusual issue when dealing with using the camera app with an implicit intent in Android 10. I am using the Big Nerd Ranch Android Programming textbook (4th Edition) chapter 16 to learn how to take pictures and store them in an app. The book walks through the process of setting up a FileProvider, granting the camera app permission to write to a specific URI, and then launching the default camera app using an implicit intent from MediaStore. After following the instructions in

Camera intent permissions in Android 10

≯℡__Kan透↙ 提交于 2021-02-09 10:39:20
问题 I am having an unusual issue when dealing with using the camera app with an implicit intent in Android 10. I am using the Big Nerd Ranch Android Programming textbook (4th Edition) chapter 16 to learn how to take pictures and store them in an app. The book walks through the process of setting up a FileProvider, granting the camera app permission to write to a specific URI, and then launching the default camera app using an implicit intent from MediaStore. After following the instructions in

long SVG Asset file error : R is not a valid verb. Failure occurred at position 2 of path: STRING_TOO_LARGE

£可爱£侵袭症+ 提交于 2021-02-09 09:37:20
问题 I'm having some problems with Android Studio at the moment because I recently started using "Vector Assets". I've done absolutely everything necessary to display them correctly in my application (using the app:srcCompat="" in the xml, android {defaultConfig {vectorDrawables.useSupportLibrary true}} in the build.gradle, and AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); in the onCreate() method before setContentView() ). The svg files I imported into Android Studio do not have