Questions tagged [android]

440793 questions
1

votes
3

answer
370

Views

Where are my Visual Studio Android emulators?

I'm just starting Jesse Liberty's new Pluralsight course, 'Building Your First Mobile Application with Xamarin.Forms and Visual Studio 2017' and I'm running into a problem right out of the gate. In the video, Jesse creates a new Xamarin.Forms project, modifies the XAML a bit, and runs it. Here is...
Scott Baker
1

votes
1

answer
1.7k

Views

how to implement checkbox in recyclerView?

I have an adapter for recyclerview. Where i pass array list from my activity like where data is ArrayList having some data. AlternativeAdapter alternativeAdapter= new AlternativeAdapter(AlternativeActivity.this, data); recyclerView.setAdapter(alternativeAdapter); In the AlternativeAdapter class i ha...
Gyan S Awasthi
1

votes
2

answer
1.2k

Views

Android Studio: “Error initializing ADB: Android Debug Bridge not found”

I've installed Android Studio 3.0, and have compiled and run applications successfully. Device File explorer pane has the above error message in red, and nothing else.
A.J
0

votes
1

answer
23

Views

How do I refresh the page after deleting a row from the database to show the updated data?

I am deleting the row by calling the delete() method. It deletes from the database but the page doesn't update. Once I close the app and then open again or go to other page and come back then the row disappears from the screen . How do I to refresh the page after deleting a row from the database to...
Satya Routray
1

votes
0

answer
17

Views

Is Android app size effected by unused imports?

Do unused imports or imports using * affect app size in Android? For example, will something like importing java.util.* (instead of importing only what is used) negatively impact app size? Does the compiler know to ignore unused imports, and if so, will the unused parts of java.util.* be ignored the...
Taylor
0

votes
0

answer
16

Views

Xamarin - Google Maps keep “showing” Malls

We are using a stylization with the minimum of items to render (without markers, houses, rivers, etc ...) but somehow we can not disable the rendering of Malls. The rendering in the browser works perfectly (does not display the malls): But when we load the JSON in the Device the malls keep appearing...
Igor
-2

votes
1

answer
12

Views

Making Android app hidden numbers visible… which are for pro app only

I have one app, which not allowing me to see certain numbers. Those numbers are blurred. I can see that those numbers are keeps on updating behind that blurred part. How can I make those numbers visible?
Tanaji
0

votes
0

answer
14

Views

Removing cardview in listview Android

I'm using retrofit and I've made a delete method which is working. But my problem is that the OnItemClick isn't getting the item position and giving me this error Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference I'm using cardviews in my listview , this...
nihel
-1

votes
0

answer
7

Views

Cannot find default config in AndroidStudio 3.4

Since upgrading to 3.4, I can't seem to find a GUI way to edit the 'defaultConfig' info. Do I have to edit the Gradle file directly? I can edit my two 'Flavors' fine, but not the defaults. Thoughts?
Dave Hubbard
0

votes
4

answer
428

Views

Explain the functionality of JSON

I think it is better to understand why I have so many problems with JSON that I explain you what my goal is: I work with Googles App Engine. There I want to store data. The data looks like user - username question - question date1 - date1 date2 - date2 An Android App have the 'simple' function to: S...
StefMa
0

votes
0

answer
6

Views

How access pictures after they have been taken by camera used by other app

I have an idea for an android service, and I need to be able to access pictures before they're being taken, to save GPSlocation, moreover, I need also an access to the picture immediately afterwards. Is there any proper way to do it ?
adam17238
1

votes
1

answer
914

Views

Failed to Insert Image. Permission Denied. Despite providing permission

I'm trying to save Bitmap Image in Gallery of Android Device using MediaStore. Here is my AndroidManifest.xml: As you can see in the manifest file I have provided read and write external storage permission. I have also provided URI permission. I implemented Runtime Permission. Here's my MainActivit...
JaySparkexel
1

votes
3

answer
49

Views

When do widget class names end with “View” vs. “Layout” vs. neither?

Is there a pattern or naming convention for if an Android widget class name should end with 'View', 'Layout', or neither?
aoeu
1

votes
1

answer
2.4k

Views

Clean Architecture, UseCases and Entities

Okay, so I just started a new Android project and wanted to try implementing the Clean Architecture by Uncle Bob. I have a nice beginning using RxJava and stuff from GitHub samples & boilerplates and Fernando Cerjas' blog (like this article), but still have some questions on how to implement some Us...
w00ly
1

votes
1

answer
791

Views

Speech recognition and speech to text on Android without any Google services

