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

Client Not Ready

I just tried to change my launch activity and I am now getting a "Client not ready" error when I try to launch.

Here is my manifest:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.poc.justamap">

    <!--
         The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
         Google Maps Android API v2, but you must specify either coarse or fine
         location permissions for the 'MyLocation' functionality.
    -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />

    <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">

        <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="MY_API_KEY" />

        <activity
            android:name=".MapsActivity"
            android:label="@string/title_activity_maps">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

I changed only the activities. Here is what it was:
Code:
        <activity
            android:name=".MapsActivity"
            android:label="@string/title_activity_maps"></activity>
        <activity android:name=".WelcomeActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

I made that change, and deleted the layout & code for WelcomeActivity. I also changed the configurations, once to explicitly define MapsActivity as the launch activity, and once setting it to default. Same result both times.

If I put everything back, it works fine.

Obviously I'm doing something wrong, but I'm not seeing it. Anyone have any ideas?

LineageOS 15.1 System UI crashes when tapping on app in App Switcher

Hi! So, I recently updated my older Lenovo Vibe K5 to LineageOS 15.1 and installed a custom kernel. All nice and smooth, until I want to go back into an app. The Recent Apps switcher pops up, apps are there, however, when I select an app, System UI has stopped, and, after that, Android doesn't react to the home button (capacitive) and System UI crashes each time I invoke the app switcher.

Any help? I cannot install another ROM, as I have some data on that phone that I cannot lose. A full backup of the apps would do and allow another ROM installation, but from what I experimented today and yesterday, Titanium Backup doesn't backup my Messages, app accounts and other data that apps create and use. Basically, at a restore, those apps start fresh.

Open Beta 23 & 15 for Oneplus 6 & 6T

Still more updates and features for the OnePlus 6 & 6T on Open Beta

OnePlus have just started the Open Beta 23 & 15 OTA roll out for the OnePlus 6 & 6T to test new features and fixes that may or may not, come to future firmware updates. You will only receive this test firmware OTA if you are already on their Open Beta releases.

Changelog

System
  • General bug fixes and stability improvements
Screen Recorder
  • Hide floating widget while recording
  • More options added for resolution, fps and bit rate
OnePlus Laboratory
  • Brand new UI design
  • Added DC dimming feature
Weather
  • Added popular cities for search suggestions

Android Security patch is still, obviously, July 2019

Camera version is now 3.0.43

This is the 15th Open Beta release for the 6T in 204 days = 1 update, on average, every 14 days.

(N.B. Open Beta is NOT available for the T-Mobile (USA) carrier minority variant firmware)

Implementing Search Filter in Adapter that parses a JSON

I would like to implement a search filter in my adapter class (used in a fragment class showing a list of colors), but although I managed to do it for simpler examples, I don't know how to proceed in this class that receives a json array; I would like to filter the search on the colorCode, since I am not using pojo classes I don't know how to filter just using strings in getFilter() method. Thank you.

Java:
package ...

import...

public class ColorListAdapter extends RecyclerView.Adapter {

   private JSONArray colorList;

   public ColorListAdapter(JSONArray json){
       super();
       if(json != null){
           this.colorList = json;
       }
   }

   @NonNull @override
   public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
       View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.fragment_color_view, viewGroup, false);
       return new ColorListHolder(view);
   }

   @override
   public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int i) {
       try {
           ((ColorListHolder)viewHolder).setContentValue(i);
       } catch (JSONException e) {
           e.printStackTrace();
       }
   }

   @override
   public int getItemCount() {
       return this.colorList.length();
   }

   private class ColorListHolder extends RecyclerView.ViewHolder {

       private TextView colorCodeText;
       private TextView colorNameText;
       private CardView imageView;

       public ColorListHolder(@NonNull View itemView) {
           super(itemView);
           this.colorCodeText = itemView.findViewById(R.id.colorCode_text);
           this.colorNameText = itemView.findViewById(R.id.colorName_text);
           this.imageView = itemView.findViewById(R.id.colorView);
       }

       public void setContentValue(int index) throws JSONException {
           this.colorNameText.setText(((JSONObject)colorList.get(index)).getString("Name"));
           this.colorCodeText.setText(((JSONObject)colorList.get(index)).getString("ColorCode"));
           this.imageView.setCardBackgroundColor(Color.parseColor(((JSONObject)colorList.get(index)).getString("HexString")));
       }
   }

}

Weird noise and muffled music.

hi. So basically I was watching youtube on my phone and suddenly the video paused and my phone made a weird pop, or crack sound. Then muffled music started playing from the speaker. It was some pop or hip pop song I've heard before, can't remember exactly cause it freaked me out haha. So basically I turned off my phone and have been very scared of it haha.. Any suggestions on what to do?

Can't make Toast

I'm following a tutorial to create and edit a simple database/table. All works fine, so I thought I would add a Toast message to let the user know the record had been added. Seemed simple enough, just add

Code:
Toast.makeText(getApplicationContext(), "Record added", Toast.LENGTH_SHORT).show();

after the database update. Thing is, it doesn't seem to understand getApplicationContext(). Every example I've seen for Toast is the same, so I'm stymied.

I don't know if the fact I'm using androidx makes any difference...

Help Galaxy S10+ NO NOTIFICATION SOUND OR POP UP!

