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

[GAME] [ACTION] [4.4] Slaughter 3: The Rebels

Slaughter 3 is ready to roll!

The trilogy comes to an end and reaches its peak of evolution.
This time you can assemble a team and control any character. The characters will unlock as you'll advance in the game.

fdfdHnJOGlw.jpg


The story so far:
A city hidden from the rest of the world.

For years it had been used as a massive prison complex, where all the most dangerous criminals were sentenced for life to be kept locked away in forever. Thousands of thieves, thugs, and killers festering in their anger and rage, wanted to break free.

Now, the prison’s walls have fallen…

The entire complex has been overrun by the enraged criminals. All personnel and security were slaughtered, and local inhabitants forced to flee to the nearby woods.

You alone are left, soldier! Your partner has gone missing and communication with them was lost. To survive this lawless uprising you’ll need to be tough and prepared.
Arm yourself with the best weapons, recruit allies, and find a way to escape this chaos.

Gameplay:

gxoWb_3hBKs.jpg


As in previous games in the series, the game has a story mode and arena mode. In this part, free mode is also added. The player is provided with a small city for exploring, searching for new weapons and battles with enemies.
But essentially Slaugher remains the same meaty and fun shooter.

Graphics and optimization:

1I3EhPfW6mA.jpg


This time the visuals was pulled to a new level. Every material is bump-mapped and has variable roughness. Also added some implimentation of SSR (reflections) to complete the picture.
As for optimisation: the game can be played on almost all devices with 1GB of ram and higher. Even potato ones can run this game (on lower settings, of course).

uWYkqRYJ3eY.jpg

Bbu-IhLM-7I.jpg


If you not familiar with the "Slaughter" games yet, this is the time to give it a try.

Trailer:

Google Play: https://play.google.com/store/apps/details?id=com.venomizedArt.SlaughterRebels

App Downloaded from Play Store Crash

I have published a simple game to learn the publishing process, Popprz, on both Apple and Google developed using Cocos2d-x.

The downloaded & installed game runs happily on some devices, Huawei P10 & Samsung Galaxy 10 for example, but crashes on a Samsung S6 & Honor 8 Pro.

When I try to debug the issue from Android Studio I find I can happily debug the same app on, for example, the Samsung S6 & Honor 8 Pro - no problems :[

Can anyone suggest how I should try and identify the problem(s)?

Thanks

SQL JSON get array instead of object

Hi.

i am using this code to get some info from a sql database.

I can't figure out how to return a array if there are more than one record with the same email.


Somehow i have to put the $stmt->fetch(); in a while function and then array_push it together i think.

in java then create a array and load it in to it.

Can someone help??


Regards Danni.


PHP:
Code:
if (!empty($_POST)) {

    $response = array("error" => FALSE);

    $query = "SELECT * FROM users WHERE email = :email";

    $query_params = array(
        ':email' => $_POST['email']
    );

    try {
        $stmt = $db->prepare($query);
        $result = $stmt->execute($query_params);
    }

    catch (PDOException $ex) {
        $response["error"] = true;
        $response["message"] = "Database Error 1";
        die(json_encode($response));
    }

    $validated_info = false;
    $email = $_POST['email'];

    $row = $stmt->fetch();

        $response["error"] = false;
        $response["user"]["uid"] = $row["unique_id"];
        $response["user"]["name"] = $row["name"];
        $response["user"]["email"] = $row["email"];

        die(json_encode($response));

}

JAVA:
Code:
StringRequest strReq = new StringRequest(Request.Method.POST,
                Functions.LOGIN_URL, new Response.Listener<String>() {

            @Override
            public void onResponse(String response) {
                Log.d(TAG, "Login Response: " + response);
                hideDialog();

                try {
                    JSONObject jObj = new JSONObject(response);
                    boolean error = jObj.getBoolean("error");

                    // Check for error node in json
                    if (!error) {
                        // user successfully logged in
                        JSONObject json_user = jObj.getJSONObject("user");

                    } 
                } catch (JSONException e) {
                    // JSON error
                    e.printStackTrace();
                    Toast.makeText(getApplicationContext(), "Json error: " + e.getMessage(), Toast.LENGTH_LONG).show();
                }

            }
        }, new Response.ErrorListener() {

        }) {

            @Override
            protected Map<String, String> getParams() {
                // Posting parameters to php
                Map<String, String> params = new HashMap<String, String>();
                params.put("email", email);

                return params;
            }

        };

System doesn't unmute notifications

When I mute using the hot key in the tray, all options go to mute. However, when I deselect same button and return soind, media & calls return to same level as before however the notifications option stays mutted. It didn't always do this but it's been going on for at least a few months. I'm up to date on system updates. Android 9 Kernal 4.4.153 July 31.

Any known fixes?

Apps Is there possibility to "Auto-start" application when users become inactive?

Hi,
I have to create an app, which detects user inactivity, and then start activity which displays some videos with WebView, and then when displaying with WebView is finished, it has to play videos from SDCard. I've already handled part with WebView and SDCard (with JavaScriptInterface etc.)
This application has to work with API 19 all the way to the newest one.

The question is - Is there a possibility to detect if user is inactive and start my application, or keep the app running in background, and then start activity in the foreground after the user becomes inactive for certain time?

I'm not trying to play ads, when user is not looking at his screen. Application is for my client, who have stores with all kind of electrical equipments, including smartphones. The goal is to play video presentations with hardware details specific for each smartphone (informations about processor, ram, camera, screen etc.).

In short: I have to make an app which is similar to "Demo Apps" created for example by Samsung (playing some kind of presentations on screen).

So far I've read and tested things like:

1) BroadcastReceiver with combination of ACTION_SCREEN_OFF / ACTION_SCREEN_ON events.

