yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] tefracky:
Hello,

first of all, english is not my foreign language, but I hope you understand:

I made an app (only WebView) for opening a website. I want to make the app for offline-using. So I used getSettings().setAppCachePath() and getSettings().setCacheMode(WebSettings.LOAD_CACHE_ONLY).

When I open a page connected to Wifi it works. But open the same page again it doesn't work and it's only shown: ERR_CACHE_MISS

What is wrong?

Here is my code:

public WebView mWebView;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tischtennis);

mWebView = (WebView) findViewById(R.id.activity_main_webview);
mWebView.setWebViewClient(new MyAppWebViewClient());

// Enable Javascript
mWebView.getSettings().setJavaScriptEnabled(true);

// Cookies
CookieManager.getInstance().setAcceptCookie(true);

// CookieManager.getInstance().setAcceptThirdPartyCookies(true);

// Caching
mWebView.getSettings().setAppCacheMaxSize(1024*1024*10);
String cacheDir = getApplicationContext().getCacheDir().getAbsolutePath();
mWebView.getSettings().setAppCachePath(cacheDir);
mWebView.getSettings().setAppCacheEnabled(true);
mWebView.getSettings().setAllowFileAccess(true);

// Offline Support
if ( isNetworkAvailable() ) {
mWebView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
} else {
mWebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ONLY);
}

mWebView.loadUrl("www........");
}

private boolean isNetworkAvailable() {
ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(getApplicationContext().CONNECTIVITY_SERVICE);
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
return activeNetworkInfo != null && activeNetworkInfo.isConnected();
}

And my Manifest-permissions:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
[LG G5 Questions & Answers] clarenze:
Hi all,

My LG G5 is in a bootloop and I cannot even access the recovery.

I guess I made something very, very stupid. Can anyone help me? Please??

Here is what I did:

- Android 6.0 stock ROM (v10i)

- Encryption is on

- unlocked bootloader

- rooted using the official LG way => everything worked fine

- installed latest TWRP => everything worked fine

- entered TWRP and installed Nougat bootloader (LG-H85020K-Flashable.Bootloader.zip) from the v20 upgrade (I actually planned to installed FulmicsROM-4.5 and the manual said I need the Nougat bootloader)

=> bootloop

The device keeps saying "The device software cannot be checked for corruption. Press The power key to pause boot". I did that and ran

fastboot devices

on my Windows PC, but no devices showed up. I have used fastboot in the past, so I am sure that the drivers work.

I also tried LG Bridge, but it does not detect anything.

Does anyone have any idea how I can rescue my device?

Regards

Clarenze

Yippee! I found a solution:

- install LGUP + drivers

- turn off phone

- hold VOLUME UP key and connect USB connector to PC => Phone displays "Firmware Upgrade"

- start LGUP => LGUP detects the phone and allows to flash a kdz file

My phone works again and the day is saved!
[General Questions and Answers] armanzuberi:
Hello sir,

Can you plz tell me how to add music app in extreme power saving mode or else any app which turn smartphone in a simple audio player.
[Honor 8 Questions & Answers] s14tam:
Is installing Gapps (opengapps) on stock nougat rom possible? The reason why I ask is because I am on RRemix rom and while love having the stock android experience with all the stock google apps (especially dialer with caller id), I hate the compromises I have to make such as the poor camera performance, no fingerprint button function, and random reboots that doesn't seem to be getting fixed any time soon.

