There is no error in the code, but it just won't run. So the problem is when I select the gallery and choose my own image, it won't add to the main image view canvas, instead, it crashes the application. But I also added another function where the user can manually add pictures from his gallery by clicking on the gallery icon. The basic functionality of the app is working, when I click on "Capture Image" on the main screen, it opens the camera, takes a pic, and extracts text. The idea is to scan text from any source and it is read out to the user. end methodi can't make it with these code.So my application is an Image to text and text-to-speech app. Invoke-direct, Lcom/unit圓d/player/UnityPlayerActivity ->onCreate(Landroid/os/Bundle )V New-instance v0, Landroid/app/AlertDialog$Builder method protected onCreate(Landroid/os/Bundle V (if you can't find the exact line, search for "onCreate", making sure you'll find a line which starts with ".method" and which has only "onCreate" as name, and not InvokeOnCreate or similar different names). Now that we found the right file to work with, let's open it! In our example, it's "StartActivity.smali" (I suggest to open it using Notepad++, a very good tool to read and work with countless file extensions). Notes: sometimes, you might need to open the "smali_classesX" (where X is a number) if you can't find the full path in the "smali" folder (and if smali_classesX folders exist), so it'd be, for example: smali_classes2/com/ifly/StartActivity.smali Smali/com/ifly/StartActivity.smali in order to find the right file This is the path we should search for in order to find the right file to put our toast message in, so we move into: If we follow the example above, we'll have to replace all the points with the slash symbol and append ".smali" at the end of it, so: ![]() In this example it's "com.my.ifly.StartActivity" but it changes with every game.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |