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

[no banner bug] Insane bird, flappy bird's extended version for android

Keep up the good work. Honestly... the fact that you got this far and are posting to Android Forums asking for help and advice is a great sign. Keep coming back and letting us know how you're doing as things develop!

You know I'm thinking to add a feature were you'll kill the birds using obstacles instead being the bird.
Will it fit the game?

Help Force display to turn off

Thank you for the suggestions. I spent almost 10 mins setting up the app choosing the artist I like from a large list and now play its customized list, which I assume is adjusted if I thumb up or down a tune. Although it's not required, I find that feature neat. Is either of those apps have something alike?

I am not sure what you mean.

NewPipe works much the same as Youtube, except that it will play in the background, pop up player, and download.

MusicPipe only plays the music on Youtube, and allows background play.

Both have no ads and are free.

Annoying emoji on enter key how do I disable it

Get a different keyboard.

Depending on your needs, there are two that I like a lot.

Simple Keyboard
(no frills. just a keyboard)

Hacker's Keyboard
(pretty plain, but lots of options to customize)

If you want something with more bells and whistles, try SwiftKey.

Also, if I remember right (it's been a long time since I used G-Board), I think there is a setting in the app to remove the emoji key.

I might be wrong on that, or have been dealing with a different version of G-Board.

[GAME][FREE] Rotio - stop at the right time.

Android_Banner_Rotio.png




Try Now

Stop the shapes in a target in time and don't let it go or you'll lose!
Beat the levels by centering the shapes, if you hit special shapes you will get coins!



★ What makes the Rotio game special ★
• Easy one-touch control
• Endless gameplay
• Challenge your friends in the online leaderboard
• Unlock all the achievements
• More levels and shapes coming soon!
Will you be able to unlock the hidden achievement?




Thanks and I hope you enjoy!

Issues while replicating hard coded activity, programmatically in onCreate()

Good morning.

I am trying to create a simple Tic Tac Toe grid, however I am facing issues with correctly filling up the space with the child views.

Originally I hard coded the activity where I have a GridLayout (a custom one to make it square) and it contained 9 ImageViews which filled up the whole Grid perfectly. I do not have the original code of this, but I quickly replicated it below.

activity_test.xml
Code:
<androidx.constraintlayout.widget.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"
tools:context=".test">

<com.example.tictactoebot.Activities.SquareGridLayout
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:background="@color/black">

    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="0"
        android:layout_column="0"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="0"
        android:layout_column="1"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="0"
        android:layout_column="2"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="1"
        android:layout_column="0"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="1"
        android:layout_column="1"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="1"
        android:layout_column="2"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="2"
        android:layout_column="0"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="2"
        android:layout_column="1"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/white"
        android:layout_row="2"
        android:layout_column="2"
        android:layout_rowWeight="1"
        android:layout_columnWeight="1"
        android:layout_margin="10dp"/>

</com.example.tictactoebot.Activities.SquareGridLayout>

Image of what the result of this activity is.


Now I tried to recreate this programmatically, because I want to vary the size of the board. I tried to set the above exact variables in code as well, but for some reason only the top rows are shown.
Within the OnCreateView of the fragment, I create a GridLayout and all the required Squares (extended ImageView). The code does work, but it has some flaws.Currently only the top row of squares are shown, but they take up the whole screen. If I remove the row/column weight and set an actual height and width for each square, then they do show up. The latter is already a step better, but preferably I do not want to calculate the size of each square. Especially since the hardcoded activity works just fine with automatically taking up the whole grid.

tictactoeboard.class
Java:
private Square[][] board;
private static int boardSize = 3;
private SquareGridLayout grid;
private int squareMargin = 5;


public TicTacToeBoard() {
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_tic_tac_toe_board, container, false);

    FrameLayout frame = view.findViewById(R.id.tic_tac_toe_board);

    frame.setBackgroundColor(getResources().getColor(R.color.colorAccent));

    grid = new SquareGridLayout(getContext());
    grid.setLayoutParams(new LinearLayout.LayoutParams(
            LinearLayout.LayoutParams.MATCH_PARENT,
            0
    ));
    grid.setBackgroundColor(getResources().getColor(R.color.colorPrimaryDark));
    grid.setRowCount(boardSize);
    grid.setColumnCount(boardSize);

    frame.addView(grid);

    Square square;

    board = new Square[boardSize][boardSize];

    for(int x=0; x<boardSize; x++){
        for(int y=0; y<boardSize; y++){

            square = new Square(getContext());

            //Square definition
            square.setBackgroundColor(getResources().getColor(R.color.white));
            square.setEnabled(true);

            square.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    humanClickedButton((Square)v);
                }
            });

            //Grid location
            GridLayout.LayoutParams gridParams = new GridLayout.LayoutParams();

            gridParams.height = 0;
            gridParams.width = 0;

            gridParams.topMargin = squareMargin;
            gridParams.bottomMargin = squareMargin;
            gridParams.leftMargin = squareMargin;
            gridParams.rightMargin = squareMargin;

            if(x == 0){
                gridParams.topMargin = 0;
            }
            else if(x == boardSize-1){
                gridParams.bottomMargin = 0;
            }

            if (y == 0) {
                gridParams.leftMargin = 0;
            }
            else if(y == boardSize-1){
                gridParams.rightMargin = 0;
            }

            gridParams.rowSpec = GridLayout.spec(x, 1f);//Setting weight to 1
            gridParams.columnSpec = GridLayout.spec(y, 1f);//Setting weight to 1

            square.setLayoutParams(gridParams);


            //Store copy locally
            board[x][y] = square;


            grid.addView(square, (x*3+y));
        }
    }

    return view;
}