I am trying to make an application which uses speech to text for command input. I am making this for Android 6.0.1 and 5.1.1. I started by trying the examples with Google services, but none of them seem to work on my devices. Most of the time there is no clear error or a crash. I have gotten the no...
Timo Loomets
1

votes
3

answer
469

Views

How to open URL from Fragment TextView?

I have an activity with multiple tabs and each tab consists of a fragment with some text inside. I would like to have a text with 'Read More' which is a link to an URL. Without having the link, everything works fine, but when I try to implement it, I get E/UncaughtException: java.lang.NullPointerEx...
CuriousPaul
1

votes
2

answer
948

Views

WebView not Working Properly

I made a url to open through webview and everything worked fine for me except some buttons of the webpage it doesn't respond anything public class browse extends AppCompatActivity { WebView appwebview; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState)...
Jasbin Karki
1

votes
1

answer
1.9k

Views

Error:(35, 24) error: cannot find symbol method crossFade() in latest Glide

I have an old project using Glide 3.5.2. The below works fine. Glide.with(context) .load(url) .override(IMAGE_SIZE_FIX, IMAGE_SIZE_FIX) .crossFade() .placeholder(placeholder) .into(imageView); However, now I update my Glide to 4.5.0. It complains Error:(35, 24) error: cannot find symbol method overr...
Elye
1

votes
3

answer
139

Views

how to use the sharedpreferences to store the name in one activity and use them in another activity?

i use this code to store the name and password in login activity! public void main_login(View v) { Name = name.getText().toString(); Password = password.getText().toString(); BackGround b = new BackGround(); b.execute(Name, Password); context = getApplicationContext(); sp = getSharedPreferences('ide...
selva surya
1

votes
2

answer
76

Views

Wrap content not working and scroll stopped working

Wrap content not working and scroll stopped working. Hi, I'm developing an app for Android and I have noticed that my app works perfectly in smartphones, however in Tablets in Portrait mode it adds a huge space and the ScrollView stops working. Smartphone's view: Tablet's view: My XML code: If I rem...
Federico Navarrete
1

votes
4

answer
1.6k

Views

Android Alert Dialog - How to change the title color and the text color without changing the primary color

Hay, Is there a simple way to change the title and the text colour without changing the primary colour of the whole app? Here is what I got now: I dont want to change the textColorPrimary
Raheel Hasan
1

votes
1

answer
262

Views

Android emulator crashes with glMatrixMode:1543 GL err 0x500

On a Windows 10 running in Parallels on a Mac, the android emulator crashes while launching C:\Android-SDK>.\tools\bin\avdmanager create avd --name GeneXus-API16-ARM --package system-images;android-16;default;armeabi-v7a Auto-selecting single ABI armeabi-v7a===] 100% Fetch remote repository... Do yo...
Armin Bachmann
1

votes
1

answer
87

Views

What is the difference between Point.OrientationMode ESTIMATED_SURFACE_NORMAL and Point.OrientationMode INITIALIZED_TO_IDENTITY?

After I read the following document, the information I get is an orientation mode of the feature point is ESTIMATED_SURFACE_NORMAL if it is on textured surfaces, otherwise it is INITIALIZED_TO_IDENTITY. But I expect the feature point to be detected because it is on textured surfaces, so I'm a bit co...
henry
1

votes
1

answer
374

Views

How to stop a VpnService that was called with prepare() and startService()?

I't trying to implement a local VpnService to have my app do some tasks, but I'm a little confused as to how to stop it one it started. The VpnService class and client activity are based on this repo: https://github.com/hexene/LocalVPN The caller activity is basically this: public class MainActivity...
DmitryB
1

votes
2

answer
194

Views

Sharing image - Failed to find configured root that contains

I can share files those added from other folders except camera. I am getting following exception in Lenova K3 Note. java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/9016-4EF8/DCIM/Camera/IMG_20180317_111252.jpg file_paths.xml
Gunaseelan
1

votes
2

answer
1.3k

Views

Reduce APK Size using Patch and Update on Google Play Store

I recently read about that Google is using File-by-File Patching and another one algorithm BsDiff - Delta update which patches apk files and gives only update sized apk to download from Play Store. I went through below blogs and links: 1) https://android-developers.googleblog.com/2016/12/saving-data...
Chintak Patel
1

votes
2

answer
223

Views

RxJava 2 mock Observable doesn't work

I use RxJava 2 Observable to wrap barcode scanner in one of my app. This snippet show how I subscribe to Observable and listen to it's events override fun start() { disposables.addAll(subscribeToBarcodeReader(), loadUser()) } private fun subscribeToBarcodeReader(): Disposable { return barcodeObserva...
1

votes
1