So my idea is to go back to stock but before I spend 16 dollars to use the app to reset it back to stock rom (all the free methods i've tried gets me stuck on stock rom with NRD-TestKeys problem), I'd like to know if anyone has tried to flash opengapps to get google dialer and assistant installed.

Any help appreciated. Thanks
[Android Q&A, Help & Troubleshooting] mie_shariff:
Hi.

I have bricked my Lenovo YT3-850M tablet last 2 weeks. Bricked means suddenly the device can't turned on and couldn't even charged.

Luckily it is still under warranty and Thank God I have just collected the tablet, they said there is a problem with the motherboard.

But now I want to tell the truth what is actually happening.

Actually I have rooted the tablet before using KingRoot. But I noticed this tool has slowed down my tablet and it is really difficult to remove the KingRoot. So I was thinking to do the manual root via TWRP.

So I was lead to this - http://lenovo-forums.ru/topic/14846...x50lm-расширенное-рекавери-twrp-by-sevenmaxs/

This is when the problem start.. After installing this via the batch file, I was overwhelmed with a nice customized GUI of TWRP. But the bad thing is that I could hardly interact with the screen.

So I installed another TWRP from this thread..

https://xdaforums.com/android/general/guide-lenovo-tab3-8-tb3-850f-t3559786

The way I installed it I flash it using that SevenMaxs TWRP into the recovery partition. It shows flash completed without any error.

Then when I press reboot then the tablet turned dead already. Can't even charged.

But it still detected if connected via PC as unbrick_qhsusb_bulk

So any opinion how could this happen?

Thank you in advance.
[Android Q&A, Help & Troubleshooting] mie_shariff:
Any help for me please?
[Android Q&A, Help & Troubleshooting] mie_shariff:
https://xdaforums.com/thinkpad-tablet/general/guide-lenovo-yoga-tab-3-8-yt3-850f-how-t3597293
[Huawei Mate 10  Guides, News, & Discussion] warea:
Cast your vote.

You might have more than one favorite, but vote for the one you are actually getting.

PS: Attached pic only indicative. Colors might vary in different real life images.
[Huawei Mate 10  Guides, News, & Discussion] gm007:
I'm still not sure if i will get the pixel 2 xl or mate 10 pro but if i go for mate 10 pro than titanium grey.
[Huawei Mate 10  Guides, News, & Discussion] warea:
I just shortly checked out the Mate 10 Occidental black and Mocha brown at Huawei store. Until then i was preferring the Mocha brown but in real life its much harder to pick a favorite from these two. The mocha brown looks distinct and eye catchy in the back with a wide array of colors reflecting at different angles while still looking premium and business class without getting too much funky. However on the front, i was feeling it wasn't dark enough for my taste and sometimes felt more like a typical gold color phone we always seen and not the bronzish mocha brown.

The front of the Occidental black instead looked quite dope camouflaging the whole bezels with the front fingerprint and screen (when turned off). The back looked quite nice as well but its not the type of color you can quickly distinguish from a distant (from the color of Note 8 for example) and get noticed.
[Huawei Mate 10  Guides, News, & Discussion] Hawkery:
Before I recieved the mocha brown as press unit, I was hoping for the blue one, as i really loved the dazzling blue P10.

But I really like the mocha brown now! Wouldn't trade it for a diff color!
[Huawei Mate 10  Guides, News, & Discussion] ramheer:
Yes I agree, I have the mocha brown too
[Huawei Mate 10  Guides, News, & Discussion] amonrei:
Black. Still waiting for delivery argh. XD
[Huawei Mate 10  Guides, News, & Discussion] jvidia:
Mate 10 (non pro) Black here.

In Europe where can I find the non pro version?
[Huawei Mate 10  Guides, News, & Discussion] warea:
Midnight Blue Mate 10 pro and Champagne Gold Mate 10

https://www.youtube.com/watch?v=6_nQ7a8FhE4&index=5&list=WL
[Huawei Mate 10  Guides, News, & Discussion] kolembo:
Mocha...
[Huawei Mate 10  Guides, News, & Discussion] Jon St:
I got the champagne gold (but it looks silver to my eyes...)
[Huawei Mate 10  Guides, News, & Discussion] Name108:
I have Mocha Brown, and I had doubts before, but am happy with it. Thought about titanium, but I think Mocha gives better mood, and I use this superphone with included transparent cover, so back is not so shiny with case.
[Huawei Mate 10  Guides, News, & Discussion] strekib:
Blue.. Nice.

Odesláno z mého BLA-L29 pomocí Tapatalk
[Huawei Mate 10  Guides, News, & Discussion] Binmasoud:
hi .which colour should i go here in mate 10 pro stil got stuck seems the colour so confusing when i check them in webs
[Moto G5 Plus Questions & Answers] Kae.ZA:
Hi! :)

