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

Data Connection

Hey guys, I'm having a small issue with my data connection.. I usually turn off my data when I'm not using it because I don't have wifi at home. But ever since this morning when I turn on my data it won't turn on.. the phone tells me the data is connect but nothing comes up on the status bar and no internet works.. any ideas??

How to monitor changes in mobile network connections?

Hello to all,

I've been, for several days in different sites, looking for a way to monitor when a network change occurs without success so far. This is show with a Toast message when the phone changes from 2G to 3G, 3G to LTE and vice versa.

I found that is needed to use TelephonyManager, Connectivity Manager and Broadcast Receiver.

So far I have the below code that shows the changes when phone is in WiFi, without connection or mobile data, but once is in status "Mobile data" is not reporting the changes between 2G, 3G, LTE anymore.

Is there a way to detect in the moment that occurs the mobile network type changes?

This is a Utility class code that I have so far working for android 6.

Code:
class NetworkUtil{

public static String getConnectivityStatusString(Context context) {
   String status = null;
   String mobile_status = null;

   ConnectivityManager cm = (ConnectivityManager) context
           .getSystemService(Context.CONNECTIVITY_SERVICE);

   NetworkInfo activeNetwork = cm.getActiveNetworkInfo();


   TelephonyManager mTelephonyManager = (TelephonyManager)
           context.getSystemService(Context.TELEPHONY_SERVICE);
   int networkType = mTelephonyManager.getNetworkType();
   switch (networkType) {
       case TelephonyManager.NETWORK_TYPE_GPRS:
       case TelephonyManager.NETWORK_TYPE_EDGE:
           mobile_status = "2G"; break;
       case TelephonyManager.NETWORK_TYPE_UMTS:
       case TelephonyManager.NETWORK_TYPE_HSPA:
           mobile_status = "3G"; break;
       default:
           mobile_status = "Unknown"; break;
   }


   if (activeNetwork != null) {
       if (activeNetwork.getType() == ConnectivityManager.TYPE_WIFI) {
           status = "Wifi enabled";
           return status;
       } else if (activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE && mobile_status == "2G") {
           status = "2G enabled";
           return status;
       } else if (activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE && mobile_status == "3G") {
           status = "3G enabled";
           return status;
       } else if (activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE && mobile_status == "Unknown") {
           status = "Mobile unknown enabled";
           return status;
       }
   } else {
       status = "No internet is available";
       return status;
   }

   return status;
}
}

Thanks for any help.

Marketplace not loading

Hi all, Samsung J3 and today when going to Facebook's marketplace it will load the first item I touch but when going back and selecting a second it doesn't respond to my touch and nothing happens. Just marketplace, all other facebook selections work fine. Closing facebook and reopening I get to choose one item again but a second will not open. Any suggestions please.

Help Phone charging issue

My USB cable is quite loose whenever I plug it in. I need to fiddle quite a lot for the phone to even recognize that it's charging, and even then, the percentage doesn't go up (I managed to charge it once but have been unlucky since). I feel like I should mention that the charging issues were preceding by dropping the phone in the sink with running water screen up a couple of times, but I managed to grab the phone in ~2 seconds, safely shut it down and leave it open to dry for a full day in both cases. It has been at least two months since the aforementioned incident so I assume the phone is and safe from short circuit and potential corrosion? (Because if any water was left to cause the corrosion I doubt I would have a working phone now). One thing that has changed since water damage apart from charging issues is that the battery seems to go down at a quicker rate. I did all the basic troubleshooting (different cable, wall adapter, plug to PC, etc.) with no effect. Cleaning out the port also didn't help as the cable is still loose. Could this be caused by water? Is there no way than to replace the port? Any and all help appreciated

(Attaching USB port pictures, quality is the best I could.)
https://imgur.com/a/VJ1Qrg3

Capturing contact information

Hello:
I'm helping the local museum with their Contacts DB. Right now everyone that visits the museum signs a paper 'log' with their contact info. Quite often it is illegible. Anyone know of a solution that we could use to capture and store a visitor's info? I was thinking of using a tablet with a basic contact info front end but since many of the visitors are seniors something even simpler would be best. Maybe an app using voice recognition or a QCR that the user could scan that would extract info from their phone (yes, they may be seniors but they all have phones !). Any help or ideas is greatly appreciated.
Thanks.

Root Missing OEM Unlock on Samsung Galaxy S4 i9505

Hi,

I am intending to install TWRP on my Samsung Galaxy S4 i9505 with the aim of installing a custom ROM but am not seeing the 'OEM Unlock' option under 'Developer Options'

I have looked at the below guides for resolving this issue but neither appear to be suitable for the S4.

