• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Bluetooth not working on S8 after Pie update

Has anyone else been having issues with their Samsung Galaxy S8's Bluetooth functionality ever since the Android Pie update a few weeks ago? It stopped working properly for me as soon as I updated it. What happens: I slide down the notification menu, click Bluetooth, the button becomes highlighted but if I slide the menu back up and then down again, it will no longer be highlighted. If I don't slide it back up after pressing it, the button stays highlighted but the Bluetooth doesn't actually turn on, and as soon as I go back to my home screen the button is off again. The only way I can get it to work is to press the Bluetooth button whilst it is changing to airplane mode (during the 3-4 seconds it takes to turn on airplane mode.) Sometimes it won't even change when it's already in airplane mode so I have to do it in the little time it takes to toggle airplane mode. Yes, I have tried to turn it on from the actual settings menu as well, but to no avail. I've not been seeing too much about this online so I was wondering if this is more of a unique issue in my Galaxy or if others have also been having problems, and if so, have you found a permanent fix?

Just Move - best arcade

Hi all. This is a small little arcade game that I have been working on for the past 6 months.
Move the ball behind your finger and avoid obstacles.
The speed of obstacles gradually increases, slowdown them with simple movements of a finger.
Collect coins and discover new ball styles. More coins - more styles!
Compete with friends: check whose finger is faster!

Gameplay:

Screenshots:
1024-500.jpg



https://play.google.com/store/apps/details?id=com.Brain.JustMove

Problems with loadurl file:\\\ doesn't work

Hi

I have an app that uses webview and uses loadurl with file:\\\ but that doesn't work anymore and I can't figure out how to get it to work with content provider because I use local asset html files, any one who can help me ? It works first time when the app loads, but when I do a location.reload() in javascript it can't find the html file when it tries to reload it it throws an exception android.os.FileUriExposedException. I have red that whne you are using api > 24 you can't use file:/// but should use a content provider but I can't figure out how to do that

Here is my mainactivity:

public class MainActivity extends AppCompatActivity
implements NavigationView.OnNavigationItemSelectedListener {

final Context app = this;
String language = Locale.getDefault().getLanguage().toLowerCase();
WebView webView;

private class WebViewClient extends WebChromeClient {
private WebViewClient(MainActivity mainActivity, Object o) {

}

public boolean onJsConfirm(WebView webview, String s, String message, final JsResult jsResult) {
new Builder(MainActivity.this.app).setTitle(R.string.warning).setMessage(message).setPositiveButton(R.string.alert_ok, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
jsResult.confirm();
}
}).setNegativeButton(R.string.alert_cancel, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
jsResult.cancel();
}
}).create().show();
return true;
}
}

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
DrawerLayout drawer = findViewById(R.id.drawer_layout);
NavigationView navigationView = findViewById(R.id.nav_view);
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
drawer.addDrawerListener(toggle);
toggle.syncState();
navigationView.setNavigationItemSelectedListener(this);

this.webView = findViewById(R.id.Main);
this.webView.getSettings().setJavaScriptEnabled(true);
this.webView.getSettings().setAllowContentAccess(true);
this.webView.getSettings().setAllowFileAccess(true);
this.webView.getSettings().setAppCacheEnabled(true);
this.webView.getSettings().setDatabaseEnabled(true);
this.webView.getSettings().setDomStorageEnabled(true);
this.webView.getSettings().setAllowFileAccessFromFileURLs(true);

//StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
//StrictMode.setVmPolicy(builder.build());

if(this.language.equals("da")) {
this.webView.loadUrl("file:///android_asset/www/da/index.html");
} else if (this.language.equals("de")) {
this.webView.loadUrl("file:///android_asset/www/de/index.html");
} else {
this.webView.loadUrl("file:///android_asset/www/en/index.html");
}

