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

Finding an App

A few years ago, there was a game that I found sweet and cute, and I'm looking to find it again. The only problem is that I've forgotten the name. Does anyone know of an app that involves a little planet you move around, avoid enemies, and it's constantly moving upwards? There are also perks you can unlock.

Thank you!

Can you reset all app notification settings on Android Pie?

Hey Pepz,

I got an Pixel 2 XL with Android Pie on it and I want to reset all my apps notification settings. So what I ultimately want to do is change every apps settings to the same thing basically.

Show notifications: "ON"
Behaviour: "Make sound and pop up on screen"
On lock screen: "Show all notification content"
Sound: "Default notification sound"
Vibrate: "ON"
Blink light: "ON"
and so on...

There doesn't seem to be a way to default every app to have my desired settings (so a global change of the notification default), or is there? Does anyone know an app that can do this?
My goal is to have every app, system apps included, to do the same thing and afterwards change just some single apps to do something else.

So in short: Ignore the default a developer choose for me and override the whole notification settings everywhere to my taste.

(Otherwise I got to change 200+ apps manually and apps like Facebook, Snapchat or Tinder tend to have alot of subcategories so that would take days really
eek.gif
)

Total used of

Total used of

Hello

On my panasonic eluga phone (32 gb internal storage from company), I have formatted sd card (32 gb) as internal.
It is expected that "total used of" should show something like 60 gb or so.
But it still shows 32 gb.

Please help.

PS: It works correctly i.e. shows 60gb on my motorola phone.

Rgds,
A

Attachments

  • Screenshot_20190730-230626.png
    Screenshot_20190730-230626.png
    64.2 KB · Views: 128

Rich People Find Another Loophole...

Ya know, I get it: higher education is expensive, especially at Universities. (Disclaimer: I worked my way through both undergrad and law school with a couple of small loans, my dad had died and there was no way my mom could have funded it.)

