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

S8 camera issues

Hey guys, goping you may have either an answer or a fix. So recently I find the S8 when taking pictures...I will hear the click of the camera, but when I go back to look the picture is not there. Today is was many pictures. And each time I heard the shutter noise...but ended up with no pictures.

This is getting pretty frustrating so I'm hoping you guys have heard of this problem and maybe a fix. Thanks in advance for looking, Andrew.

Apps Problem with APK files

Hello fellow coders!

I am new in app developing and trying to build pretty much my first Android app in a school project.
However I faced some problems and I would like to ask help from people who might know better.

My app uses TCPClient to make a connection to a host server. While I was testing the app in debug with different devices there was no problems with connecting. However after I made a release version and tried it on my device for some reason my app didn't want to connect and it just plain goes down.

After a while I found out how I can check logs to see what the problem is. Apparently it was some kind of socket exception that crashes the app. In debug the app worked though. So I searched some more info and apparently permission to use Internet is automatically on in debug and not in release. So I added that permission and tried to make a new apk file. That still didn't work and I got the same error (even though I am pretty sure that is the reason it didn't work).

Now after reading a bit more about apk files I guess making a new one isn't as easy as I thought. When I made the first one I followed Xamarin's instructions from here: https://docs.microsoft.com/en-us/xamarin/android/deploy-test/release-prep/?tabs=windows and everything went well.
But after making the second (and couple more after that) I realized that it didn't ask the apps keystore password (I guess you should put that every time you make a new apk file). I used the ad hoc route, because I am not intending to put the app in store (the app is for the project client). I just put the apk file to my device and installed it that way.

So I would like to know what exactly should I know if I make a new apk file from a project I have modified somehow? Do I need to make a new version number or something like that to make it work???

Gmail and Outlook not receiving notifications

The device that has the issue is a Huawei Y6, although I read that other devices from different manufacturers are facing the same issue as well. The phone runs Android 9.0 and is brand new pretty much out of the box. The issue is that both Gmail and the Outlook app do not receive notifications even though all possible permissions are on and the battery saving mode is disabled. I tried installing the apps again and what not, the phone still doesn't receive email notifications. It's bugging me not being able to find a solution and was wondering if anyone here has faced anything similar.

Where to buy an android phone?!

I know this might seem like a silly question, but where is the best place to buy an Android phone?

I've always usually got my phone from my network provider, but I might do it differently this time to save money in the long run. I know that if I would want an iPhone (which I don't!), I can go to Apple and buy one directly, but where can I go to get an Android phone like a Huawei P30 Pro for example?

Thanks in advance
Glenn

Hunting for the right case

I need to buy a case that has raised edges along the sides not just on the top and bottom of the phone. For example I have a Spigen Tough Armor for my S8+, it failed to stop my phone from cracking and the break is on the sides where the case is level with the screen. I dont care if I lose some of the screen edges on the side, so long as its protected. You cant really go into a store and try on cases until you find one you like and I'm not trying to aimlessly order online, only to have to return.

Hopefully someone has a case or handful of cases that do offer raised edges along all sides of screen to provide front facing protection for the S8+

Please help.

Help o2 tv

Hello mows me picture in o2 tv reverse zhledunti operator told me that the error in modem tp link td w9960 works well but i don't know the cell phone is in the modem but it is the app but i don't know how i gotta prove that i didn't uninstall and install it but not even restart nor public wifi works on mobile data works setup router i have 2/1 developer is o2 czech republic as home wifi works not in phone samsung galaxy j5 2017 play back look please poimoc thank you for reply Vojtíšek

Missing titles

Just received the Android 9.0 (pie) update from Verizon on my Galazy S8+ a few days ago.
One thing I noticed that in the Google icon, clicking the more icons give a list of various other applets to open.
Small icons only are showing and titles are missing.
Bug or as designed?

Thanks.
Screenshot_20190510-081923_Google.jpg

HUAWEI P10Lite FM Radio

Good day
I have a HUAWEI P10Lite mobile phone, Android ver. 8.0.0, EMUI 8.0.0
I want to ask how do I run FM radio? No WiFi. I will heardphones as an antenna. Do it on this mobile?
Respectively. where to find it in the menu on this mobile. Is there any need for this?

Huawei P10 lite
WAS-LX1 8.0.0.390(C432)
EMUI 8.0.0
Android 8.0.0

(sorry for my eng.)

Unable to upload APK to playstore since apk contains large .so files.

Our android apk size is around 230 MB. While analyzing apk, it contained lib with .so files around 200 MB and around 20 MB of resources. Since Expansion Files does not support .so files, I tried splitting the apk based on ABI configuration. Even that resulted in 2 APKs of > 100 MB each. What other solutions can I try to reduce apk size and upload apk ?

Apps NetworkStatsManager querySummaryForDevice strange results

I want to get the mobile data consumption for a given range of date (1, 2, 5, 10 or 15 minutes) with the querySummaryForDevice method of NetworkStatsManager.

This is my code:

