yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Nick3047:
I am trying to create a flashlight app with a strobe (blink) effect which I can change with a SeekBar (to change the frequency of the strobe).My goal is that I would be able to change the frequency while it's ON (blinking) and if the Seekbar value goes to 0 the Flash should be ON(without strobe/blinking). My problem is that I can turn it ON (with a Switch Btn, but if I increase the frequency once I am not able to turn OFF the strobe (but the Flash is still ON without blinking) with the Seekbar. If I put the Seekbar value to 0 it's still blinking with the lowest frequency.

I would be so glad if you could help me.

Camera cam;

Parameters camParams;

boolean hasCam;

int freq;

StroboRunner sr;

Thread t;

SeekBar seekBar;

Switch mySwitch;

SeekBar skBar;
[MENTION=439709]override[/MENTION]

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

mySwitch = (Switch) findViewById(R.id.mySwitch);

// set the Switch to off

mySwitch.setChecked(false);

//now you need a listener to check changes in state

mySwitch.setOnCheckedChangeListener(new OnCheckedChangeListener() {

[MENTION=439709]override[/MENTION]

public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {

turnOnOff(isChecked);

}

});

skBar = (SeekBar) findViewById(R.id.seekBar);

skBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {

[MENTION=439709]override[/MENTION]

public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {

freq = progress;

}

[MENTION=439709]override[/MENTION]

public void onStartTrackingTouch(SeekBar seekBar) {

}

[MENTION=439709]override[/MENTION]

public void onStopTrackingTouch(SeekBar seekBar) {

}

});

}
[MENTION=439709]override[/MENTION]

protected void onResume() {

super.onResume();

try {

cam = Camera.open();

camParams = cam.getParameters();

cam.startPreview();

hasCam = true;

}catch(Exception e){

}

}

private void turnOnOff(boolean on){

if(on) {

if(freq != 0){

sr = new StroboRunner();

t = new Thread(sr);

t.start();

return;

}else{

camParams.setFlashMode(Parameters.FLASH_MODE_TORCH);

}

}else if(!on){

if(t != null){

sr.stopRunning = true;

t =null;

return;

}else{

camParams.setFlashMode(Parameters.FLASH_MODE_OFF);

}

}

cam.setParameters(camParams);

cam.startPreview();

}

private class StroboRunner implements Runnable {

boolean stopRunning = false;

[MENTION=439709]override[/MENTION]

public void run() {

Camera.Parameters paramsOn = cam.getParameters();

Camera.Parameters paramsOff = camParams;

paramsOn.setFlashMode(Parameters.FLASH_MODE_TORCH);

paramsOff.setFlashMode(Parameters.FLASH_MODE_OFF);

try {

while (!stopRunning) {

cam.setParameters(paramsOn);

cam.startPreview();

Thread.sleep((100 - freq)*1);

cam.setParameters(paramsOff);

cam.startPreview();

Thread.sleep((100 - freq)*1);

}

}catch(Exception e){

}

}

}

}
[Samsung Galaxy S7 Questions and Answers] subyfan:
Good day, fellow XDArs. Each time I select system update in the settings menu, Settings force closes. Anyone know what may be causing this? S7 is rooted, but not modified extensively, otherwise. Thank you in advance for the help.

Cheers!
[Sprint Samsung Galaxy S7 Edge Questions & Answers] Mr_cao:
** Magisk post-fs mode running...

** Magisk post-fs-data mode running...

* Preparing modules

* Stage 1: Mount system and vendor mirrors

* Stage 2: Mount dummy skeletons

Mount: /dev/magisk/dummy/system/lib/soundfx

* Stage 3: Mount module items

Mount: /magisk/v4a/system/lib/soundfx/libv4a_fx_ics.so

Mount: /magisk/v4a/system/etc/audio_effects.conf

* Stage 4: Execute module scripts

post-fs-data: /magisk/v4a/post-fs-data.sh

post-fs-data: /magisk/xposed/post-fs-data.sh

Xposed: Mount: /magisk/xposed/system/lib64/libsigchain.so

Xposed: Mount: /magisk/xposed/system/lib64/libart.so

Xposed: Mount: /magisk/xposed/system/lib64/libart-disassembler.so

Xposed: Mount: /magisk/xposed/system/lib/libsigchain.so

Xposed: Mount: /magisk/xposed/system/lib/libart.so

Xposed: Mount: /magisk/xposed/system/lib/libart-compiler.so

Xposed: Mount: /magisk/xposed/system/bin/patchoat

Xposed: Mount: /magisk/xposed/system/bin/oatdump

Xposed: Mount: /magisk/xposed/system/bin/dex2oat

