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

big problem with internet connection

Hi all.
I have a big problem with my internet connection when I am using Wifi at my home.
The thing is that near my home there are some restaurants that have conections that appears to be free but aren't free.
The problem is that even when I click on my home network to connect it connects fine but 5 minutes later Android decides that it wants to connect to the open networks nearby that are not really open and interupts my connection.
I trried installing Wifi MAnager but that didn't help.
Do anyone know of an app or patch that will make my mobile connect to the network that I WANT TO CONNECT TO and not forcing me to connect to other networks that aren't mine.
It's a. shame the computer world these days I mean I had a Windows xp Computer that would let me choose MY NETWORK and it STAYED CONNECTED TO MY NETWORK.
And then there is this peace of crap of os that is of 2016 that won't connect to my Wifi because it's so stupidly made that it decides where to connect.
I have to find a way to stop android from searching and connecting to a network AFTER I SELECT MY HOME NETWORK SO IT WILL STAY CONNECTED TO MY NETWORK.
I tried that in Wifi manager but it doesn't stop android from searching and connecting to other networks even when I turn Auto Search off in Wifi manager and Android settings don't even have that option.
Please help me because it is a very expensive high end phone and if I don't find a solution for this I might sell everyrhing and stop using computers and phones altogether.
I am so fed up of this modern computer world that is more terrible then the 90's
Windows 95 was WAY BETTER then all this crap

Apps Is there possibility to "Auto-start" application when users become inactive?

Hi,
I have to create an app, which detects user inactivity, and then start activity which displays some videos with WebView, and then when displaying with WebView is finished, it has to play videos from SDCard. I've already handled part with WebView and SDCard (with JavaScriptInterface etc.)
This application has to work with API 19 all the way to the newest one.

The question is - Is there a possibility to detect if user is inactive and start my application, or keep the app running in background, and then start activity in the foreground after the user becomes inactive for certain time?

I'm not trying to play ads, when user is not looking at his screen. Application is for my client, who have stores with all kind of electrical equipments, including smartphones. The goal is to play video presentations with hardware details specific for each smartphone (informations about processor, ram, camera, screen etc.).

In short: I have to make an app which is similar to "Demo Apps" created for example by Samsung (playing some kind of presentations on screen).

So far I've read and tested things like:

1) BroadcastReceiver with combination of ACTION_SCREEN_OFF / ACTION_SCREEN_ON events.

Receiver works properly, I can detect this event and then start activity, but... The screen is already off so i can't see the displayed activity - it's visible running in the foreground after unlocking the phone. Is there a way to unlock the phone when the event is received?

That's my code so far.
EventReceiver Class:
Code:
class EventReceiver: BroadcastReceiver() {
   override fun onReceive(context: Context, intent: Intent) {
       StringBuilder().apply {
           append("Action: ${intent.action}\n")
           append("URI: ${intent.toUri(Intent.URI_INTENT_SCHEME)}\n")
           toString().also { log ->
               Log.d(TAG, log)
               Toast.makeText(context, log, Toast.LENGTH_LONG).show()
           }
       }

       if (intent.action == Intent.ACTION_SCREEN_OFF) {
           val i = Intent(context, MainActivity::class.java)
           context.startActivity(i)
       }
   }
}

MainActivity Class:
Code:
val br : BroadcastReceiver = EventReceiver()
val filter = IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION).apply {
   addAction(Intent.ACTION_SCREEN_OFF)
   addAction(Intent.ACTION_SCREEN_ON)
   addAction(Intent.ACTION_BOOT_COMPLETED)
}

2) Foreground Services - I read that this is a great way to make some asyc stuff in the background and show notifications to user. Is there a way to start the activity with it?

3) Job Scheduler

4) Daydream / Dream Service - it actually works great with almost every API and manufacturer, but.. there's no way to set the app as Screen Saver on Huawei/Honor smartphones, at least from phone settings, I've read that this is possible with ADB etc. but this is not an option that I can use here.

It seems that none of these fullfill my expectations.

X23. Great phone but is also fraud.