Still, that is no justification for what these well-funded (not necessarily wealthy, but certainly rich by most folks' standard) families have done to game the system, taking grants and funds from those who truly are in need. Shameful.

And think about the lesson being (inadvertently?) taught to the kids on both sides. Sad.

“It’s a scam,” said Andy Borst, director of undergraduate admissions at the University of Illinois at Urbana-Champaign. “Wealthy families are manipulating the financial aid process to be eligible for financial aid they would not be otherwise eligible for. They are taking away opportunities from families that really need it.”

Parents Are Giving Up Custody of Their Kids to Get Need-Based College Financial Aid

Does the S9 not support specific Headphone Jack standards?

Hello,

I have a Galaxy S9, headphone jack works fine but I ran into something interesting today. I found my old old wired pair that somehow hasn't got its left earphone inaudible, literally the only pair that has lasted THIS long. But for some reason, it does not work with my Galaxy S9. At first I thought that the pair was dead but I plugged into my computer and it's absolutely fine. So what gives?

Here is a picture of the headphone jack.
20190730_175209.jpg


I'm not really sure what's going on... I tried looking up wiring of a 4-pin headphone jack but I am not sure if there are different standards that have the 4pin jack in common but vary in wiring. Not really experienced in the audio field too much. I am guessing I can solve this issue through a wonderful adapter? Any help is appreciated. Thank you

Before the popularity of smartphones, what are you looking at in the toilet?

Nowadays, the mobile phone and us are inseparable. It can be said that wherever people go, where the mobile phone is brought, even the toilet is not missed.
The thing that could have been done in 3 minutes, since the smartphone was added, the time has been extended to 30 minutes or even longer.
So, before the popularity of smartphones, what are you doing when you go to the toilet?

Copying and Pasting HTML

I have an Android phone that works great, and an Android-powered Samsung Galaxy Tab A. Not sure what number the tablet is. With my phone, I can copy & paste html and it works great, but with my tablet it all comes out as plain text, even though my phone must be about two years older than the tablet. Anyone have any idea if I can change this, and how? I've tried playing around with settings, but have found nothing that works thus far.

Thanks,
Albanate

Input pixels normalization for image recognition app

Hello! I have started my Android app with my custom neural network model saved in .lite format. How can I do a input pixel normalization from 0 to 1 (not from 0 to 255)?
This is my modified ImageClassifier.java from repo: https://github.com/googlecodelabs/tensorflow-for-poets-2
Code:
/** Classifies images with Tensorflow Lite. */
public class ImageClassifier {

  /** Tag for the {@link Log}. */
  private static final String TAG = "TfLiteCameraDemo";

  /** Name of the model file stored in Assets. */
  private static final String MODEL_PATH = "graph.lite";

  /** Name of the label file stored in Assets. */
  private static final String LABEL_PATH = "labels.txt";

  /** Number of results to show in the UI. */
  private static final int RESULTS_TO_SHOW = 1;

  /** Dimensions of inputs. */
  private static final int DIM_BATCH_SIZE = 1;

  private static final int DIM_PIXEL_SIZE = 3;

  static final int DIM_IMG_SIZE_X = 256;
  static final int DIM_IMG_SIZE_Y = 256;

  private static final int IMAGE_MEAN = 128;
  private static final float IMAGE_STD = 128.0f;


  /* Preallocated buffers for storing image data in. */
  private int[] intValues = new int[4*DIM_IMG_SIZE_X * DIM_IMG_SIZE_Y];

  /** An instance of the driver class to run model inference with Tensorflow Lite. */
  private Interpreter tflite;

  /** Labels corresponding to the output of the vision model. */
  private List<String> labelList;

  /** A ByteBuffer to hold image data, to be feed into Tensorflow Lite as inputs. */
  private ByteBuffer imgData = null;

  /** An array to hold inference results, to be feed into Tensorflow Lite as outputs. */
  private float[][] labelProbArray = null;
  /** multi-stage low pass filter **/
  private float[][] filterLabelProbArray = null;
  private static final int FILTER_STAGES = 3;
  private static final float FILTER_FACTOR = 0.4f;

  private PriorityQueue<Map.Entry<String, Float>> sortedLabels =
      new PriorityQueue<>(
          RESULTS_TO_SHOW,
          new Comparator<Map.Entry<String, Float>>() {
            @Override
            public int compare(Map.Entry<String, Float> o1, Map.Entry<String, Float> o2) {
              return (o1.getValue()).compareTo(o2.getValue());
            }
          });

  /** Initializes an {@code ImageClassifier}. */
  ImageClassifier(Activity activity) throws IOException {
    tflite = new Interpreter(loadModelFile(activity));
    labelList = loadLabelList(activity);
    imgData =
        ByteBuffer.allocateDirect(
            4 * DIM_BATCH_SIZE * DIM_IMG_SIZE_X * DIM_IMG_SIZE_Y * DIM_PIXEL_SIZE);
    imgData.order(ByteOrder.nativeOrder());
    labelProbArray = new float[1][labelList.size()];
    filterLabelProbArray = new float[FILTER_STAGES][labelList.size()];
    Log.d(TAG, "Created a Tensorflow Lite Image Classifier.");
  }

  /** Classifies a frame from the preview stream. */
  String classifyFrame(Bitmap bitmap) {
    if (tflite == null) {
      Log.e(TAG, "Image classifier has not been initialized; Skipped.");
      return "Uninitialized Classifier.";
    }
    convertBitmapToByteBuffer(bitmap);
    // Here's where the magic happens!!!
    long startTime = SystemClock.uptimeMillis();
    tflite.run(imgData, labelProbArray);
    long endTime = SystemClock.uptimeMillis();
    Log.d(TAG, "Timecost to run model inference: " + Long.toString(endTime - startTime));

    // smooth the results
    applyFilter();

    // print the results
    String textToShow = printTopKLabels();
    textToShow = Long.toString(endTime - startTime) + "ms" + textToShow;
    return textToShow;
  }

  void applyFilter(){
    int num_labels =  labelList.size();

    // Low pass filter `labelProbArray` into the first stage of the filter.
    for(int j=0; j<num_labels; ++j){
      filterLabelProbArray[0][j] += FILTER_FACTOR*(labelProbArray[0][j] -
                                                   filterLabelProbArray[0][j]);
    }
    // Low pass filter each stage into the next.
    for (int i=1; i<FILTER_STAGES; ++i){
      for(int j=0; j<num_labels; ++j){
        filterLabelProbArray[i][j] += FILTER_FACTOR*(
                filterLabelProbArray[i-1][j] -
                filterLabelProbArray[i][j]);

      }
    }

    // Copy the last stage filter output back to `labelProbArray`.
    for(int j=0; j<num_labels; ++j){
      labelProbArray[0][j] = filterLabelProbArray[FILTER_STAGES-1][j];
    }
  }

  /** Closes tflite to release resources. */
  public void close() {
    tflite.close();
    tflite = null;
  }

  /** Reads label list from Assets. */
  private List<String> loadLabelList(Activity activity) throws IOException {
    List<String> labelList = new ArrayList<String>();
    BufferedReader reader =
        new BufferedReader(new InputStreamReader(activity.getAssets().open(LABEL_PATH)));
    String line;
    while ((line = reader.readLine()) != null) {
      labelList.add(line);
    }
    reader.close();
    return labelList;
  }

  /** Memory-map the model file in Assets. */
  private MappedByteBuffer loadModelFile(Activity activity) throws IOException {
    AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);
    FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());
    FileChannel fileChannel = inputStream.getChannel();
    long startOffset = fileDescriptor.getStartOffset();
    long declaredLength = fileDescriptor.getDeclaredLength();
    return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);
  }

  /** Writes Image data into a {@code ByteBuffer}. */
  private void convertBitmapToByteBuffer(Bitmap bitmap) {
    if (imgData == null) {
      return;
    }
    imgData.rewind();
    bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());
    // Convert the image to floating point.
    int pixel = 0;
    long startTime = SystemClock.uptimeMillis();
    for (int i = 0; i < DIM_IMG_SIZE_X; ++i) {
      for (int j = 0; j < DIM_IMG_SIZE_Y; ++j) {
        final int val = intValues[pixel++];
        imgData.putFloat((((val >> 16) & 0xFF)-IMAGE_MEAN)/IMAGE_STD);
        imgData.putFloat((((val >> 8) & 0xFF)-IMAGE_MEAN)/IMAGE_STD);
        imgData.putFloat((((val) & 0xFF)-IMAGE_MEAN)/IMAGE_STD);
      }
    }
    long endTime = SystemClock.uptimeMillis();
    Log.d(TAG, "Timecost to put values into ByteBuffer: " + Long.toString(endTime - startTime));
  }

  /** Prints top-K labels, to be shown in UI as the results. */
  private String printTopKLabels() {
    for (int i = 0; i < labelList.size(); ++i) {
      sortedLabels.add(
          new AbstractMap.SimpleEntry<>(labelList.get(i), labelProbArray[0][i]));
      if (sortedLabels.size() > RESULTS_TO_SHOW) {
        sortedLabels.poll();
      }
    }
    String textToShow = "";
    final int size = sortedLabels.size();
    for (int i = 0; i < size; ++i) {
      Map.Entry<String, Float> label = sortedLabels.poll();
      textToShow = String.format("\n%s: %4.2f",label.getKey(),label.getValue()) + textToShow;
    }
    return textToShow;
  }
}
Where do I need to add normalization option?