I have been unable to flash TWRP on to my moto G5 Plus (XT1685). Every time I have attempted it says "Image is corrupted/unsigned". Is there a bug I'm unaware of or is there an issue with my device.

Device Details:

RAM: 4GB

ROM: 32GB

SKU: XT1685

Dual Sim Card

NFC

Please help!

Thanks in advance!:)
[Moto G5 Plus Questions & Answers] manos78:
Hi,

You have unlocked your bootloader?

If NOT read:

https://xdaforums.com/g5-plus/how-to/unlock-bootloader-lenovo-motorola-moto-t3581133

If YES then install this TWRP and not other:

https://xdaforums.com/showpost.php?p=74091290&postcount=412

and don't worry about error messages (are normal).

Regards!
[Moto G5 Plus Questions & Answers] Kae.ZA:
Hi

I have unlocked my bootloader and I attempted again to flash with zero success. I still get the "(bootloader) Image not signed or corrupt" :mad:
[Moto G5 Plus Questions & Answers] SPGaganadruva:
unable to flash my Moto g5 plus

i have been trying to do flash on my mobile using twrp but its showing device not found please help me with this situation
[Moto G5 Plus Questions & Answers] ElbigodonZ:
When I inject the twrp through the computer it says that the iso is corrupted
[Xperia Z5 Q&A, Help & Troubleshooting] abhijiths362:
I am very sad that xperia z3 which is marshmallow is now has lineage os 15. But my favourite smartphone z5 (now also) has nougat and not getting lineage os 15. I am not blaming anyone but i am begging plz built lineage os 15 for xperia z5. plz plz plz.....:crying::crying:
[Xperia Z5 Q&A, Help & Troubleshooting] HoiFung:
Yes, please be patient.:highfive:
[Xperia Z5 Q&A, Help & Troubleshooting] abhijiths362:
waiting for a long time
[Xperia Z5 Q&A, Help & Troubleshooting] abhijiths362:
It's over

I think support for xperia z5 by deveopers are over . NO movement in our forum for z5 . :confused::crying::crying::crying:

Plz if any support is there remaining build oreo rom . Again I am not ordering I am begging.
[Xperia Z5 Q&A, Help & Troubleshooting] colorado48:
There's so much more than just downloading Google's AOSP Rom and modify a bunch of codes.

It will come. Just be patient. They dont get paid for this so. just. chill.

Btw, if they release an early version of the rom, it's likely to have some bugs and people like you will spam the threads so what's the rush for?
[Xperia Z5 Q&A, Help & Troubleshooting] abhijiths362:
k bro
[Xperia Z5 Q&A, Help & Troubleshooting] f4!:
All I do is just wait.. Cause they still stabilizing the hot snapdragon 810 to run their patches.. My phone also z5, but I don't know how to root at android 7.1.1.. I want to force it but I worried if it bricked.. Any suggestions?
[Xperia Z5 Q&A, Help & Troubleshooting] abhijiths362:
https://xdaforums.com/xperia-z5/general/ftf-e66xx-patched-kernels-google-drive-t3688365 go to this link.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] jockyw2001:
Most of you know how to enter the "normal" SPL bootloader where the famous tri-color screen is shown on the device display: if the device is powered off you press and hold the camera button and then press power on.

What most of you don't know is that there is also a radio bootloader aka OEMSBL. The OEMSBL is loaded just before the SPL. Just like the SPL it supports a interactive command mode with various commands. The command set available depends on the security state of your device. The most interesting command available in both states is "radata" which is normally used to flash a new radio rom. Perhaps it can be used for unbricking purposes. I will continue to research this.

(EDIT: unfortunately to enter radio bootloader by keypressing only works on security unlocked devices)