Xposed: Mount: /magisk/xposed/system/bin/app_process64

Xposed: Mount: /magisk/xposed/system/bin/app_process32

* Stage 5: Mount mirrored items back to dummy

Mount: /dev/magisk/mirror/system/lib/soundfx/libvisualizer.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libreverbwrapper.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libmyspace.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libldnhncr.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libexynosvisualizer.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libeffectproxy.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libdownmix.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libbundlewrapper.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libaudiosaplus_sec.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libaudiopreprocessing.so

Mount: /dev/magisk/mirror/system/lib/soundfx/libaudioeffectoffload.so

** Magisk late_start service mode running...

service: /magisk/phh/service.sh

phh: Live patching sepolicy

phh: Moving and linking /sbin binaries

phh: Mounting supath

phh: Starting su daemon
[Sprint Samsung Galaxy S7 Edge Questions & Answers] lvpre:
Won't work on our phones. We are lucky just to have root
[X Style (Pure) Q&A, Help & Troubleshooting] alexnaoumi:
Hello everyone, I did some searching on what I'm going to ask but it seems as though all I've read were due to rooting and pertained to logins.

I have a new Moto XPE running the stock Sept. 1st Patch. I can log into Snapchat just fine, my issue lies after I'm using the app. Messages won't load in Snapchat and stories become stock on loading as well. On some Snapchat stories that are loading, after looking at a few images, the screen goes black and is again stuck on loading. Eventually the app crashes and sometimes the phone will crash as well to the point where other apps like YouTube just won't open up and the phone will either reboot on its own or require one from myself manually. Has anyone with a Moto XPE or Moto X Play experienced any of the issues I've described?

Thank you.
[X Style (Pure) Q&A, Help & Troubleshooting] jDally987:
Holy crap, I thought it was just me, or that I was just going crazy.

Weird thing is I only started noticing any problems at all when I flashed from stock to a few of the various Nougat builds (CM14, then AICP, back & forth a couple times, then RR) which all have camera driver issues. I noticed half the time the camera wouldn't load upon starting snapchat, or if it did, it would take ~10 full seconds to change from the blank black screen, and sometimes if I would flip it to the front camera or vice versa, it'd just hang indefinitely.

That's the primary reason I switched back to stock a few days ago - I use snapchat A LOT and nougat just doesn't have enough cool features to justify one of my most-used apps basically being crippled to the point of not working the majority of the time. But once I restored my stock backup (not the September security update, the one before it) the camera started up fine in SC but I started getting EXACTLY all the problems you described.

The general consensus seems to be that SC is a super poorly-coded app on Android to begin with, but this must be a recent thing as it makes it downright unusable. I'm actually in the process of going back to 7.1.1 because that still works better than what the app's been doing lately. I wonder if it's happening on devices other than the MXPE?
[X Style (Pure) Q&A, Help & Troubleshooting] alexnaoumi:
It happened on my BlackBerry Priv too. I just switched over from that device a few days ago
[X Style (Pure) Q&A, Help & Troubleshooting] iks8:
I'm on stock 6.0.1 and I don't have any big issues with snapchat, the only one is that sometimes camera is very dark at start and I have to go to messages and back to camera to fix that
[X Style (Pure) Q&A, Help & Troubleshooting] BruceWayne54:
Yeah same here, it can get a little laggy sometimes for me but I just log out and back in and it works fine.
[X Style (Pure) Q&A, Help & Troubleshooting] xgerryx:
This might not be here nor there for this specific issue, but if you use Xposed/Snapprefs/rooted etc etc...One thing I noticed that REALLY causes a lot of lag with snapchat is overlays. Especially the FB Messenger app. If you have those chat heads on your screen with Snapchat open as well, things are basically unusable until you get back to the home screen and force close both apps. Could be happening without Xposed as well. Just a thought.

On a side note about Snapchat in general- it has always run like crap on every phone I've owned.
[X Style (Pure) Q&A, Help & Troubleshooting] alexnaoumi:
Snapchat kept screwing up, even tried the beta. Decided to try Casper and so far it's working great
[General Topics] bender06:
would someone be so kind to tell me how this little app is called? i am not able to fine it... thanks!
[General Topics] ddaann78:
its the today wireless application built in wm6 and 5

hack into your phone and display your today wirless application :)
[General Topics] snotboy32:
here is how: start-settings-personal, today,items. And check wireless.
[General Topics] kelpi:
BatteryStatus perhaps is in order?
[General Topics] xeno1:
Thats called wireless today. The easiest way to find it is to use google search instead of xda's search.
[Huawei P9 Questions & Answers] morro23:
Hi all,