Java:
public static long getTotalTrafficInRange(Context context, Date fromDate, Date toDate) throws UsageStatsNotActiveException, NoPermissionException
{
   boolean usageStatsActive = doIHavePermission(context);

   if (!usageStatsActive) {
       throw new UsageStatsNotActiveException(context);
   }

   long total = 0;

   TelephonyManager tele = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
   if (ActivityCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {
       throw new NoPermissionException(Manifest.permission.READ_PHONE_STATE);
   }
   String actualSubscriberId = tele.getSubscriberId();

   NetworkStatsManager networkStatsManager = (NetworkStatsManager) context.getSystemService(Context.NETWORK_STATS_SERVICE);

   Date from = ConvertDateToCalendar(fromDate);
   Date to = ConvertDateToCalendar(toDate);

   //Total
   NetworkStats.Bucket bucket;
   try {
       bucket = networkStatsManager.querySummaryForDevice(ConnectivityManager.TYPE_MOBILE, actualSubscriberId, from.getTime(), to.getTime());

       if(bucket != null){
           total = (bucket.getRxBytes() + bucket.getTxBytes());
       }

   } catch (RemoteException e) {
       e.printStackTrace();
   }

   return total;
}

I tried to convert my date in calendar and back again in Date with this code:

Java:
public static Date ConvertDateToCalendar(Date date)
{
   Calendar fromDateCalendar = Calendar.getInstance();
   fromDateCalendar.setTime(date);

   Calendar calendar = Calendar.getInstance();
   calendar.set(Calendar.YEAR, fromDateCalendar.get(Calendar.YEAR));
   calendar.set(Calendar.MONTH, fromDateCalendar.get(Calendar.MONTH));
   calendar.set(Calendar.DAY_OF_MONTH, fromDateCalendar.get(Calendar.DAY_OF_MONTH));
   calendar.set(Calendar.HOUR_OF_DAY, fromDateCalendar.get(Calendar.HOUR_OF_DAY));
   calendar.set(Calendar.MINUTE, fromDateCalendar.get(Calendar.MINUTE));
   calendar.set(Calendar.SECOND, fromDateCalendar.get(Calendar.SECOND));
   calendar.set(Calendar.MILLISECOND, fromDateCalendar.get(Calendar.MILLISECOND));

   return calendar.getTime();
}

This is the fromDate and toDate:

Java:
//this date is new Date() minus 1,2,3,5,10 or 15 minutes, not more then this values
   fromDate = new Date(PersistentHelper.getLastDateUsedForCalculateData(context));

   //Calculate toDate
   Calendar calendar = Calendar.getInstance();
   calendar.setTime(new Date());
   if(!userChangeDateManually || !userChangeZone) {
       calendar.set(Calendar.SECOND, 0);
   }
   calendar.add(Calendar.MILLISECOND, -1);

   toDateWS = calendar.getTime();

But totalBytes returned by getTotalTrafficInRange it's not real. If I have my phone in WIFI for 1 hour and then call my function with fromDate 15 minute ago, it return a very long value and not 0 as expected.

There is a limit for the range date of the querySummaryForDevice method of NetworkStatsManager? No clue found in documentation.

Anyone notice this weird behaviour?

Phone lock

I've noticed that when i first got this phone whenever i would press the power button to turn it off then turn it back on it would be locked. Now whenever i do it it stays unlocked unless its been off for a sertain amount of time. I was wondering if there is a way to put it as it was before?

Mini Speedy Racers [FREE] [Game]

Take a look at our New Game #MiniSpeedyRacers is exciting and fun to play racing game, here is the description:

Join the Mini Speedy Racers league and compete against crazy mini mad drivers in this extremely fun and entertaining racing game.

This is not your typical serious racing game, no this is a different kind of racing game. Pick your racer, select your track, and speed up! You can bump against other mini speedy racers, pick up tricks to make fun of them, pick up turbos to speed up, and just make sure to cross the finish line ahead of all them to celebrate.

The game includes many good-looking retro style racers, challenging tracks, several nice cartoonish environments, and many tricks.

If you like racing and have a good laugh while doing it, then this game is for you! Don’t waste time, download it and have fun! "

Here is the link to the Play Store, and the game is FREE:

https://play.google.com/store/apps/details?id=com.fierrostudios.minispeedyracers

Take a look and let us know what you think!

Racers_0_960x540.png

Just A Noob! But a total DIY noob!

What's up fellow Android users!!

Honestly, I'm not exactly sure what took me so long to FINALLY join but I'm HERE NOW!

I'M NO HACKER FYI. But I do have a few neat Android tricks up my sleeves and I know there are MANY others out there who know plenty more!!

So I'd like to build my network here and learn from EACH OTHER!:

SOUND GOOD?!

I'll be doing DIY Android stuff here too!

Screen shutting down by itself

Hi All!
Since two days ago my S8 is getting its screen shutting down.
The touch screen still working, sounds, videos, etc.
In order to get the screen back, I have to press Power twice to get back to Lock Screen, than unlock and get back to whatever I was doing.

Fun fact, if my phone is being charged, I have zero issues. Doesn't matter the source...car charger, Xbox, normal cable, etc.
It only occur when the phone is not being charged.

I have done:
Safe Mode, Wipe Cache, and Factory Reset. In all scenarios the screen still have the same behavior.

Also, the LED indicator is always solid blue when the phone is unlock/being used.
No water damaged occurred or high impact accident.

What am I supposed to do?

I'm am donating to charity

For the 1st time ever im donating 5% of sny donstion i recive to help fund my projects to charity.

The most one i want to donate to is charities with kids with disbilities and as well children living witj cancer to help researcher find a way to cure and get rid of cancer permenantly

If you have GamerROM Orion on the Nexus 6 you will now see a new option called Donate in the "OTA Updates" app where you can click and donate however we highly require you to pre sign into your paypal to be sble to donate for some odd reason the app will not recgonize the full url so i had to shorten it using bit.ly to get it working, ill find other ways to get it without signing in but it works.

However if your interested in me reaching my goal of $50,000 to donate to charity and if we reach that goal $48,000 will go into both charities leaving $2,000 for my servers to stay online longer will you help me reach the goal to help those in need? You can also donate below:

Donate to charity: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TCJKHJH9FG9SJ&source=url

[Game][Beta] Bubble Bash

My new game, Bubble Bash, is now available on the google play store. It is currently in the Beta testing stage. I would greatly appreciate any feedback and hope that you enjoy it. It is my first game and was very time consuming as I did not use a game engine and there were a lot of learning curves. It is an arcade game and involves hitting a ball into bubbles using a paddle. I am aware that there is a lot of room for improvement for the UI and gameplay and I am very open to incorporating any ideas from feedback into the game.

I find that the game can be kinda exhilarating if you really challenge yourself. It is a good game for improving focus and hand-eye coordination as these qualities are required to be good at it. I wanted to make it interactive for users and have incorporated gyroscopic controls for the paddle angle as well as touch motion for moving the paddle on the screen.

Google Play Link: https://play.google.com/store/apps/d...com.bubblebash

Attachments

  • Screenshot_2019-05-07-19-54-58.png
    Screenshot_2019-05-07-19-54-58.png
    116.6 KB · Views: 149

Divider is not displayed in Spinner in Dialog.

------------------------------------------------- manifests


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fec.drawinglibrary_sample">

<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />


<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@Mipmap/ic_launcher"
android:label="@String/app_name"
android:roundIcon="@Mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@Style/AppTheme">
<activity
android:name="fec.raderapp.MainActivity"
android:label="@String/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


---------------------------------------------------------------------style.html

<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:dropDownListViewStyle">@style/SpinnerStyle</item>
</style>

<style name="SpinnerStyle" parent="Widget.AppCompat.ListView.DropDown">
<item name="android:divider"> @color/titleColor</item>
<item name="android:dividerHeight"> 0.5dp </item>
</style>
</resources>



----------------------------------------------------- Spinner in Dialog

<LinearLayout
android:id="@+id/_Palett_Event_Layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:minWidth="25px"
android:minHeight="25px"
android:eek:rientation="horizontal">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:eek:rientation="vertical"></LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:eek:rientation="vertical">

<Spinner
android:id="@+id/_Palett_Spinner"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:eek:verlapAnchor="false"
android:popupBackground="@color/menuColor"
android:spinnerMode="dropdown"
android:theme="@Style/SpinnerStyle" />
</LinearLayout>
</LinearLayout>





The current code.

It can not be expressed only in Spinner in Dialog.
Why is this happening?

Abstracting Async?

I have an Async private inner class that I'm implementing on every Activity, that gets HTML from a URL. With the exception of the URL, it's the same in every Activity.

I'm wondering how to go about abstracting it so that i can just pass in the URL and get the response back. I'm having two problems with this: 1) I need a context to pass to the requestQueue, and 2) I need a way to get the data back.