To enter radiobootloader mode:

if the device is powered off you press and hold the camera button *and* the send button and then press power on.

If it is the first time you enter this mode Windows will prompy you to install 3 drivers: a modem and 2 COM ports (diagnostics and NMEA). Use the attched drivers from the Motorola Q (it also has a qualcomm MSM7200 chipset). Look in device manager on which COM port the diagnostics port driver sits (usually COM4 or COM5). Then start MTTY and connect to that COM port. The commands you type are not echoed on your PC screen.

On a standard device (not security unlocked) following commands are supported:

radata
powerdown
setboot
GO2AMSS
rseed
pmic_vib_off
pmic_vreg
pmic_level
pmic_vib_on
rpass

On a security unlocked device (see here) there is much more:

For a help screen, use command ? or h
Available monitor commands are:
? [command]
h [command]
mb [StartAddr [Count [Filler]]]
mh [StartAddr [Count [Filler]]]
mw [StartAddr [Count [Filler]]]
setboot [0/1/2/3]
setatcmd [0:SIO/1:UART/2:USB/3:DPRAM]
setsmdloop [0:disable/1:enable]
setmpatch [0x1: CPU Freq/0x2: acoustic/0x4: simdoor/0x8: RTC]
setiot [0:Disable/1:Enable]
eraseall [erase all setting flags]
setdiag [0:USB/1:UART/2:DPRAM/3:SIO]
partition
checksum
format
setinfo
readadc
cego
setgpio
getgpio
gpio
version
powerdown
platformid
radata
showexplog [n]
usbdppulldown [n]
usbdmpulldown [n]
usbdppullup [n]
usbdmpullup [n]
Headsetpullhigh [n]
rfid
wpmic [PM_VREG] [0/1]
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] xmoo:
Damn, didn't know this.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] jockyw2001:
I would like someone with a standard Kaiser to confirm that it is possible to enter radio bootloader. My Kaiser is security unlocked and perhaps it only works in that case ...
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] xconradx:
I tried twice with my kaiser, not security unlocked. Got nothing.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] jockyw2001:
Thanks for testing, I've edited my first post.

What's written in the first post is just dry theory for most of you guys :D
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] dcordes:
to access the OEMSBL usb/serial devices in linux, you need the airprime driver which is present in mainline kernel (CONFIG_USB_SERIAL_AIRPRIME).

In the distribution I use (ubuntu) it is present as module and udev automatically loads it when kaiser is attached via usb while in OESMBL. It creates nine serial devices. In my case /dev/ttyUSB3 is the arm9 debugger.

Did somebody try the modem interface? I only get data from the arm9 debug interface.

I can confirm xconradx's finding that it is not possible to enter OESMBL while kaiser is not security enabled.

thanks a lot for the great tools!

edit: I used minicom to connect with ttyUSB3 with the following settings:

A - Serial Device : /dev/ttyUSB3
B - Lockfile Location : /var/lock
C - Callin Program :
D - Callout Program :
E - Bps/Par/Bits : 115200 8N1
F - Hardware Flow Control : No
G - Software Flow Control : No
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] borce_razor:
Very interesting. Thanks
[LineageOS Questions & Answers] kfir_frr:
I have xiaomi mi5 and and I want to update my current Lineageos version to the most updated version that appear now.

I have official lineageos (LOS14) and up-to-date twrp.

After I downloaded the file the there a messege that the phone is about to update and the TWARP will automatically loaded.

But now on TWARP what should I need to do? what are the steps?

I tryed to tap on install and go to the right file by this path: /data/data/org.lineageos.updater/app_updates

After I click on it and swipe to start an Error 7 appear on TWARP screen (I attached a screenshot)

I can't find any tutorial on web that explain that.

Thanks!
[Xperia Z5 Premium Q&A, Help & Troubleshooting] grosseader:
Hi there,

does anyone know or can develop android app, that can be used to show battery icon and percentage based on battery voltage and set up by user settings?

Problem is that battery indicator is stuck at 20%.

