I am loading a string which contains some number (all in Persian) into an android TextView. Everything was fine until I changed my custom font, numbers of text shown as English number. Expected : …
Tag: android
What does “class loading deadlock” mean here?
I have this classes: And code inspector is detecting this warning: Referencing subclass NonRegisteredUser from superclass User initializer might lead to class loading deadlock What does it mean exactly? Answer The deadlock can only occur if you have 2 threads and one starts to load User and one starts to load…
Android Fragment OnAttach method
I’m new to Android development and have a question about OnAttach(Context context) method. As far as I understand you override OnAttach method in the class that you extend Fragment and what it basically does is it attaches the fragment to the Activity(Context) that gets passed as a parameter. However, i…
app:transformDexArchiveWithExternalLibsDexMergerForDebug
hi guys i get this error when i try to run my app Error:Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’. com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex i don’t know why! I tried also to clean and rebuild project but i get alway…
Android Studio 3.0.1 gradle build pkix pathbuilding failed
I have created a new project in android studio 3.0.1 setup the proxy settings of company and added the self sighned certificate unser server sertificates. When I try to build the following error is listed and the build fails. Error: Could somebody help me? Answer Solved this by adding the self signed certific…
Login Page will not open profile activity
After a user registers in the signup activity page I want them to be able to press the login button in the login page and then for the app to go to a profile activity page. However, the app crashes after typing in the username and password and pressing the login button in the login page. Here is the sets
Handling positions in FirebaseRecyclerAdapter
I have fiddled with the FirebaseRecyclerAdapter for quite some time now. It’s really a great tool to populate a custom list/recycler view very fast with all of its features. However, one thing that I would like to ask is how to handle positions of items inside the adapter itself. So for example, I want …
MediaMetaDataRetriever.setDataSource return null
I’m trying to develop an application (Radio Stream) app, I want to get the details of the song that is playing on the radio for that MediaMetadataRetriever API but when i set my URL i get this error : java.lang.IllegalArgumentException at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataR…
android – Google places opens the map on closes after 1 sec
Im creating an intent to an activity by clicking on a button which should open google places, but it closes again really fast and says no location selected, and returns to the main activity, and then nothing happens if i click again. My api should be fine, I have checked that it’s the correct SHA1-finge…
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex in Android Studio 3.0 [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 4 y…