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

The special relationship just got a bit more.. special

Actually Trump has this week said that a condition for a deal is that US tech companies don't pay taxes on their activities here, i.e. that the measures Hammond announced that are due to come into effect next year are dropped. Johnson has said he supports them, but he always says what he thinks the people he's speaking to want to hear and it never means anything. Truss (in charge of trade) believes in bending over for anyone with money or power, so will happily sell the country out for nothing.

T-Mobile (USA) update 9.0.13

A new update, 9.0.13, for the T-Mobile (USA) carrier minority variant of the OnePlus 6T has begun rolling out.

Changelog:
  • Android July Security update


Camera version is yet again the same old 2.9.43
(You can update to the most recent global camera version 3.0.43)

This is the 8th T-Mobile (USA) update in 281 days

(N.B. This update is only for the T-Mobile (USA) minority carrier variant and NOT the global OnePlus 6T model)

See, also...

T-Mobile 6T to Global model Conversion (WITHOUT unlocked bootloader/SIM unlock!)

How to set different notification sounds for apps

I followed your instructions and there is no Sound option in Advanced in my version 9.
Notification only has On with no other options. My version 9 is missing these functions!
Glad you got it fixed but you have to click where it says Notifcations On.That opens up a second menu that will have Mail among a list of options, you click that. Every app on your phone has a menu like this under Android settings, you could change your text notification the same way.

Edit: for the default messages app it's:
Apps & notifications> Messages> Notifcations > Other notifictions>Advanced>Sound
edit 2: I just tried the way going through Gmail's settings, it takes you to the same system menu. Only difference would be going through Apps & Notifications you can change the sound for any app all the same way.

Here is what the end menu will look like, this is a screenshot from a g6 on Android 9
neyeqMm.png

Apps Can't create handler inside thread that has not called Looper.prepare()

The first thing you should do is re-evaluate why you are trying to use a handler in a thread other than the UI thread (which as a system-supplied looper).

Handlers only work by virtue of loopers. Almost everybody who uses handlers uses them in the UI thread because the UI thread runs under a looper. A looper is like a dispatcher that dispatches events to handlers in your code. These events can be anything from button presses to timers expiring. The UI code is built upon the idea that it is supposed to respond to events and then quickly return to the system (which is a looper).

A worker thread, on the other hand, is generally something that you start up to do something on its own without any interaction with the user. There are special mechanisms provided by Android to allow a worker thread to signal to the UI how it is going and when it is done. But basically the thread just runs straight line code, being interrupted only by Android OS time sharing and by calling blocking system methods (functions that must wait for something to happen before they can return.) It is never a good idea to have a thread sit "spinning its wheels" so to speak.

So if you really want to use a handler in your worker thread (as distinct from the User Interface thread on which the rest of your app runs) you have to become very familiar with loopers and how they are used. But I suspect you don't really want to create a handler. If you want to communicate with the UI thread, then use one of the recommended methods of doing that.
I figured out this question by removing from the code the creation of a new MainActivity class to access the variable inside it. That was my biggest mistake.

NestedScrollView and Searchbar

I hope is not too late to answer your question.

In your MainActivity, you can use
CoordinatorLayout, which used to include a new layout called app_bar_searchable, and also wrap your recyclerView.

Example

Java:
<?xml version="1.0" encoding="utf-8"?>

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.design.widget.CoordinatorLayout
        android:id="@+id/coordinatorLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <include
            android:id="@+id/include"
            layout="@layout/app_bar_searchable" />

        <android.support.v4.widget.SwipeRefreshLayout
            android:id="@+id/swipe_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_behavior="@string/appbar_scrolling_view_behavior"
            tools:layout_editor_absoluteX="0dp"
            tools:layout_editor_absoluteY="134dp">

            <android.support.v7.widget.RecyclerView
                android:id="@+id/workRequestRecyclerView"
                android:name="zoinla.com.mypropertytech.fragment.WorkRequestFragment"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:clipToPadding="false"
                android:paddingBottom="@dimen/recyclerview_padding_bottom"
                app:layoutManager="LinearLayoutManager"
                tools:context=".ui.fragment.WorkRequestFragment"
                tools:listitem="@layout/fragment_workrequest" />
        </android.support.v4.widget.SwipeRefreshLayout>
    </android.support.design.widget.CoordinatorLayout>

</android.support.constraint.ConstraintLayout>

Then in your app_bar_searchable, you can design whatever you want it to be looked like.