I previously had a galaxy S9+ and it randomly stopped showing notifications or playing the sound for them. The only indication is the screen waking up so unless I am looking at the phone when I get a text, facebook message, email, voicemail, etc I won't know about it. We switched from sprint to at&t and got upgrades so now I have a galaxy S10+. I thought this would fix the issue but even with the new phone, the problem persists. The notification settings are turned on and I have tried all fixes from the first 2 pages of google when looking up the issue and tech support was no help. Does anyone know how to fix this?

Rendering graphics in android

Hi everyone. im relatively new to android specifically but i have 20 odd years in differnt programming languages.
For my third attempt i have tried to build an android version of a windows that is like google maps that stitches map tiles together and then rotates it if needed.
I creates a new class extends surfaceview and implements runnable to draw the map. if you just load and draw its laggy and adding rotate on the completed map just cripples the performance to being unusable.
If i then use google maps or other drawing apps like games, it is super smooth and renders fast.
Is there a trick i am missing with android that allows it to render or draw faster?
I have removed all the object creation from the draw loop. removed all the strings and just stripped it down to drawbitmaps and rotate with matrix.

ayuda para localizar mi movil

hola a todos espero y puedan ayudarme me robaron mi samsung galaxy s7 edge con cuentas tanto en samsung como en google ya trate de localizarlo por las dos y no he podido me llego un correo de facebook k kisieron cambiar mi contraseña desde esta direccion ip 2806:1000:8001:5e88:70a7:ccaa:1f2a:41e9 pero por mas k he buscado no he podido ubicarlo agradeceria cualquier ayuda y disculpen si se les hace tonta mi pregunta

Android drawing

Hi everyone. im relatively new to android specifically but i have 20 odd years in differnt programming languages.

For my third attempt i have tried to build an android version of a windows that is like google maps that stitches map tiles together and then rotates it if needed.

I creates a new class extends surfaceview and implements runnable to draw the map. if you just load and draw its laggy and adding rotate on the completed map just cripples the performance to being unusable.

If i then use google maps or other drawing apps like games, it is super smooth and renders fast.

Is there a trick i am missing with android that allows it to render or draw faster?

I have removed all the object creation from the draw loop. removed all the strings and just stripped it down to drawbitmaps and rotate with matrix.

Problem with Android Image classification app start

Hello everyone! While I try to run my custom Image classification app, I am getting a mistake:
Code:
java.lang.IllegalArgumentException: Cannot copy between a TensorFlowLite tensor with shape [1, 30] and a Java object with shape [1, 1].
 at org.tensorflow.lite.Tensor.throwIfShapeIsIncompatible(Tensor.java:282)
 at org.tensorflow.lite.Tensor.throwIfDataIsIncompatible(Tensor.java:249)
 at org.tensorflow.lite.Tensor.copyTo(Tensor.java:141)
 at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:161)
 at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:275)
 at org.tensorflow.lite.Interpreter.run(Interpreter.java:249)
 at com.example.android.tflitecamerademo.ImageClassifier.classifyFrame(ImageClassifier.java:117)
 at com.example.android.tflitecamerademo.Camera2BasicFragment.classifyFrame(Camera2BasicFragment.java:663)
 at com.example.android.tflitecamerademo.Camera2BasicFragment.access$900(Camera2BasicFragment.java:69)
 at com.example.android.tflitecamerademo.Camera2BasicFragment$5.run(Camera2BasicFragment.java:558)
 at android.os.Handler.handleCallback(Handler.java:873)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:201)
 at android.os.HandlerThread.run(HandlerThread.java:65)

My model parameters are:
Code:
== Input details ==
name: x shape: [  1 256 256   3]
type: <class 'numpy.float32'>
 == Output details ==
name: Identity shape: [ 1 30]
type: <class 'numpy.float32'>

I use .lite format with quantization.
If you know how to help me, please, write! Also, I can show all my codes for rewriting.

Font color problems after system update

I have a Samsung J7 with a purchased Theme. I liked my theme. Just got a system update, and now the colors are weird. The main issue I have with it is that, for example, samsung S20 ultra 5g klingelton
when I go into Settings, the head labels (ie- Display, Wallpaper, Lock Screen, etc) are now all in a black font (over a dark purple background, so they are basically unreadable). How do I keep my theme but change select font colors?? I also do not like that things such as the background of the top (where is says "Settings" is now white with black letters, instead of staying with the theme of dark purple background with green font color. I have tried reapplying the theme, but that didn't work)
galaxy note 10+ ringtone: https://klingeltonemp3.info/samsung-galaxy-note-10-cosmos.htm

Stop app running web view

I have purchased a new tablet (Amazon Fire 7) specifically to run an app for my work. However, the app has now updated and now defaults to webview.

I have made contact with the tech team and they say it will run web view on tablets and only app view on phones. The web view on this small tablet is useless! Very fiddly having to zoom and scroll etc.

My question is...can I trick the app into displaying app view?

Thanks in advance ☺

factory messages app not working properly

Two days ago, out of nowhere and without changing any settings, the factory text/Messages app started acting up. The notification sound will not sound off, the vibration will not vibrate, the app button will not show how many new messages there are, and the notification light will not light up. I have restarted the phone and it fixed nothing. I need help please, I love the factory messaging app and need it work. Is anybody else experiencing this problem, and is there a fix?

Filter

Back
Top Bottom