Wish.com has X23 as a phone you can buy.
Advertised as...
6.3 inch screen
6 GB RAM
128 GB ROM
Android 9.1
10 core.
6000 mAh
For about $100 USD.
It's got code in it to make that seem true. However, upon use you realize that it's a lie.
Actual specs.
2 GB RAM
32GB ROM
Android 6.0
4 core.
??? mAH. Estimate is 3200 based on a battery app.
Use 3rd party apps to see the real specs. Disk space was the hardest to figure out after consuming about 26gb, it will suddenly say you're almost out of space (128gb). For example.
However, this phone is very quick and the battery lasts about 8hrs of constant use. Longer if it's screen is off most of the day.
2 rear cameras exist but no knowledge of how to use the 2nd rear one exists. 3rd party apps don't seem to let you use it either. This night just be that I need to write a new camera app myself to access it.

Attachments

  • Screenshot_20190914-205442.png
    Screenshot_20190914-205442.png
    105.4 KB · Views: 178
  • Screenshot_20190905-140552.png
    Screenshot_20190905-140552.png
    189.7 KB · Views: 180
  • Screenshot_20190905-140534.png
    Screenshot_20190905-140534.png
    157.6 KB · Views: 173

Micro Launcher

I'm writing a new launcher. The smallest in size, memory use and quickest speed and navigation possible. Multiprocessor use everywhere possible. Completely different than other launchers. Here is an Alpha stage screenshot.

Attachments

  • Screenshot_20190908-174649.png
    Screenshot_20190908-174649.png
    144.9 KB · Views: 230

android tablet question

can a android tablet that has the hdmi port receive video from that port from another device?

i have a dvr and an nvr and i have them connected to a monitor now thru a vga cable and both units have an hdmi port. what i want to do is connect an hdmi cable to one of them and hook it up to a tablet in another room and seed the feed from those recorders. my tablet has a mini hdmi port on it now. what i need find out is if tables can receive feed from another device. thanks

Can't mute notifications

Hello. I'm hoping someone can help me. I have an app that notifies me throughout the day when it's time to take my meds/vitamins. I set it up so that I can get the pop-up without any sound (it's disruptive when I'm at work). Since the evening of Thursday, September 12th, the app has been making a sound when the notification pops up. I've tried everything I can think of to stop it: checked the app's settings, silenced the notifications volume, I even checked for app and phone updates. The only thing that works is when I put the media on mute. It's annoying and frustrating. Any ideas on how to fix this?

parse KML list files on android

Good evening I'm facing a problem in my code. I would like to parse a set of kml file to extract the contents and put it in bae of data. it returns each time the list of files, but not the contents of each file. Please help me

Here my MainActivity.java file content :


public class MainActivity extends AppCompatActivity {

private TextView txt;

private TextView texte;
ListView listView;
private List<String> fileNameList;
private FlAdapter mAdapter;
private File file;

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)
== PackageManager.PERMISSION_GRANTED){
//FetchImages();
listView = (ListView) findViewById(R.id.listView);
file = Environment.getExternalStorageDirectory();
fileNameList = getFileListfromSDCard();
mAdapter = new FlAdapter(this, R.layout.mylist, fileNameList);
listView.setAdapter(mAdapter);

}
else{

ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
}
}
else{
//startActivity(new Intent(getActivity(), SQLite2ExcelActivity.class));
}
}

private List<String> getFileListfromSDCard() {
String state = Environment.getExternalStorageState();
ArrayList<String> filenames = new ArrayList<String>();
String path = Environment.getExternalStorageDirectory()
+ File.separator + "Fodecc_csv";

File directory = new File(path);
File[] files = directory.listFiles();


for (int i = 0; i < files.length; i++)
{
if(files.isFile() && files.getPath().endsWith(".kml")){
String file_name = files.getName();

// you can store name to arraylist and use it later
filenames.add(file_name);

XmlPullParserFactory parserFactory;

try {

parserFactory = XmlPullParserFactory.newInstance();

XmlPullParser parser = parserFactory.newPullParser();

//File file = new File("/storage/emulated/0/Kml.kml");
InputStream is = new FileInputStream(file_name);
parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);

parser.setInput(is, null);



processParsing(parser);

//InputStream is = getAssets().open("kml.xml");



} catch (XmlPullParserException e) {



} catch (IOException e) {

}

}

}
return filenames;
}

