I am working in the layout files with XML have a TextView that must contain several special characters like "‡", "oe", "ƒ"... (even my browser failed to display them correctly, so I don't know if you got them right)
how can I write those characters in XML ??
will they be displayed correctly in android devices ??
Whenever this happens, I just uninstall the apk from the device itself and then try installing again using Android Studio.
In terminal window write "adb kill-server",and then run app again or uninstall the app from the phone and run again
Related
I'm using this command for getting UI Elements/XML of Apps based on WebView. In this case, I'm using the UPS app from the Play Store. This app is WebView based. Right now my device its using
"Android System WebView (Chromium) 99.0" i also tried "Bromite System WebView" but without success.
Sometimes, the dump actually work and I get the UI Elements and the xml file, but in some cases the xml file is empty, giving me nothing.
Command:
adb shell uiautomator dump /sdcard/file.xml
I have an Android /Kotlin App that reads JSON from:
https://www.androdocs.com/files/uploads/original/sample-json-data-1567767983.txt
When I use the exact same app and read from:
http://www.makumaku.de/test.txt
it works from Android Studio Emulator.
But if I test the apk from my mobile, I can read only from the first txt-file. the second -txt files results in a white screen.
-> why is that/how can i make http://www.makumaku.de/test.txt -file be readable on mobile, too? thx
android:usesCleartextTraffic="true"
was the solution, if someone needs it, too
After installing the .apk file in my device ,when i am trying to open it it is saying Unfortunately the application has stopped.
Its working fine on my Rhomobile's Android Rhosimulator,then I cant understand why it is saying so.
Update:
Today I built the .apk file in my local machine which size is 11mb compare to the size of the .apk file which I had built on Rhohub which was 3.5mb,One interesting fact is that the file built on local machine is working but it has created 2 more problems:
1. The .apk file size is too much for a simple application which my fellow developer had built purely on android and java and it was 1 mb.
2. The css file which I has included is working some time when I open the application and some times it doesn't work.
Guys can you help me to reduce the file size I know that being cross platform(Rhomobile) size may be large but 11 times more is too much.
Ok guys I dont know how it happened, I think because I didn't try to run the application with any other android versions.
So finally my application was created successfully and built with only 2.5mb.
Same is the case with me. I just have Rholog.txt and i have a question, do we need Android SDK on local system configured in Rhostudio to make the app work on actual android device.
For testing i use rhosimulator inside rhostudio.
I have developed an Android app using Appcelerator Titanium. This app will create a file in applicationDataDirectory and install a database as well.
If run on emulator, I can locate those files using "adb" command. But how about on Android device? Can I use the "My Files" app to view those file I created? (since I can see files created by other application there.)
Moreover, I expect once I removed the app on device, it will automatically remove the related files and database. Is that true?
Because I found that even I removed the app from the device, the database seems left behind. I can tell because after deleting app and re-run on device(from Titanium), it show previous data.
I am using Ti SDK 2.0.1GA2, Android Runtime V8. And using Samsung Galaxy Tab for testing.
Thanks in advance.
Application Private Data files are stored within <internal_storage>/data/data/<package>
Files being stored in the internal storage can be accessed with openFileOutput() and openFileInput()
When those files are created as MODE_PRIVATE it is not possible to see/access them within another application such as a FileManager.
On Android 4.4 KitKat, I found mine in:
/sdcard/Android/data/<app.package.name>
Use Context.getDatabasePath(databasename). The context can be obtained from your application.
If you get previous data back it can be either a) the data was stored in an unconventional location and therefore not deleted with uninstall or b) Titanium backed up the data with the app (it can do that).
You can get if from your document_cache folder, subfolder (mine is 1946507). Once there, rename the "content" by adding .pdf to the end of the file, save, and open with any pdf reader.
This is a simple way to identify the application related storage paths of a particular app.
Steps:
Have the android device connected to your mac or android emulator open
Open the terminal
adb shell
find .
The "find ." command will list all the files with their paths in the terminal.
./apex/com.android.media.swcodec
./apex/com.android.media.swcodec/etc
./apex/com.android.media.swcodec/etc/init.rc
./apex/com.android.media.swcodec/etc/seccomp_policy
./apex/com.android.media.swcodec/etc/seccomp_policy/mediaswcodec.policy
./apex/com.android.media.swcodec/etc/ld.config.txt
./apex/com.android.media.swcodec/etc/media_codecs.xml
./apex/com.android.media.swcodec/apex_manifest.json
./apex/com.android.media.swcodec/lib
./apex/com.android.media.swcodec/lib/android.hidl.memory.token#1.0.so
./apex/com.android.media.swcodec/lib/libcodec2_soft_common.so
./apex/com.android.media.swcodec/lib/android.hardware.graphics.mapper#2.0.so
./apex/com.android.media.swcodec/lib/libcodec2_soft_vorbisdec.so
./apex/com.android.media.swcodec/lib/libcodec2_soft_h263dec.so
./apex/com.android.media.swcodec/lib/libhidltransport.so
./apex/com.android.media.swcodec/lib/libcodec2_soft_h263enc.so
./apex/com.android.media.swcodec/lib/libcodec2_vndk.so
./apex/com.android.media.swcodec/lib/android.hardware.graphics.mapper#2.1.so
./apex/com.android.media.swcodec/lib/libmedia_codecserviceregistrant.so
./apex/com.android.media.swcodec/lib/libhidlbase.so
./apex/com.android.media.swcodec/lib/libcodec2_soft_aacdec.so
./apex/com.android.media.swcodec/lib/libcodec2_soft_vp9dec.so
.....
After this, just search for your app with the bundle identifier and you can use adb pull command to download the files to your local directory.
I'm getting an error from the emulator while it's starting. I know that there is a known issue with the ADT Plugin and the user home, but I think my problem is a little different.
When I try to launch the emulator I'm getting this error:
PANIC: Could not open AVD config file: C:\Users\Adrián\.android\avd\sda.avd/config.ini
As you can see the username is changed from Adrián (Which is configured in the ADT) to Adrián and it's not recognized by the system. I tried to set the ANDROID_SDK_HOME and user.home variables but it's not working.
I guess that the problem is the accent in my username. Any ideas?
Regards.
Well I found a workaround:
The problem is that if you have a username with latin, cyrilic or other non english character it's going to fail.
The steps I followed to solve it were:
Copy directory "[emulator_name].avd" to some place where the path will not contain special symbols symbols (I placed the file in "D:\Emulators[emulator_name].avd).
Open the file [emulator_name].ini in your first directory (In my case C:\Users\Adrián.android\avd)
Change "path=C:\Users\Adrián.android\avd[emulator_name].avd" to "path=D:\Emulators[emulator_name].avd"
Save, close and relaunch your emulator.
As Nucklear said the problem is the character coding:
My solution:
Open the emulator ini file with a text editor (e.g. PSPad) and change the default UTF-8 coding to your country default code which contain the non-english letters( in my case ISO-8859-2 ). Maybe after the change you need to rewrite those characters what cause the problems.
The ini files are in the ...Users\UserName.android\avd directory and named like the emulator you created before with the AVD manager.
(Sorry for my bad english.)