Questions tagged as 'android'

1
answer

How to remove the title bar of the Android app VisualStudio C # Xamarin

I'm having trouble removing the title bar from the app I'm developing, I already tried the android studio and failed miserably just like in visual studio, since I'm not good at java I opted for the look that I have the most affinity for. H...
asked by 09.05.2018 / 22:45
1
answer

Android - Share Preferences for another device

My question is: Can you share information saved by SharedPrefences to another device, either by bluetooth or another connection? MainActivity.java: SharedPreferences.EDITOR editor = getSharedPreferences("pref", MODE_PRIVATE).edit(); e...
asked by 08.05.2018 / 20:52
1
answer

Treatment when converting data

I want to convert String to Double already know how to do, but my string has, (comma) and the double does not accept, how do I turn this comma into point? Can someone help me?     
asked by 08.06.2018 / 18:56
2
answers

The application for when the editText is not filled

Hello! I would like to ask for help. I'm new to Android studio and I'm trying to create an application for my physics students to calculate motion equations. One of the methods is to calculate the equation "V = v0 + at", when the editTexts are p...
asked by 08.06.2018 / 02:58
2
answers

String conversion to int

My xml ' <android.support.design.widget.AppBarLayout android:id="@+id/appBarLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay" app:layout_const...
asked by 27.04.2018 / 17:25
1
answer

NullPointerException when using setText for a TextView in the fragment

I'm creating a fragment where I have in one part the map and in another a Retrofit object, where I get the date and time of a server. The error occurs inside the onResponse call of Retrofit, where I try to set the TextView with the date and time...
asked by 16.04.2018 / 16:41
1
answer

Error trying to open map with disabled location

So far, the purpose of this application is to open the user to locate some mapped points. When the app opens (location off or not), it asks if the user allows it to use its location. It goes in permissions, activates the location and, until then...
asked by 16.04.2018 / 02:38
1
answer

Force Adaptive Icon to be Square (Square)

The best icon format for my application is the rounded square, however, on api 26 and 27 we know that the android uses a predefined adaptive icon (always in circular format) or transforms a non-adaptive icon (circle with space blank and small re...
asked by 17.04.2018 / 16:18
1
answer

Execute function with ENTER in EditText

I need to perform a function with the "Enter" keyboard in EditText . They did not work: android:maxLines="1" : it skips fields android:imeOptions="actionNext" : it executes with the "next" button of the virtual keybo...
asked by 16.04.2018 / 19:36
1
answer

Error in NetworkInfo [duplicate]

I have the following problem, I have a method that verifies whether the device is connected to the internet or not public static boolean isNetworkAvailable(Context context) { ConnectivityManager cm = (ConnectivityManager)context.getSyste...
asked by 03.04.2018 / 19:49