private void processParsing(XmlPullParser parser) throws IOException, XmlPullParserException{
ArrayList<coordonnees> coordo = new ArrayList<>();

int eventType = parser.getEventType();

coordonnees currentcoordo= null;



while (eventType != XmlPullParser.END_DOCUMENT) {

String eltName = null;



switch (eventType) {

case XmlPullParser.START_TAG:

eltName = parser.getName();



if ("Placemark".equals(eltName)) {

currentcoordo = new coordonnees();

coordo.add(currentcoordo);

} else if (currentcoordo != null) {

if ("name".equals(eltName)) {

currentcoordo.name = parser.nextText();

}

}

break;

}



eventType = parser.next();

}



printcoordo(coordo);
}

private void printcoordo(ArrayList<coordonnees> coordo) {
StringBuilder builder = new StringBuilder();



for (coordonnees Placemark : coordo) {

builder.append(Placemark.name).append("\n");

}

txt = (TextView) findViewById(R.id.te);


txt.setText(builder.toString());
}

}

  • Poll Poll
BEST MOST STABLE PIE (ANDROID 9) ROM's FOR ZTE ZMAX PRO

Which is your favorite of the 2

  • Pixel Experience

    Votes: 0 0.0%
  • Lineage

    Votes: 1 100.0%

https://androidfilehost.com/?fid=6006931924117909218

PixelExperience_urd-9.0-20190704-2042-UNOFFICIAL.zip
for the ZTE Zmax Pro(Z981), by Loonycgb2

Nice system UI but slow
FAST NETWORK
flashlight works
No camera but it's worth it, I have a twrp back up of 14.1 by armandopartida0 if I need my camera.


https://androidfilehost.com/?fid=6006931924117895988

lineage-16.0-20190615-UNOFFICIAL-urd.zip
for the ZTE Zmax Pro(Z981), by Loonycgb2

For me this is my favorite ❤️ Nice interface with all the perks of LINEAGE.

I also really like LINEAGE 16, our friend Loonycgb2 also made a LINEAGE 16 ROM for our diehard zmax fans who just REFUSE TO UPGRADE TO A NEWER PHONE!

But this is seriously nice and not posted anyware but on androidfilehost.com so give Loonycgb2 some love!!

Interesting issue

I found a brand new game began playing it, a few days ago they updated the app and now it kills a full battery within minutes of using and that's not all... It now puts sucha strain on my Wi-Fi that it actually shuts it off for the entire household... I am an i.t. professional (pc).. Here's my odd question... Is it possible for a dev to create an app that appears as a game but in fact has a more sinister purpose such as accessing your personal information or worse to simply wreck havok with your equipment and if you suspect a dev of doing this is there any way to view the apps code without doing it illegally?

Moisture Detected - Strange daily behavior

Something odd is happening with my Note 10+. Every morning for the past few days I'll pick up my phone and use it for a few minutes and the Moisture Detected message shows up in the notifications bar. I'm positive there is no moisture. I'll reboot and after a couple minutes it goes away, but immediately when it disappears I get a notification that T-Mobile Visual Voicemail could not connect to my voicemail box. It's always at the exact same moment one message is replaced by the other. I can't imagine how they would be related.

Instagram Not Loading

Hi, hope someone can help.

Instagram has stopped working on my son's phone (Samsung Galaxy S3 on kitkat 4.4.4). When you try to open it, the screen goes blank for a second, and then it goes back to the homepage.

I have done the following;

- Restarted phone.
- Cleared cache and data.
- Uninstalled / reinstalled the app.
- Googled the problem (only solutions I can find are the ones above).

Is there anything else I can be trying? I wondered if IG had updated and the current version doesn't work on older Android, in which case, is there a way to roll back to an earlier version?

Thanks in advance!

Filter

Back
Top Bottom