answer
1.4k

Views

How to set the blur level of a view background

To set the transparency level of a view background we use mView.getBackground().setAlpha(mViewTransparencyLvl); How to set the blur level of a view background? Knowing that the background is a shape drawable not an image. Knowing that the user controls the blur degree. Knowing that this view is over...
Jack
1

votes
1

answer
661

Views

Implicit Broadcast in android Oreo

I have a project which contains 6 apps. When one app receives a notification, other five apps also get notified through implicit broadcast receiver. But In android Oreo implicit broadcast receiver is deprecated. So I can't notify other 5 apps together. Is there anyway that I can do the same functi...
Ashiqul Islam
1

votes
3

answer
2k

Views

Android fragment manager fragment change listener

When replacing a fragment using a FragmentManager is it possible to add a listener for when the event is completed? So myFragmentManager .beginTransaction() .replace(R.id.fragmentContainer, fragment, FRAGMENT_TAG) .commit() can I add a listener to myFragmentManager so that I know when the fragment...
Rgfvfk Iff
1

votes
1

answer
215

Views

Can I combine multiple property in visibility binding with MvvmCross?

I have two Boolean properties in my ViewModel. Can I use combination of both properties to set visibility? Something like local:MvxBind='Visibility Visibility(BoolProperty1 && BoolProperty2)'
ronak
1

votes
1

answer
1.1k

Views

Glide and recyclerview, too much memory

I use Glide to download images(~4Kb each) and a recyclerview with a gridlayout to display it. I store images url in an lru cache. In the onBindViewHolder() I get the image url and display it with Glide as a follow: Glide.with(mMainActivity).load(item.getPosterPath()).thumbnail(0.5f).into(holder.post...
Overflow 404
1

votes
1

answer
128

Views

Selenium - Obtain app version from .apk files

I am running Android tests using Selenium and Appium. Would like to know how to programmatically obtain the Android app version given then .apk file. OR, if this info could be obtained through Appium that would work as well?
Wes
1

votes
3

answer
4.7k

Views

Android dependency com.google.firebase:firebase-core different version for the compile (12.0.1) and runtime (11.4.2)

this is my Project Gradle dependencies classpath 'com.android.tools.build:gradle:3.1.0' classpath 'com.google.gms:google-services:3.0.0' classpath 'io.realm:realm-gradle-plugin:4.2.0' classpath 'com.google.firebase:firebase-plugins:1.1.1' this is my App Gradle dependencies implementation 'com.googl...
Andrews
1

votes
2

answer
2.4k

Views

Android Studio maven { url “https://jitpack.io” } can't download

Can't use anymore maven { url 'https://jitpack.io' }. I have following gradle: apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId 'test.com.myapplication' minSdkVersion 19 targetSdkVersion 27 versionCode 1 versionName '1.0' } buildTypes { release { m...
Choletski
1

votes
2

answer
2.6k

Views

Flutter increase height of TextFormField

I am creating a Flutter app. i made the design like this. My TextFormField form field for email and password heights are small. I want it to be the same size of the button. final email = TextFormField( keyboardType: TextInputType.emailAddress, autofocus: false, initialValue: '[email protected]'...
Sathya Baman
1

votes
2

answer
288

Views

Authenticator, incorrect translate Java to Kotlin

I'm trying to convert a lot of code Java into Kotlin. I found on stack how to set authentication with OkHttp: client.authenticator(new Authenticator() { @Override public Request authenticate(Route route, Response response) throws IOException { if (responseCount(response) >= 3) { return null; // I...
companyn
1

votes
1

answer
1.1k

Views

Could not find method buildTypes() for arguments on project ':app' of type org.gradle.api.Project

After i import an Eclipse projet to Android studio 3.0.1 Now this is the build.gradle for my projet apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion '27.0.3' defaultConfig { applicationId 'com.zombieshunter.gameoverstudios' minSdkVersion 14 targetSdkVersion...
1

votes
2

answer
2.6k

Views

React Native - How to manage the native back button with Drawer Navigation

I recreated the Drawer Navigation following this code: https://github.com/mariodev12/react-native-menu-drawer-navigator Everything works correctly but now I do not know how to handle the native button to go back .. I would like to always return to the previous page, but if you press twice in the hom...
Nobady
-1

votes
0

answer
27

Views

How to wait till RecyclerView has finished laying down the items?

I have a realm model/object with many entry, when I load this in a recyclerview I start a dialog and close this, when its finish. But when the realm object does not have entry´s I cant close the dialog. How can I check, that the recyclerView is finish with working ? private void setupRecyclerView(@...
Metti

View additional questions