I am facing severe problems with my P9.

Initial Situation:

Started with a brand new P9 with T-Mobile cust Firmware C150

What I did:

I unlocked bootloader successfully and rooted the phone. Then changed OEM info from C150 to C432. So far so good.

After that P9 booted into factory restore and restored itself into C900 Firmware. Bootloader was locked after that.

I unlocked bootloader successfully for a 2nd time.

Current Situation:

Now when I boot the phone it says: "Your device has been unlocked and can't be trusted" .... Your device is booting now... => But it never boots into OS. It stucks here forever.

When I press vol up and down and power for some seconds I can at least access TWRP. When I try to reboot in TRWP it says "No OS Installed".

But how can I do a stock recovery or install a working Android OS in order to get the P9 into normal boot Modus again?

Please help me. :confused:

Solution summary:

Issue solved by using the dload method to change to C432B182:

http://xdaforums.com/p9/development/stock-rom-dload-file-p9-eva-l09-b136-t3382818/page1

Thx a lot
[Huawei P9 Questions & Answers] panosm763:
Hope this helps

[YOUTUBE]https://www.youtube.com/watch?v=JZVsIKtdgV4[/YOUTUBE]

https://www.youtube.com/watch?v=JZVsIKtdgV4
[Huawei P9 Questions & Answers] Mostar088:
If u have a sd card u can put it in another phone if u have and create a dlod folder, put the Firmware u need in it and then switch it to your P9 and try to upgrade. Since your phone is C900 i think something went wrong in the debranding so use a full stock C150 firmware or try with this B136 Firmware with dt and hw folder toghether with update.app in dload folder.

http://xdaforums.com/p9/development/stock-rom-dload-file-p9-eva-l09-b136-t3382818/page1
[Huawei P9 Questions & Answers] morro23:
[MENTION=3526837]panosm763[/MENTION]: Thx for the Video link. I worked according to the same but after changing OEM info phone booted with red warning Screen and installed a fresh C900 Firmware Version. Then after opening bootloader again, SRK Tool cannot connect to the phone anymore maybe due to the fact that usb Debugging mode is not turned on (and cannot be turned on because OS is not reachable)

[MENTION=4876367]Mostar088[/MENTION]: I tried the dload method yesterday with the Firmware from the link you shared. Unfortunately without success. The phone did not recognize the Firmware and did not load the same. Maybe because bootloader is still open? I have no clue why this method is not working :(
[Huawei P9 Questions & Answers] morro23:
Issue was solved.

It worked out fine using the dload method described in here:

http://xdaforums.com/p9/development/stock-rom-dload-file-p9-eva-l09-b136-t3382818/page1

I am now on C432B182 :good::)
[Huawei P9 Questions & Answers] MyTiplay:
Link doesnt work for me :? please again ?
[Huawei P9 Questions & Answers] morro23:
Fixed :good:
[Huawei P9 Questions & Answers] panosm763:
Sorry for being late, i had no spare time the past days. Glad you fixed your problem
[ONE Q&A, Help & Troubleshooting] androidarmy:
Hi every1

I got opo form swappa but since the day 1 I had a problem. This phone continuously lost signal for 2-8 sec. I tried everything from go back to stock flashing different ROMs and now I am on Android ice cold project 7.1 but nothing works for me.