Help White bar blocks half of my notifications

Hello everyone

I have a (to me) very annoying problem. When I receive a notification on my Motorola One Vision, a white bar blocks about half of it, including the action shortcuts.

Does somebody have a solution for this? I have uploaded a screenshot of the problem.

I am running android pie and Nova launcher.

Thanks a lot in advance!

Attachments

  • Screenshot_20190730-114811~2.png
    Screenshot_20190730-114811~2.png
    177.9 KB · Views: 171

Need valid blank flash file or MMCBLK0.img

I hard bricked my moto g6 xt1925-6 a month ago. Actually there was an OTA update in my device and i was so excited about it. Without noticing battery percentage i started update process and now devices is dead. It means no any sign of life only white light blinks after connectin charger and is detected as Qualcomm HS-USB Qloader 9008. So I searched for blank flash file and found in https://mirrors.lolinet.com/firmware/moto/ali/blankflash/ but is not valid. It didnt work at all and gives some error. If any guys have valid working blank flash file than provide me or provide me working device mmcblk0.img so that i can boot it from sd card. Help me please :( :( :(

Help Chrome for Android and facebook.com integration

When I type in A tag name for my friends that are tagged in the reply it start the drop down menues for taging and when I choose the person it types his last name with the last two letters repeated instead of "Barakat" it type his last name adding the first two letters "Babarkat" With out the underlines that some one has been tagged in this post.... Can you have explaintion or reason for that to happen?

  • Poll Poll
Listview Images are getting Cut of at Borders

Listview Images are getting Cut of at Borders in only OnePlus all Devices

  • This Might be issue with Library?

    Votes: 0 0.0%
  • This might issue with OnePlue Devices?

    Votes: 0 0.0%

Hi Team,
I am Android App Developer, I facing an Issue only in One Plus Devices.
Issue: In Listview I have placed an ImageView in it, we are using Library (WrapContentDraweeView) to fetch the Image url and displaying on the Screen. While showing the Images on the Screen Images are cut of for 1 DP (Top, Bottom, Right, Left) on all the sides. Tried to replicate the issue in Other devices, but we can't able to reproduce this issue in other Devices.

I am attaching OnePlus Screenshot and Other mobile Screenshot, Please check the marked area.

May I know the reason why it is happening.

Attachments

  • OnePlus.jpeg
    OnePlus.jpeg
    218.6 KB · Views: 247
  • Other.png
    Other.png
    1.2 MB · Views: 270

Check for null not working

I have the following method.

Java:
    public void delete(String name, Context x) {
        String msg;
        // Check if anything input
        if (name == null) {
            msg = "No input";
        } else {
            // Count the number of rows
            String query = "SELECT COUNT(*) FROM " + TABLE_NA +
                    " WHERE " +
                    NA_NAME + " = '" + name + "';";
            Cursor c = mDB.rawQuery(query, null);
            int count = 0;
            if (null != c)
                if (c.getCount() > 0) {
                    c.moveToFirst();
                    count = c.getInt(0);
                }
            c.close();
            // Now run the delete
            query = "DELETE FROM " + TABLE_NA +
                    " WHERE " +
                    NA_NAME + " = '" + name + "';";

            Log.i("delete() = ", query);
            mDB.execSQL(query);
            msg = count + " record(s) deleted";
        }
        makeToast(msg, x);
    }

The delete process works fine but I have added the check at the beginning to see if the input is empty, and it's not working. If I try to delete a row with empty input, the Toast message is "0 record(s) deleted" rather than "No input".

The log is reporting

I/delete() =: DELETE FROM names_and_addresses WHERE name = '';

From the delete point of view the result is the same, but I plan to put a similar check in the input method as I don't want my db table filled will null records.

Can anyone see where I'm going wrong?

Filter

Back
Top Bottom