Phone was drowned, repaired, battery was replaced with new and second hand , other roms, custom and oem was used, rooted, calibration apps was tried, but, no success.

Led indicator indicates normally green at full charge, orange around 30% and red below 15%. Battery stamina is good, about 1,5 days use. Apps see voltage and know when battery is 100%, but.... stock android indicator stays always on 20% , show charging when plugged in, but stuck on 20%.

Tried also many button reset combinations etc...
[Xperia Z5 Premium Q&A, Help & Troubleshooting] Castlevania:
Avanced Battery Calibrator by Extended apps

Battert repair Life by Another Studio App
[Xperia Z5 Premium Q&A, Help & Troubleshooting] grosseader:
Nah, not the thing i'm asking for...
[Xperia Z5 Premium Q&A, Help & Troubleshooting] grosseader:
Any developer wanna do it ? I will pay for it please !!!
[Xperia Z5 Premium Q&A, Help & Troubleshooting] TL1981:
Hi

I just want to say that I have the same problem...only showing 20% battery.

I had problem whit the charging and left it for repair in Bangkok when I was there.when I got the phone back it only shows 20% I know the green light means I have fully charged.

So if I restart the phone when I sẽ the green light it shows 100% but not under that.

Make me so angry..only 20% and 100%

And it is werry bad becouse it will not allowing update if you only have 20%

So I hope someone have a solution to this problem..
[Xperia Z5 Premium Q&A, Help & Troubleshooting] Janp8:
Hi,

I got my battery replaced last week and since then its stuck at 20%. I have tried the method of VOlume up and off key till 3 vibrations , yellow button and off button combinations several times, but to no avail.

Please help.
[Android Head-Units] Serhatakdurul:
Hello. device MCU version of yet. (MCU needs to upgraded !!!) please help. device does not work serhat.akdurul@gmail.com

DROİD INFO RAPOR

CİHAZ

Modeli: Sofia 3GR Araç (sofia3gr_car_64)

Üretici Firma: Rockchip

Ana Bant Sürümü: SF3GR_M-26.3_cpeg_rk-r2p_bc2-20160629_111639

RIL Sürümü: IMC RPC-RIL 1.0

Derleme Numarası: sofia3gr_car_64-userdebug 6.0 .1 MMB29M eng.build.20170815.121351 release-keys

İnşa İmzası: Android / sofia3gr_car_64 / sofia3gr_car: 6.0.1 / MMB29M / build08151216: userdebug / release-keys

Önyükleyici: BOOTCORE_VER

Java VM: ART 2.1.0

OS Sürümü: Marshmallow (6.0. 1)

SDK: 23

EKRAN

Çözünürlük: 1024x600 piksel

Yazılım Yoğunluğu: 160 dpi (mdpi)

Yenileme Hızı: 58,62 Hz

İŞLEMCİ

CPU Mimarisi: x86

Kart: rk30sdk

Yonga seti: SOFİABOARD

Çekirdek: 4

İşlemci Hızı: 416 MHz - 1040 MHz

Komut Setleri: x86, armeabi-v7a

CPU Özellikleri: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush mmx fxsr sse sse2 ss ht nx rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology pni pclmulqdq monitör ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt aes lahf_lm 3dnowprefetch tsc_adjust smep erms mm_type_aliasing

CPU Düzleyici : etkileşimli

Çekirdek Sürümü: 3.14.0

Çekirdek Mimarisi: x86_64

GRAFİKLER

İşleyici: Mali-450 MP4

Bayi: ARM

OpenGL Sürümü: OpenGL ES 2.0

RAM

Toplam: 917 MB

Java Öbek: 96 MB

DEPOLAMA

Dahili: 11,7 GB

HARİCİ: Algılanamadı

BİRİNCİL KAMERA

Çözünürlük: 0,5 MP

Flaş: Evet

Video Çözünürlük: 960x472

Desteklenen Çözünürlükler:

Resim:

960x472

Video:

960x472

ÖZELLİKLERİ

