how to give file uri in build envelope method of android sdk - android

I am trying to access pdf file from android phone in build envelope method of android sdk as
.uri("file:///storage/emulated/0/FileExplorer/")
.name("12_24_2020")
but its giving me error Invalid json and in logcat error as
2020-12-25 15:55:35.946 9439-9439/com.example.docusignapp E/main:
Unknown exception in loading document:
File is not a valid, parseable, password-free PDF.
My file is not password protected.
Kindly help and thanks in advance.

The SDK docs show the .uri parameter as the path to a specific file.
I suggest you try a specific file, not a file explorer.

Related

"the file name must end with .xml" error for jpg file in Android Studio

I am getting this error while building my app. The drawable folder has the valid .jpg file and this is causing the error. How to bypass this? Also, I noticed that the path shown in the error is "main\res\routine\Routine.jpg", but there is no such folder in the project.
AGPBI: {"kind":"error","text":"The file name must end with .xml",
"sources":[{"file":"C:\\Users\\Lenovo\\AndroidStudioProjects\\project3\\app\\src\\main\\res\\routine\\Routine.JPG"}],
"tool":"Resource and asset merger"}```
UPDATE: solved the problem by reuploading the pic and saving it in drawable_V21. still dont know about that error message though. might be a bug
I guess that error you're experiencing is because of the file extension being in .JPG instead of .jpg try changing it. It may help somehow

Invalid resource path specified

I have copied the app-debug.apk from outputs of android studio project and trying to run the apk file on the phone but getting this error :
Invalid resource path specifed
This is my project structure :
For me the cause of this error is the method you sent the file to your device.
I sent the apk file using whatsapp messenger and this error was shown.
But when I sent the file using Bluetooth the apk was installed successfully.

dropbox api exception android

When i tried to download a file from dropbox using dropbox api in android then i got a exception something like this
DropboxException:DropboxServerException (nginx): 400 Bad Request ('rev' is not well-formed: "/storage/sdcard0/SMSbackUpTOSS/DropBox/allSMS_01-Sep-2015.txt")
I am getting exception in this line
fd = mApi.getFileStream(fileSelected.path,
localFile.getPath());
Because no other line under this works.
But the same code in another project works fine. I dont understand why i am getting this exception!!!
mApi.getFileStream(fileSelected.path, localFile.getPath());
the second parameter here is rev, that is the revision of the file.
You should try to use null if you want the latest revision.

Phone gap Error! Unable to open asset URL file

When running android app it showing error:
file:///android_asset/www/images/ajax-loader.gif Unable to open asset URL:file:///android_asset/www/images/go.jpg
Please help me to solve this.
Try the followings:
Make sure you have the file in the directory
Specify permission for read/write to the file
android file name are case-sensitive.
Why the gif and jpg both comes in one error...check it.

Getting error of parsing the package during updating my new version of apk

Android Experts, I have installed signed apk (version 1.6) and on my server I've uploaded apk( version 1.7). Now I am facing problem during Update my apk from server.. I also got Dialog box for Updating but at the end I am getting error as
"Parser Error, There is a problem parsing the package." . I found some solution from some links but it doesn't work.
I am waiting for your suggestions, any ideas and your solution.
Thank U.!
You can check following things in your code
1. Already installed Apk name and updated apk name should be same.
2. Both Android Manifest contain same android:minSdkVersion value.
Yeppiee... finally I got my solution.. Actually I put wrong file path during Updating code on "onPostExecute".. So thts why I could not Update my apk and was getting "Parser Error, There is a problem parsing the package"
And One more thing If U r update your apk from server U must have following things:
- installed Apk name and updated apk name should be same.
- Both Android Manifest contain same android:minSdkVersion value.(Here My Android Tablet 4.0.3 and I put minSdkVersion:14)
- And Last If U r using asp.net U must Add .APK MIME Type to IIS - Microsoft Server Support. In IIS there needs to be a MIME type added to allow IIS to support the .APK file type.
Check this link

Categories

Resources