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

[Free][Game] Night Watchman

NIGHT WATCHMAN is an action packed run and gun platformer. It features cartoonish graphics, engaging story, various weapons and boss battles.

Check it out on Google Play. It's free.
https://play.google.com/store/apps/details?id=com.alchemist.nightwatchman

small 2.png


You play as Pierre, a retired special forces soldier now working as a night security guard in a bio research lab.
Survive your first night on the job battling robbers and monsters.

small 1.png

How come Im getting the default value the first time running the app?

Im following the steps laid out here for using the Settings Activity Template and despite some changes (e.g. now a root_preferences.xml file gets created instead of multiple xml files for different preference screens when selecting the Settings Activity template) I pretty much have nailed down the steps very similarly.

It says towards the end:

The first time you run the app, you should see "-1" displayed in the Toast because you haven't changed the setting yet.

However, instead of -1, Im seeing US as the toast message. Im thinking thats because its the default value, but they also set the default value as the US, yet the expectation according to the instructions is -1 the first time they run the app...how come?

Here is my code and the result Im getting first time running the app

SettingsActivity.java:

package com.example.droidcafe;

import android.os.Bundle;

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.preference.PreferenceFragmentCompat;

public class SettingsActivity extends AppCompatActivity {

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.settings_activity);
if (savedInstanceState == null) {
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.settings, new SettingsFragment())
.commit();
}
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
}
}

public static class SettingsFragment extends PreferenceFragmentCompat {
@override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
setPreferencesFromResource(R.xml.root_preferences, rootKey);
}
}
}

MainActivity.java:

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

FloatingActionButton fab = findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@override
public void onClick(View view) {
Intent intent =
new Intent(MainActivity.this, OrderActivity.class);
intent.putExtra(EXTRA_MESSAGE, mOrderMessage);
startActivity(intent);
}

});

PreferenceManager.setDefaultValues(this,
R.xml.root_preferences, false);

SharedPreferences sharedPref = PreferenceManager
.getDefaultSharedPreferences(this);
String marketPref = sharedPref
.getString("market", "-1");
displayToast(marketPref);

}

root_preferences.xml

<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">

<PreferenceCategory app:title="@String/pref_header_account">

<ListPreference
app:defaultValue="US"
app:entries="@array/pref_market_titles"
app:entryValues="@array/pref_market_values"
app:key="market"
app:negativeButtonText="@Null"
app:positiveButtonText="@Null"
app:title="@String/pref_title_account" />

</PreferenceCategory>

</PreferenceScreen>

strings.xml:

<string name="pref_header_account">Account</string>
<!-- Sync Preferences -->
<string name="pref_title_account">Market</string>
<string-array name="pref_market_titles">
<item>United States</item>
<item>Canada</item>
<item>United Kingdom</item>
<item>India</item>
<item>Japan</item>
<item>Other</item>
</string-array>

<string-array name="pref_market_values">
<item>US</item>
<item>CA</item>
<item>UK</item>
<item>IN</item>
<item>JA0</item>
<item>-1</item>
</string-array>

first time running app:



Expectation: -1

I realize the default value is US, but their codelab default is also US, yet the codelab says it should display first time -1.

Domka - Icon Pack

Domka - Icon Pack
domka_1_8_7.jpg

Stunning glass icons with multicolored gradient backlighting, not square or round shapes
All icons size 192x192 the drawn manually and therefore will appear on your screen just fine
Convenient control panel in which you will find beautiful wallpapers specially created for icons, the function of requesting missing icons

  • More than 2500 highly detailed icons
  • 8 QHD Cloud Wallpapers
  • Request icons tool for order you missing icons
  • Dynamic calendars
Supported launchers:

• Action
• Nova
• Smart 3
• ABC
• ADW
• Apex
• Aviate
• CM
• Evie
• Go
• Holo
• Holo HD
• Lucid
• M
• Mini
• Next
• Nougat
• Solo
• V
• Zero

Full Moon[FREE][Game]

Your car broke down in the middle of the forest. You went to find help in the mansion nearby, but you get involved in something much more deeper and scarier than you can imagine.
In this horror adventure you'll find:
- A movie like story
- Chilling horror atmosphere
- Multiple endings
Full moon is best played in the dark.

https://play.google.com/store/apps/details?id=com.wFullMoon_16278242&pli=1