I have tried implementing the code a standalone Async class but I keep getting errors trying to pass the context (says the context can't be applied to HTMLLoader). The next thought I had was to implement a regular class, then to use an Async class in the Activity, get the context from there, and pass that in - but I get the same error, just in the activity's async class instead.

I'm going to have a few activities needing to access various URLs so I don't want to keep repeating the same private inner class over & over. It might work, but it's not a clean solution. It's probably something about Java or Android that I don't know, but unfortunately, I don't know what it is I don't know... Any suggestons appreciated.

Here's the inner class code:
Code:
private class HTMLLoader extends AsyncTask<Void, Void, Void> {
    @Override
    protected Void doInBackground(Void... params) {
        try {
            Thread.sleep(2000);
        }
        catch (java.lang.InterruptedException interruptedException) {

        }
        RequestQueue queue = Volley.newRequestQueue(SecondActivity.this);
        String url = "http://10.0.2.2";

        StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
                new Response.Listener<String>() {
                    @Override
                    public void onResponse(String response) {
                        mTextBox.setText(response);
                        mProgressBar.setVisibility(View.INVISIBLE);
                    }
                }, new Response.ErrorListener() {
            @Override
            public void onErrorResponse(VolleyError error) {
                String err = error.toString();
                mTextBox.setText(err);
                mProgressBar.setVisibility(View.INVISIBLE);
            }
        });
        queue.add(stringRequest);
        return null;
    }
}

Filter

Back
Top Bottom