Java:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.AppBarLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/SearchableActionBar">
    <android.support.design.widget.CollapsingToolbarLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_scrollFlags="scroll|enterAlways">
        <android.support.constraint.ConstraintLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/round_background"
                android:elevation="1dp"
                android:layout_marginTop="@dimen/container_margin_large"
                android:layout_marginStart="@dimen/container_margin_large"
                android:layout_marginEnd="@dimen/container_margin_large"
                android:layout_marginBottom="@dimen/container_margin_tiny">
            <ImageView
                    android:id="@+id/imageView3"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_marginStart="@dimen/container_margin_medium"
                    android:src="@drawable/ic_search_24dp"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="parent"/>
            <EditText
                    android:id="@+id/edtSearchFilter"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:paddingTop="12dp"
                    android:paddingBottom="12dp"
                    android:layout_marginStart="@dimen/container_margin_small"
                    android:textSize="@dimen/text_info"
                    android:textCursorDrawable="@null"
                    android:hint="@string/hint_search"
                    android:background="@null"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintEnd_toStartOf="@+id/imvClearSearch"
                    app:layout_constraintStart_toEndOf="@+id/imageView3"
                    app:layout_constraintTop_toTopOf="parent"/>
            <ImageView
                    android:id="@+id/imvClearSearch"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:paddingStart="@dimen/container_padding_medium"
                    android:paddingEnd="@dimen/container_padding_medium"
                    android:src="@drawable/ic_close_24dp"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintTop_toTopOf="parent"
                    android:visibility="gone"/>
            <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content" android:src="@drawable/ic_menu_24dp"
                    android:id="@+id/imvLogOut"
                    android:visibility="gone"
                    android:tint="@color/colorTextAccent"
                    android:layout_marginTop="8dp"
                    app:layout_constraintTop_toTopOf="parent" android:layout_marginBottom="8dp"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintEnd_toEndOf="@+id/edtSearchFilter" android:layout_marginEnd="8dp"/>
        </android.support.constraint.ConstraintLayout>
    </android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>

caldav calendar

Hi im looking for (free) application thats alows me connect to caldav server (baikal).
Url is look like http://companyweb.com/dav/cal.php/calendars/<username>/<calendarid>/ (autodiscovery is not supported).
I already tried some applications like "Caldav Sync Free Beta" or "Blue Mail" but with no success.
Tried url modifications:
Code:
http://companyweb.com/dav/cal.php/calendars/<username>/<calendarid>/
http://companyweb.com/dav/cal.php/calendars/<username>/
http://companyweb.com/dav/cal.php/calendars/
http://companyweb.com/dav/cal.php/
On pc (with thunderbird) work first perfect

Thanks for any sugestions

NestedScrollView does not scroll when RecyclerView scrolls

Hi friends, I have a RecyclerView in NestedScrollView. I set the size of the RecyclerView according to the screen size of the user. In this case, the recyclerview layout_height is 700dp, for example.

In this case, the problem is; The NestedScrollView does not scroll while the recyclerView is scrolling, and the nestedScrollView.setOnScrollChange method is not triggered.

What I want is; When scrolling on the recyclerView, NestedScrollView is also shifted and the nestedscrollView.setOnScrollChange method is triggered in any case. I've shared the layout below.
Is there anyone who can help?

Code:
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/nestedScrollView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">

                <androidx.appcompat.widget.SearchView
                    android:elevation="10dp"
                    android:id="@+id/searchView"
                    android:layout_width="match_parent"
                    android:layout_height="100dp"
                    android:layout_margin="4dp"
                    android:layout_marginStart="8dp"
                    android:layout_marginTop="8dp"
                    android:layout_marginEnd="8dp"
                    android:background="@color/colorAccent" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/recyclerView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_margin="4dp"
                    android:layout_marginTop="8dp"/>
            </LinearLayout>


</androidx.core.widget.NestedScrollView>

Memory booster pop up

There are three possibilities:

1) you didn't actually uninstall it (e.g. you just removed it from the desktop rather than uninstalling the app)
2) this is a different "memory booster", either built-in or which you installed (perhaps as part of something else)
3) these are not messages from a memory booster app but ads for that app being pushed by something else

The first thing is to check that it's really not installed. Go into your Settings > Apps and make sure it's not there. If it is, kill it with fire (all "memory booster" apps are scamware, and have no place on any android device).

GIFs not showing inline

1. I am already using the newest version of gmail for Android.

2. I had to uninstall Gboard for another reason. When I reinstalled it, I started having this problem where GIFs are not inserted inline, they are inserted as attachments. I am using the newest version of Gboard and the newest version of Gmail.

Let me ask a question. When you guys insert a GIF from the button to insert GIFs, does it insert the GIF inline like it used to do for me?

Filter

Back
Top Bottom