ezgif.com-gif-maker (7).jpg ezgif.com-gif-maker (6).jpg ezgif.com-gif-maker (5).jpg ezgif.com-gif-maker (4).jpg ezgif.com-gif-maker (2).jpg ezgif.com-gif-maker (1).jpg ezgif.com-gif-maker.jpg

Locked out of phone due to 3 sim card pin mistakes

Yeah around here they don't supply them with the SIM at all. If you're unlucky enough to get SIM-locked and it asks for a PUK or PUK2 code you might as well buy a new phone/SIM. Carriers get rather hostile if you ask them for one. Last time it was asking for the 'unlock/subsidy' code that popped up when I placed my SIM into a supposedly 'unlocked' LTE tablet. They got overtly hostile, insisted I was doing something illegal, and hung up. I had to get a SIM compatible with AT&T and port out my number in the end to overcome it. They certainly wouldn't help me.

Drive(n)

USB Mass Storage died off with Android 4.3 Jelly Bean (4.0 Ice Cream Sandwich for some Samsung phones such as the Galaxy SIII) and 6.0 Marshmallow on AOSP-based flip phones.

My ZTE Cymbal LTE running AOSP 5.1.1 Lollipop (base Android, no Google apps, no app store, no package installer) is the most modern phone that supports Mass Storage (although it doesn't need me to tap to enable but that's because it doesn't have a touch screen).

USB Mass Storage made the phone show up as a USB flash drive in any OS, Linux, Windows, etc. MTP is a half baked attempt to do the same but requires drivers and doesn't "like" Linux at all. Windows for me tends to do nothing or make it show up like it's a digital camera and only allows me to copy pictures and sometimes documents. Can't send music to it when connected to a PC. MTP sorta works on other OSs like Linux (if you're lucky with the distro lottery) but the results are extremely slow, likely to freeze sending any large files over. It's about like beaming them via Bluetooth but less stable.

As stated, ten times worse. I will never get why. Nothing I found online makes sense (such as all the excuses being about not being able to use the phone when connected via Mass Storage but why would you want to? You're not going to be connected for very long so ???)

Connecting an older phone or tablet that supports USB Mass Storage would make a screen like this appear:

SGS2-ICS-USB-Mass-Storage.jpg


I miss when Android was meant for geeks and demanded you to mess with it. Features like this were wonderful while they lasted. Today it's like Google is trying too hard to be Apple and make Android look and act more like iOS. Diminishing returns ever since.

Help Unlocking boot loader on US996 (LG)

from screen with normally booted home screen

in command (dos) window adb devices
adb comes back with the device ID connected.

reboot phone into FB mode.

Fastboot devices
no message returned just the C:\adb prompt

Fast boot mode on my phone does not show the same screen (with 5-6 menu items to pick from) as it formerly did. Looks more like this with no way to select options.

* quick guidance

1) read device ID
fastboot oem device-id
2) write unlock key
fastboot flash unlock unlock.bin
3) check bootloader is unlocked
fastboot getvar unlocked

Anything else I can answer??

Firestick

Toss it out and get a Roku Xpress. Those are the same cost and are far better devices.

I got two. They offer A/V component out so you're not stuck with HDMI. For some reason, the folks behind HDMI decided that my 2009 TVs are too old to work and give me some error about HDCP. HDMI is another solution in search of a problem like USB-C. Neither are welcome in this 1960s-inspired home!

What's with ST never updating?

I have same issue but discovered a work around if you happen to have a Samsung phone...

From samsung.com
Download and install smartswitch onto a PC.
From playstore download and install Samsung smartswitch onto phone.

Launch PC program
it will tell you to cable up phone.
When you do PC program will defect phone is not current and offeres a big "update" button. Click it and it will do the needful to install updates just follow the prompts.

It took about an 70minutes to get me onto android 13 from 12.

It could be years before straight talk pushed an over the air OTA update but on can become current at will via the above method. I might do the above quarterly.

Help SOLVED Galaxy 10 Killing Apps

On my Galaxy 10+, I have an app (Panels) which is a side drawer app. Even though I use it multiple times daily, after a couple of weeks the phone kills it. I have to go back to the app icon and start it up again and then it lasts for another couple of weeks. I have checked all of the settings for battery optimization and everything looks ok. Can anyone help? thanks in advance.

Filter

Back
Top Bottom