this.webView.setWebChromeClient(new WebViewClient(this, null));
this.webView.setDownloadListener(new DownloadListener() {
@override
public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) {
Intent intent = new Intent("android.intent.action.VIEW");
intent.setDataAndType(Uri.parse(url), mimetype);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
MainActivity.this.startActivity(intent);
}
});
}

Help All my apps disappeared except the ones by Google and Xiaomi! (Pocophone F1)

I checked my phone and all of a sudden almost all of my apps are not there. All of them except the ones made by Google or Xiaomi.

I checked on the play store and they were all uninstalled. Restarting the phone doesn't do any good.

I don't know what can cause this? Is it a virus? Did someone hack my account? Did I "butt reset" my phone as when I checked it it was unlocked?

Is there any way to restaure them or do I have to just reinstall everything? How do check if something else is missing?

By the way all my data is still here, photos, music...

Thx

Text a photo

I am truly a total novice when it comes to cell phones. I have the Motorola e5 Plus and would like to send/text a photo I took with the phone. How do I do that? I have 5 digit number to text to. I tried to read about it and understand it but I guess I am just not understanding what I have read. All help is appreciated.

Hacked?

I was talking to a friend and my screen froze.. my bluetooth earbuds were still stating that they were connected, yet no picture. NOTHING. and since it had froze, I force powered it off and back on... again, my earbuds state that they are connected, but no screen. NOW, heres the kicker, when I plug in a usb and connect to my laptop, when I look to the left side were the files and folders are... where it says Galaxy J7 Star there should be 2 branches off of it like card and phone... but after the force power down.. theres nothing there either...
Did the files that would run my phone somehow get deleted?? If do, is there somewhere I can go to download the proper files that coinside with my device to get it working again..?

After using Developer Tools can't access sites

I have an odd issue. I was using the developers tool on my G6 to connect to Chrome on my Surface Pro 4. I worked with two sites inspecting them. After disconnecting my phone from the system I can no longer access those two sites when on Wifi only.

I can access all other sites on the phone via chrome.

When connecting to the two sites that I can not access I just get a time out error and nothing loads. Also the sites will not load on Opera and Firefox how ever all other sites are available without issue.

I have restarted the phone and router. I have cleared the cache on the phone.

Please note that when I access the sites on Mobile Data they work. The sites were just fine on all other Wifi enabled devices in the house.

What am I missing?

Built in voice recorder issue - important

I'm writing my thesis and i made some interviews with the built in voice recorder. I've made many. But one of the most important recording cannot be found. The recording is approx 2 hours long, it can happen that accidentaly i didn't save it, because i pushed the wrong button :( but im not sure. The only thing is sure that it cannot be found between the recordings.
Is there any solution to recover that file? (3 days has passed i've tried many programs but it wasn't a succes). My phone is not rooted yet, but in case it would sopve i would do it happily.

Any advice would help, it's really important because the interview cannot be managed again :(.

Thank you in advance.

App Inventor Download text file with TextView using Html.fromHtml

When I use this code it displays the text in the file Myfilecontainingtext.abc
How can I make it instead download the file to the downloads directory?

Java:
        String html1 = "<a href='http://www.mywebsite.com/Myfilecontainingtext.abc'>Download Myfilecontainingtext.abc to Downloads directory</a>";
        TextView textView1 = (TextView) findViewById(R.id.textView1);
        textView3.setText(Html.fromHtml(html1));
        textView1.setMovementMethod(LinkMovementMethod.getInstance());

Apps How to learn which app is running, and kill some of them?

Hi, i am looking for a way to create an app which will run on the background, and when i press both volume down and volume up button it will kill all the app that currently running (some of them).

I nailed the event click both volume button and background service but i dont know how i can kill another app thats not from my app's activity.

I would prefer non-rooting required but if its not possible, rooting is fine since the purpose of this project is mainly education.

Thank you for reading.

Edit: I am not looking for a block of code, just some keywords or solutions. Sure some code example would be nice.

Filter

Back
Top Bottom