Any help would greatly appreciated thank you so much.
[ONE Q&A, Help & Troubleshooting] bablu048:
Flash 44s modem. https://xdaforums.com/oneplus-one/general/ref-oneplus-one-modem-collection-t2858734
[ONE Q&A, Help & Troubleshooting] androidarmy:
Thanks for the respond. Do I need to go back to stock (CM 13)? I'm currently running AICP 7.1
[ONE Q&A, Help & Troubleshooting] bablu048:
no, just flash the modem on any rom, should work. If not go back to CM.
[ONE Q&A, Help & Troubleshooting] androidarmy:
Thanks I'll try these
[ONE Q&A, Help & Troubleshooting] androidarmy:
Unfortunately none of them worked for me :(

Any other solution???
[G3 Q&A, Help & Troubleshooting] TheLogicalGamer:
I was looking to theming some of my apps & thought I'd start out simple. So I decomipiled my LGDownloadsUi.apk (pull from decompiled system.img) & copied the necessary framework files, installed them, and decompiled.

I looked in the res/values directory found the colors xml & changed the text color hex code.

Upon recompiling the values folder is not in the new apk. (Since it's a system app I need to copy the new xml from the newly compiled apk to the original to maintain the sig.) I tried simply deleting everything except for meta folder & moving everything over, but that result s in getting stuck in tmo splash screen. Am I missing something? Is editing the values xml files only viable in non system apk's? Do they get compiled into another file perhaps?

My device is a LG G3 D851 running MM 6.0

For decompiling I'm using the latest version of apktool.

Also I created a custom zip containing app & priv-app no framework, as my phone already has the framework files. Do I need to flash the same framework files from the decompiled system.img as well over my current ones? Thanks for any help. :)
[G3 Q&A, Help & Troubleshooting] TheLogicalGamer:
I discovered that you can edit those xml's build the apk, the copy android manifest.xml and meta folder into the build folder. Then rebuild the apk to avoid signature issues. Instead coping the edit xml's into the new apk.
[Honor 8 Questions & Answers] spix123:
After turning on power saving mode then turning it off, brightness is changing when opening some apps like dialer and google chrome. Similar to EMUI 4.1 when power mode was set to smart but it is happening even when off in EMUI 5.

Before turning on power saving mode for the first time, brightness was always constant.
[Honor 8 Questions & Answers] clsA:
It's a known issue and was reported over a month ago on b317.

It happens without ever using power saver on some phones
[Honor 8 Questions & Answers] spix123:
In emui 4.1, brightness is supposed to reduce in some apps whilst set to 'smart'

In emui 5 when you enabled power saving mode, it reduces the overall brightness. But when you turn it off, the overall brightness goes back to normal but now the brightness is acting like it did in emui 4.1 whilst set to smart. It reduces in some apps. Tried restarting phone but doing the same thing.

I'm using Chinese rom b368 released 2 days ago
[Honor 8 Questions & Answers] spix123:
Is there any fix? Really annoying me every time I open up chrome the brightness changes, then again when you exit it. How do bugs like this even get past testing, so obvious.

Also is your option for reducing screen resolution working? Doesn't seem to do anything for me, worked fine in 4.1. Now it just stays at 1920x1080 when I enable it instead of dropping to 1280x720
[Honor 8 Questions & Answers] yalokiy:
Not working, noticed that too!
[Honor 8 Questions & Answers] DarkGuyver:
This is probably due to the fact that EMUI 5 is still in it's Beta stage and has allot of bugs that need to be ironed out before it's commercial release.
[Honor 8 Questions & Answers] piskr:
On second thought I believe that screen brightness and connected power management is managed much worse then under EMUI 4. Power saving is accessible only through settings and it takes over screen brightness management completely. Besides it doesn't work well.
[Honor 8 Questions & Answers] DarkGuyver:
Hopefully the actual release of Nougat with fixes these problems.
[Honor 8 Questions & Answers] clsA:
[MENTION=5414860]spix123[/MENTION] putting brightness too 100% works as a temp workaround
[Honor 8 Questions & Answers] spix123:
Yep but that's no go indoors, personally I always leave brightness at around 60% unless its really bright outside
[Honor 8 Questions & Answers] clsA:
I did it, you get use to it pretty quickly
[Honor 8 Questions & Answers] spix123:
I'm on the very latest China release which is much more frequent than international and the bug is still there. Hopefully its not one of those bugs that people aren't reporting enough and will be stuck in it for months
[Honor 8 Questions & Answers] ert650:
Where can I fill bug reports. Those things are annoying.

Brand new phone, updated to nougat throu HiCare. Brightness in chrome, gmail and file manager changes every time when I open them. Also the powersaving option with lower resolution doesnt work for me either.
[Honor 8 Questions & Answers] jAS0N99:
I have the same issue, did you fix it?
[Honor 8 Questions & Answers] fakeidealist:
I realized that lowest brightness level in EUMI 5 is brighter than in EUMI 4.1 ??
[Honor 8 Questions & Answers] spix123:
Really stupid bug that shows how poor emui developers are. Still in latest chinese developer rom, no sign that developers are even aware of the problem. Don't know how so few little people are reporting this, must be blind.

It should only happen when power saving mode is enabled like it did in older emui.

It causes so many problems. I have screen set to my preferred brightness then it dims so much when I open browser that I have to increase brightness every time. The only work around is to use 100% brightness all the time, then it does not dim the screen but this just a stupid waste of battery and bad for your eyes indoors.
[Honor 8 Questions & Answers] spix123:
Is it still there on latest EU rom?

I'm using latest chinese developer updated yesterday and still happening
[Honor 8 Questions & Answers] Akhayev:
Yeah its still there on emui 5.0 and 5.1 i have mate 9 pro and p10 plus and both of them has the same issues
[Honor 8 Questions & Answers] immichao:
Ok, now we are in november and the problem persists -_-
[XDA Assist] weeksauce:
I am trying to download the samsung galaxy avant for metro pcs drivers directly from the samsung website and they wont install properly everything else worked hence the reason they are not on the list. I cant connect my phone to my pc other wise because I am trying to access the internal storage of the phone. (xda wont let me post links so if you need the screenshot tell me)
[XDA Assist] :
Greetings and welcome to assist. Try these usb drivers here

https://xdaforums.com/galaxy-s3/themes-apps/usb-drivers-samsung-usb-drivers-mobile-t1655286

Good Luck

Sawdoctor
[XDA Assist] weeksauce:
that didn't work you just gave me the same drivers as the ones from the official website and on a slow ass pay-for-speed website. I need to know why my drivers don't want to install themselves properly and how I can make them work. is it a reg error or is there a bug with the software?
[Droid Turbo 2 Q&A, Help & Troubleshooting] sklks:
Hi everyone,

I have a Moto X Force and I'm having the current erros while flashing, already google about it but no solution so far:

Anyone came across with the same errors?
[Droid Turbo 2 Q&A, Help & Troubleshooting] sam00561:
Hi iff you have TWRP recovery on the phone try flashing the mx force rom from the development section it is pre rooted stock rom and you can flash it through twrp so their will be no need for manual flash. Hope this helps.
[Lenovo Yoga Book Questions & Answers] martinezf:
Is the Lenovo Yoga Book compatible with USB-OTG?, with which?
[Lenovo Yoga Book Questions & Answers] danjac:
yes, otg works. have used it with keyboard, printer and usb flash drive already.

used the following adapter
[Lenovo Yoga Book Questions & Answers] martinezf:
Thank you very much, danjac. I will try.
[Lenovo Yoga Book Questions & Answers] bene89:
Hey, can you help me. Since Android 7 USB OTG didn't work with printers and HDD with the YogaBook.

After a repair (Mainboard and usb were changed) my book is on android 6 and USB OTG works well. Can you try with an android 7 device if otg runs so I can update my book?

Greetings B Peters
[Lenovo Yoga Book Questions & Answers] danjac:
Yes, it works. Just tested an external hdd and a mouse.
[Lenovo Yoga Book Questions & Answers] bene89:
Thank you lot for your fast answer. I'll give it a try.
[Xperia Z3 General] brunito777:
Finally I was able to do root on my XPERIA Z3 DUAL (D6633) with locked bootloader, installed XPOSED INSTALLER, RECOVERY TWRP running. THANKS XDA COMUNITY
[Xperia Z3 General] ancestrale:
hello brunito,

may i ask you wich one tutorial did you followed?

thx,

andrea
[P8lite General] Lemon476:
Hi, I don't even know if it's possible but, our P8 Lites wont receive emui 5 update so.. Can anyone make an Emui 5 port?

Thanks for reading!
[P8lite General] spirto82:
Emui 5 is based on Android 7. So I guess it's very difficult to create a custom rom for this device.
[P8lite General] Vinnipinni:
There will be LineageOS android Nougat. But EMUI 5 sounds like a waste of time. Most people enjoy stock more than EMUI. Unless you find a developer that's willing to spend a lot of time on this, nope, no EMUI 5
[P8lite General] Lemon476:
Yeah I know about that, I was just asking because I tried EMUI 5 and I liked it a lot, but I like AOSP-based rom as well.

Thank you for answering!

Ciao!
[P8lite General] zhaozihanzzh:
If HUAWEI Y6Ⅱ (Honor 5A) has EMUI 5.0, we can try to port it.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] sadik007:
Hi...

I own 8525, very happy. Few days a go I updated radio drivers from this page with major improvements in sound quality.

Now the question, I friend of mine has eten m700. He asked me where to get drivers? Any website or so? His phone is having a lot of problems, bad phone calls and low voice?

thanks in advance?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] sadik007:
found it

found it

http://eten-users.eu/index.php?showtopic=6766
[ONE Q&A, Help & Troubleshooting] sshalt717@gmail.com:
see title, cyanogen mod, powers on, charges, calls come in, notifications come in, but unresponsive to swiping.

oneplus support say screen can be repaired but data will be wiped lost in the process. no ifs ands buts about it. no point in repair through them if that happens.

want to recover data/media. usb computer window recognizes the device but doesn't show any files or folders to import/export. twrp recovery installed. help. thanks.
[ONE Q&A, Help & Troubleshooting] Cholerabob:
Connect usb mouse to OTG cable you will be able to access files.
[T-Mobile LG V10 Q&A, Help & Troubleshooting] rowihel2012:
i forgot my password

how to manualy reboot to twrp to factory reset ?