https://www.xda-developers.com/fix-m...galaxy-note-8/
https://www.thecustomdroid.com/fix-missing-oem-unlock-toggle-samsung-galaxy-devices/

Does anybody know how to resolve this?

Thanks

Why i can't install android 9?

Hi
I recieved update "androind 9" notification on my Htc u11+.
When download finish , there is an error :
"Update is corrupted
The downloaded system software
Update is corrupted.
Do you want to download it again? "
And there is 2 option :
Cancell and download!!
I have done more than 10 time and the error still exist.
Anyone can help?
Thanks

Attachments

  • PartialScreenshot_20190822-191931.png
    PartialScreenshot_20190822-191931.png
    91.7 KB · Views: 252

Connection issues

My new Samsung Galaxy A20 phone is having data connection issues. Many times a day it basically gets stuck on uploading data, where the up arrow is showing with no down arrow. This prevents me from getting notifications and loading apps/web pages. It will stay like this until I turn mobile data off then on again or connect to wifi or reset the device. My carrier is Metro.(never had connection issues with them before) I spoke to them about the problem and they're not being much help.

Does anybody know what could be causing this, and how to fix it?
Would appreciate any help I can get.
Thanks!

Connect to server with Files

Hey guys,

I've got a samba server, that I can easily connect to using my laptop and transfer files to. Is there a way I could connect to it and view files on the files app from Samsung? I have an S9, I like a lot of the other functionality, but would really like to do this. I know there's apps I could get, but I'd like to use the native Samsung Files app

Luck Charms ?

Anyone have any ? I never really had any as an adult but as a kid I had a few Rabbits feet but then realized how lucky could they really be if a rabbit had to be dismembered for it. I had never found a 4 leaf clover until last March. It wasn't even a 4 leafed one. It had 5 leaves ! I plucked it and dried it and decided to keep it, unwished for now.

Android Studio 3.5.0, CMake, and "External Build Files"

What command makes the Project "Android" tree show all CMake CMakeLists.txt and .cmake files used in a project in a "External Build Files" category?

This seems to show up upon invoking "Run", but not any other way I have tried. Some releases back this used to show up automatically when one sync'ed with Gradle files. Now the only thing that seems to do it is "Run" (whereas for a while I couldn't get this display at all).

This display is *very* useful to me -- and I'm left wondering if there's another way to trigger this than "Run".

Auto answer app recommendations

Hello, I'm looking for app recommendations for an answer phone app. I work on call overnight and would like an app which auto-answers calls without ringing the phone, delivers a pre-recorded message of my voice, then rings for me to answer if the caller waits until the end of the message. That way I can screen out unnecessary calls which might wake me up. I've searched around but can't find an app that meets those requirements.
Many thanks,
Liam

Android Studio 3.5 - Can't Debug Library androidTest with NDK

I upgraded to Android Studio 3.5 yesterday. I am no longer able to debug an androidTest (instrumented) on a library that has NDK sources. This only happens if there is an externalNativeBuild and the project is set to build as a library (not an app). If either of these are not true, debugging works. Depending on the emulator used, the process hangs on "Instantiating tests" and causes the emulator to freeze up, or immediately exists with the message "Cannot get process architecture". This was working fine in 3.4. I am running Android Studio on macOS. I am able to reproduce this by creating a new "Native C++" project, changing the plugin to "com.android.library" and commenting out the applicationId. Any help getting around this, and with how to file a bug for Android Studio, would be greatly appreciated, thank you!.

On-Demand Initialization in WorkManager

This page https://developer.android.com/topic...nager/advanced/custom-configuration#on-demand
says that you need to extend the interface from the Application class. I turned off the default initializer, but then I can not understand the documentation. By default, AppCompatActivity is used for the main activity, and when I change it to Application, some methods inside stop working.
Someone help me understand this moment and do it right

Battery Debate Issue after Oreo Update

Ok, there are a ton of websites and youtube videos out there dealing with the battery issue on the S9 after the Oreo update. I have done all of the minor tweaks such as clearing the cache, setting up optimization, monitoring app usage, putting unused apps to sleep, auto disable unused apps, turning down brightness and a number of more tweaks I can't even remember right now.

The two things I have not done and am very confused about are the:
A) #0228# to check battery status (which some say calibrates the phone)
B) Draining the battery to 0%, fully recharging it to 100% and repeating the process a 2nd time.

Both those things I have heard about 50% of the replies saying to do them and the other 50% saying do not do those two things.

Is there any hard core decision of if one or both of those should or should not be done? I don't want to do a factory reset on my phone, but running out of ideas as soon as I got the update, my battery power sucked. I just can't find any expert opinion on the above examples if they should or should not be done?

So confused, too much information out there...

Filter

Back
Top Bottom