Bluetooth: Evet

Bluetooth LE: Evet

GPS: Evet

NFC: Hayır

USB Aksesuar: Evet

WiFi: Evet

WiFi Doğrudan: Evet

PİL

Teknoloji:

Sağlık: İyi

SENSÖRLER

MPL Gyroscope

MPL Raw Cyrroscope

MPL Hızlandırıcı

MPL Manyetik Alan

MPL Yönlendirme

MPL Dönme Vektörü

MPL Doğrusal Hızlandırma

MPL Yerçekimi

Oluşturan Droid Bilgisi
[Samsung Galaxy S7 Edge Questions and Answers] thebiggboss180:
Hello

I would like to ask if there's any stock rom for 935fd that has less garbage installed or that has the best battery life

Thank you in advance
[Samsung Galaxy S7 Edge Questions and Answers] Arifin2307:
Superstock rom
[Samsung Galaxy S7 Edge Questions and Answers] thebiggboss180:
not modified .. i meant stock from samsung
[Samsung Galaxy S7 Edge Questions and Answers] Illyakulinych:
SM-G935U
[Android Head-Units] ystokar:
I have the xtrons PA97MTVPL. Stock dialer app sucks. Alternative apps such as true contacts etc aren't able to access dialing through bluetooth... Any ideas?
[Android Head-Units] luciusfox:
If they're using AOSP HFP-client code, then this should work;

https://github.com/lbdroid/HFPClient

If not, then you're stuck with their crapware.
[Verizon Motorola Droid Turbo Q&A, Help & Troublesh] acdslx:
i have a xt1254 with locked BL and stock 6.0.1 MCG24.251-5-5. I have suffered from battery draining by cell standby since I updated to 6.0.1. Have anyone seen this and can anyone help?

Here are what I have tried but none of them works:

1. Erase cache, user erea and reflash the stock package.

2. Root, install magisk, install xposed, install mobileradioactivefix.

3. Switch to airplane mode with only Wi-Fi enabled.
[Verizon Motorola Droid Turbo Q&A, Help & Troublesh] zhaoyun:
I came across battery drain caused by wifi and managed to remove it after resetting network config. You may see the below page for information, and in fact quite a few similar threads are on google:

https://www.androidpit.com/android-marshmallow-problems-and-how-to-fix-them

It occurs to me that after resetting the network config, the problem will come back sooner or later that need a re-reset. And I am not very sure if it works on your cellular problem indeed. But hope the above helps.

BTW, may I take the opportunity to ask a related question, anyone using a stock up-to-date firmware (mine is BL unlocked but not rooted), and the same feeling as me that, while every part of the system show that the cellular is disabled and the device is in airplane mode, the battery performance is about the same as that when the cellular is on? My usage pattern is that, I unplugged the device at 7am, and on working day morning, I turn on cellular for less than an hour and the rest of time in airplane mode, and get to around 90% at 1pm. While I was on outdoor work that requires me to turn on cellular the whole morning, the battery level is about 88%. Given that my usage pattern in both scenarios are quite similar (minimal usage of phone during working hours and basically no voice call in the latter case), is the difference between airplane mode on and off little as that?
[G Tablet Q&A, Help & Troubleshooting] giorgakis1966:
How to root Turbo-X Calltab Tablet 10.1?

I need to root this tablet and to install a custom ROM.

I have processor Mediatek MTK8321 1.3 GHz
[G Tablet Q&A, Help & Troubleshooting] delbg:
i have too calltab2gb10 and try to root with mtkdroid and it didn't work so i try root with other stock rom and now it comment black screen, this mean that device tree blob is incorrect. please giorgakis1966, send me your stock rom or only send me boot.img. Send me all stock rom
[Android Q&A, Help & Troubleshooting] JethroBaidoo:
I want to root my Samsung Tab S SM-T807V and flash with custom rom with voice calling capabilities. This device is already a GSM model and uses a sim card. i believe i should be able to make voice calls with it.

Thank you.