android-studio

How to link html files in WebView?

倖福魔咒の 提交于 2021-02-08 10:24:16
问题 I have a huge folder of htm files and a single html file with a href links to each of these htm files. I would like to create an android app, for personal use, to make browsing these files easier on a tablet. I managed to load the main html file to WebView in Android Studio, but clicking any URL results in a crash, therefore I can't load any htm file through my html catalog. I am not experienced in android programming, I only have some out-of-date experience in website creation back from the

How to fix “android.content.ActivityNotFoundException” android-studio 2.3.3

こ雲淡風輕ζ 提交于 2021-02-08 09:55:46
问题 I have a small problem where when I click a certain button within my app, the app completely crashes each time without fail. I am using android studio 2.3.3 and the app is a barcode scanner, here is the error message I get: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=5010029217902 } Here is the section of code that is causing the error: } }); builder.setNeutralButton("Visit", new DialogInterface.OnClickListener() {

Location of debug keystore in Android Studio, does it exist?

半腔热情 提交于 2021-02-08 09:53:41
问题 After a lay off, I migrated my Android development from Eclipse under Windows to a new machine with Android Studio running under Ubuntu. Because I wished to port an existing project using Google Maps v1 (which no longer issues new API keys) I copied the release and debug keystores to the new machine. Under Eclipse there was no need to know the location of the debug keystore which was created automatically and debug loads signed with it. Under Android Studio, does the same principle apply? If

Android Studio doesn't show new Activity option

自古美人都是妖i 提交于 2021-02-08 08:58:23
问题 My android studio doesn't responding well. It does not show new Activity option. Even it does not display other option too . I Cleaned and rebuild the project . Even I restart Android studio several times too . Please Help me to solve this issue. 回答1: I ran into this same issue and tried numerous things that I found online but nothing worked. Then I just started trying out random things and when I ran "File -> Sync Project with Gradle files" it started working for me. I can now create

make Android Studio Work with Java and not Kotlin?

心已入冬 提交于 2021-02-08 08:54:41
问题 my android studio started working with kotlin and not java after the last update. I have a university project that I need to deliver soon and we only learned coding with java, can anyone please help me find a way to return it to java thanks a lot 回答1: If I understand your problem correctly, when you create new project you have to uncheck "Include Kotlin support" checkbox at the bottom of "Create new project" window. And remember that you can create java classes in Kotlin project. 回答2: If you

Android - FTPS Session Reuse - No field sessionHostPortCache

佐手、 提交于 2021-02-08 08:30:30
问题 I'm developing an application on Android with Android Studio and I want to use FTP to send files to a server. I need to support session reuse since the server is hosted by an hosting service provider and they obviously have session reuse enabled. I found this reflection hack in this post used by many to make make this possible: // adapted from: // https://trac.cyberduck.io/browser/trunk/ftp/src/main/java/ch/cyberduck/core/ftp/FTPClient.java @Override protected void _prepareDataSocket_(final

Where option -> New > Vector Asset on Android Studio?

天涯浪子 提交于 2021-02-08 08:13:22
问题 I would like to add an SVG image to the Res folder. Right-click to option in the res -> add new file... there is no Asset Vector... Why? What is wrong? 回答1: Follow this path to find New Vector Asset app->res->drawable . right click on drawable then New->Vector Asset For reference follow below image: I hope its work for you. 回答2: For first step you have to build the project correctly. as https://developer.android.com/studio/build The problem sue on bottom bar in your android studio. 回答3: Try

Remote repo on Google Drive working fine one day, breaks down the next without me touching it

吃可爱长大的小学妹 提交于 2021-02-08 07:05:46
问题 So I wanted to make a remote git repository for myself that I can use to work on different machines. Sounds simple, Google drive offers its sync utility for PC and Mac (I use both) so.. I created a remote repo, pretty much following this guide: https://medium.com/@techstreams/git-google-drive-simple-git-host-3a84db4fc1fd It worked fine for the first day - I could commit&push on Macbook, see the changes on PC, commit&push on PC and so on. Need to mention that I use Android Studio mostly and it

Remote repo on Google Drive working fine one day, breaks down the next without me touching it

淺唱寂寞╮ 提交于 2021-02-08 07:03:17
问题 So I wanted to make a remote git repository for myself that I can use to work on different machines. Sounds simple, Google drive offers its sync utility for PC and Mac (I use both) so.. I created a remote repo, pretty much following this guide: https://medium.com/@techstreams/git-google-drive-simple-git-host-3a84db4fc1fd It worked fine for the first day - I could commit&push on Macbook, see the changes on PC, commit&push on PC and so on. Need to mention that I use Android Studio mostly and it

Espresso-android jar - 'Error in opening zip file' in android studio 8.x

限于喜欢 提交于 2021-02-08 05:54:25
问题 I've been getting this error, I've tried the solution stated here: Android studio - Failed to complete gradle execution - error in opening zip file This error is killing me, I've tried removing the .gradle folder. I've noticed that the .idea\libraries folder has a bunch of xml's in it and I've tried deleting that (thinking its storing something wrong) and that wasn't it either. I've narrowed it down to the jars downloaded from the espresso-android site, espresso-1.1.jar and the test runners -