Receiver works properly, I can detect this event and then start activity, but... The screen is already off so i can't see the displayed activity - it's visible running in the foreground after unlocking the phone. Is there a way to unlock the phone when the event is received?

That's my code so far.
EventReceiver Class:
Code:
class EventReceiver: BroadcastReceiver() {
   override fun onReceive(context: Context, intent: Intent) {
       StringBuilder().apply {
           append("Action: ${intent.action}\n")
           append("URI: ${intent.toUri(Intent.URI_INTENT_SCHEME)}\n")
           toString().also { log ->
               Log.d(TAG, log)
               Toast.makeText(context, log, Toast.LENGTH_LONG).show()
           }
       }

       if (intent.action == Intent.ACTION_SCREEN_OFF) {
           val i = Intent(context, MainActivity::class.java)
           context.startActivity(i)
       }
   }
}

MainActivity Class:
Code:
val br : BroadcastReceiver = EventReceiver()
val filter = IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION).apply {
   addAction(Intent.ACTION_SCREEN_OFF)
   addAction(Intent.ACTION_SCREEN_ON)
   addAction(Intent.ACTION_BOOT_COMPLETED)
}

2) Foreground Services - I read that this is a great way to make some asyc stuff in the background and show notifications to user. Is there a way to start the activity with it?

3) Job Scheduler

4) Daydream / Dream Service - it actually works great with almost every API and manufacturer, but.. there's no way to set the app as Screen Saver on Huawei/Honor smartphones, at least from phone settings, I've read that this is possible with ADB etc. but this is not an option that I can use here.

It seems that none of these fullfill my expectations.

Micro Launcher

I'm writing a new launcher. The smallest in size, memory use and quickest speed and navigation possible. Multiprocessor use everywhere possible. Completely different than other launchers. Here is an Alpha stage screenshot.

Attachments

  • Screenshot_20190908-174649.png
    Screenshot_20190908-174649.png
    144.9 KB · Views: 185

v40 Virus Issue

Try this: Go to Google Chrome (if that is your browser) tap it to open, scroll to settings, tap that and scroll to Site Settings, tap that and scroll down to Pop Ups and redirects and make sure that is toggled to Blocked. Then hit All Sites, and find the site you're having issues with, tap on it and hit either delete for stored data under Useage or Clear & Reset under Permissions. I've had success with this when having problems with pop up ads on various websites.

SD card not showing

Oops, it did it again. This time the Samsung battery fell out because I had the cover off for obvious reasons. The phone stopped working again. I put the Samsung battery in the "oldest" S5 and now IT'S apparently charging ok with the new, official Samsung charger. What the heck is going on here?

Aliens and Facebook

just saw a thing on msnbc saying that 2 million have rsvp for this event...........i think it set in 5 days. curious to see how that goes.
Last I [halfway] heard, it's not going to happen--at least not as planned. It now looks like some people are going to show up, but in a different, nearby location.

As noted, I wasn't paying full attention, so I may have gotten it wrong.

Filter

Back
Top Bottom