android

Android bottomnavigation view item icon size [duplicate]

╄→гoц情女王★ 提交于 2021-02-17 06:17:50
问题 This question already has answers here : Why Floating action button Behind the BottomBar (2 answers) Closed 1 year ago . I need to do a bottom navigation view in Android like this: I tried, and now I have something like this: How can I increase size of the + icon? It will be static and bigger then another icons all the time. Other icons will change color when activated, but the size will remain the same. Activity xml: <com.google.android.material.bottomnavigation.BottomNavigationView android

Adb install failed

邮差的信 提交于 2021-02-17 06:17:11
问题 I'am developing an android app. before this morning everythings ok when i click 'run' in Android Studio, the IDE will compile my codes and install apk to my devices automatically.but now device will disconnect automatically when IDE install apk, so i try to install apk manually,i got same result,like this: My Envirement OS:Ubuntu 16.04 Android Studio: Android Studio 3.5 Build #AI-191.8026.42.35.5791312, built on August 9, 2019 JRE: 1.8.0_202-release-1483-b49-5587405 amd64 JVM: OpenJDK 64-Bit

How do I use Cognito to update user pool attributes with android?

南楼画角 提交于 2021-02-17 06:16:05
问题 I'm making an android app and have created a user in my user pool with the Amplify framework. The documenation for amplify says that making calls to get/set attributes isn't built yet, so I guess I need to use cognito directly. I now want to set attributes such as name once the user signs up. Right now I have this code, but I'm not sure what to do from here. CognitoUserAttributes attributes = new CognitoUserAttributes(); attributes.addAttribute("testAttribute", "testValue"); Also I'm

Android Studio Java String Compare

拥有回忆 提交于 2021-02-17 05:53:05
问题 I have string to compare but I can't make it to work even I searched google and stackoverflow. So here is my code: @Override protected void onPostExecute(String s) { super.onPostExecute(s); loading.dismiss(); if(s.equalsIgnoreCase("success")){ Intent intent = new Intent(Najava.this,UserProfile.class); intent.putExtra(USER_NAME,username); startActivity(intent); }else{ Toast.makeText(Najava.this,s,Toast.LENGTH_LONG).show(); } } But the activity never changes and the toast message shows up with

How to retrieve data from Firebase into a ListView (with custom Array Adapter)

做~自己de王妃 提交于 2021-02-17 05:45:17
问题 I have currently designed a place explorer app with 3 items displayed in a list view. When a user logs in he will find a list of categories. On clicking a category the list of places under that category will appear. I have linked the app with Firebase. Now, I want to display 2 items ( placeTitle and placeDesc ) from the data stored in the firebase into the list view. I am unable to load the data into the ListView . Shopping Activity: public class ShoppingActivity extends AppCompatActivity {

Web view onReceivedError is handled but still showing web page not available

二次信任 提交于 2021-02-17 05:26:03
问题 I was trying to show a web page on my web view. and in case if an error occurs or page loading fails I want to show a sad smiley and a text showing that your page is not loaded or anything like that. and for that I tried to put my code inside onReceivedError() but somehow it does not work except toasts and logs. My code is as follows: webView.setWebViewClient(new WebViewClient(){ @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url,

Access microphone in android 9 while the app is in the background

无人久伴 提交于 2021-02-17 05:24:07
问题 Android 9 limits the ability for background apps to access user input. If your app is running in the background on a device running Android 9, the system applies the following restrictions to your app: Your app cannot access the microphone or camera. Is there any way to access microphone in android 9 while the app is in the background. 回答1: One more change was added in Android 9: only apps running in the foreground (or a foreground service) could capture the audio input. Reference: https:/

Android error: cannot login with email and password

梦想与她 提交于 2021-02-17 05:19:27
问题 hello everyone I have this problem in my app. in my login view: <com.example.ciyashop.customview.edittext.EditTextRegular android:id="@+id/etEmail" style="@style/txt_gray_medium" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="start" android:drawablePadding="@dimen/value_8" android:hint="@string/email" android:inputType="textEmailAddress" android:paddingBottom="@dimen/value_8" android:singleLine="true" android:textAlignment="viewStart" android

Error while building WebRTC for android on Ubuntu

二次信任 提交于 2021-02-17 05:15:16
问题 I am trying to build WebRTC for Android on Ubuntu 16.04. I have followed the steps mentioned at: https://medium.com/@abdularis/how-to-compile-native-webrtc-from-source-for-android-d0bac8e4c933 ( I found similar steps in the other links also) I checked out the version: branch-heads/m79 I am getting the following error while building the code with the command: python tools_webrtc/android/build_aar.py ERROR at //build/config/android/internal_rules.gni:3051:7: Assertion failed. assert(_is