Questions tagged as 'android-studio'

1
answer

Go adding lines to a '.txt' and then print them - Android Studio

I have three Activitys, the main one: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);...
asked by 10.07.2018 / 01:59
3
answers

Debug-Log from a distance? Android Studio

I am developing an app which has problems with two versions of Android, it has already been installed in different android, 4.4.4, 5, 6. but there are two smartphones that are stopped the app one is version 6.0.1 and the other andreo 8 oreo. I d...
asked by 16.05.2018 / 17:21
1
answer

How can I eliminate the line breaks generated by a String?

This would be the code that gives me the line break. miString = miString.replaceFirst("texto a reemplazar", ""); miString = misString.trim(); What happens to me is that when I save it in the .txt it generates that annoying line break. I nee...
asked by 28.08.2018 / 23:49
1
answer

Maps Android Studio is not displayed when the app is downloaded from play store

I'm having a problem showing google maps in my app, before the map was shown correctly, the marker with the requested approach, when I emulate my project in the emulator or I do it on my cell phone through cable, the map will be shows correctly,...
asked by 01.02.2018 / 18:21
1
answer

How to modify the Sqlite Path

I can not change the path of SQLITE . I set up a database in android studio and the class that extends from SQLiteOpenHelper I have: public Constructor (Context ctx){ super(ctx, NombreBase, null, 1) }...
asked by 19.12.2017 / 04:06
2
answers

How to put the name that appears on the icon of the application

When I create an application the icon of this application that appears on the desktop shows a different name than the one I have in the strings.xml <string name="app_name">Nombre UNO</string> I have a different one on the...
asked by 08.01.2018 / 19:59
3
answers

How to stop scheduleTaskExecutor process?

Good afternoon! I'm working with Executors, I have a button that when pressing it makes a toast every 5 seconds, my question is if there is a way to kill that process by pressing the button again. I read that with future.cancel() but I...
asked by 05.12.2017 / 18:11
2
answers

"Private mode" storage of Photos

Well I want to take a Photo and save it without the photo being shown from the gallery. this is the code I use: File MiFotoTemporal = new File(RUTAFOTO+ NOMBREFOTO); MiFotoTemporal.createNewFile(); Uri uri = Uri.fromFile(MiFotoTemporal); Inten...
asked by 11.10.2017 / 19:04
1
answer

Error: Execution failed for task ': app: transformDexArchiveWithExternalLibsDexMergerForDebug'

Today I want to generate my APK and trying to do it I find this error: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.    java.lang.RuntimeException: java.lang.RuntimeException:    com.android.bu...
asked by 07.11.2017 / 17:44
2
answers

Gradle failed when creating project in Android 3.0

Hello everyone had been working well since version 2.3.3 but when updating to the new android studio 3.0 it generates an error when creating or opening a project, I have already tried many ways to solve it, from deactivating the offline work opt...
asked by 14.11.2017 / 18:03