The fragment where the GridLayout and Squares are added to:
fragment_tic_tac_toe_board.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".Activities.Fragments.TicTacToeBoard"
    android:layout_margin="20dp"
    android:layout_gravity="center_vertical"
    android:id="@+id/tic_tac_toe_board">
</FrameLayout>

I must have missed something while converting the hardcoded activity to the onCreateView code.
If anyone can point me in the right direction, that would be greatly appreciated. :-)

No connection error

Earlier on today I got an email saying an item I have for sale on market place was against copy rights so had been removed.

Since then each time I try and access Facebook either through the app or on Internet browser, on my phone or laptop. It asks me to log in, then identify myself and when I click to go onto the next stage it comes up with a white screen saying connection lost.

My Internet is fine. Everything else is working apart from Facebook messenger.

I have followed every help online I can find. I have rest my phone, factory reset it, deleted and reinstalled the app countless times. I have cleared the cache twice.

I am at a loss please help.

Could be your account login has been suspended? If so, the only fix for that is from Facebook support, and nothing we can do here.

Rooting cannot stream videos from showmax app

Just to clarify, is your S9 Plus rooted or not?

If your phone isn't and this is apparently a false negative matter, try going into the Settings >> Apps menu, find and open the Showmax app listing, tap on Force Stop, and then find and tap on 'Clear data'. Using Clear data removes all that app's settings and config files, along with wiping it cache. This returns the app to its first time used state so now when you start it up you'll need to re-enter your login and password info. Something in the app previously mistook the not-rooted state of your phone.
But if your phone is rooted, a lot of online services (streaming content sites, banking sites, etc.) are averse to working on rooted devices because of the pervasive problems of piracy (DRM can be more readily bypassed) and security (interactions involving financial matters need to be tightly curated).

Which phones are shipping with Android 10?

What was Android 9 called?
"Pie".

Which (as I admit I've said before) I never used, because to me it always sounded stupid, in addition to which on my side of the Atlantic does not imply a dessert (I gather that this is something where the cultural assumptions are different: "pie" without qualifiers is most likely to be sweet in the US but savoury in the UK). So I always just called it "9" myself.

(I'm currently on the February patch of Android 10: one good thing about Pixels is that you do get all of the security updates promptly).

Galaxy S5 not updating Android system

Hi, newbie here.
I have a Samsung Galaxy S5. The Android system has not updated beyond ver. 5.0. Here are numbers that may help provide a solution.
Ver. 5.0
Baseband ver. G900AUCU4BOF2
Kernel ver. 3.4.0-4432708
Please tell me how to get the phone to update to the most recent version.
Thanks, thelonius
Go to #1.2 of the 42 Galaxy S5 models - Dummies Guide to determine exactly which of the 42 models of the 6 year old Galaxy S5 you have. It would seem to be the hybrid AT&T model which has not been supported by the carrier for around 3 years. If it is the G900A variant, then I am afraid that what you have is as good as it gets as this model cannot be rooted for custom ROM's... see #1.6 of the previous link.

Not booting up

Thanks Dannydet and mikedt for your responses. I'm in contact with the seller. One thing I'd like to mention, I could get the phone boot up successfully after a few tries: first boot into the stage where the screen shows list of different lower level operations (factory reset, boot into bootloader ...) and then try a few times (I could not figure out a special sequence of what I did), then the phone would boot into normal state. If I do a normal shutdown, then all the problems come back again.

So I'm wondering if this indicate hardware issue (I'll need to return it back to China) or a software issue (hopefully can be fixed by new firmware or OS update) ?

Filter

Back
Top Bottom