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

Apps "Cannot resolve symbol 'array' " in R.array.array_name

Trying to populate a dropdown box via a Spinner. I have a <string-array name="currencies_array"> defined and populated in strings.xml. The array in R.array.currencies_array is highlighted red saying "cannot resolve symbol 'array' ". Exact code from android documentation itself and stackoverflow articles.

Android doc for spinner under "populate the spinner with user choices: https://developer.android.com/guide/topics/ui/controls/spinner#java
StackOverflow article (based on reply by Gurinder Singh, 3rd down): https://stackoverflow.com/questions/13377361/how-to-create-a-drop-down-list

Code:
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.currencies_array, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
dropdown.setAdapter(adapter);

Whats the throttle speeds for metropcs after 35GB mark?

That sounds more like tower congestion than anything else. My understanding is that 'deprioritization' - not outright throttling - starts at 35+ GB use. If your closest T-Mobile tower is very congested, your speeds can definitely slow. Since it's not an actual tower issue, they probably wouldn't do anything about it, but you can call customer service and tell them about it.
In contrast, my family is also on unlimited. My son used over 60 GB last month and was able to watch streaming video with no issues all month long.

I'm no longer past the 35GB mark now and I'm still getting severe connection issues. Ridiculously bad connection out here in the country even though I got 4 of 5 bars of 4G LTE, and my phone is within 10 feet of my laptop so my connection to it is 4 of 4 bars.

Its so bad right now PDANet keeps throwing "reconnected" messages at me every 30-120 seconds or so, and my speed test shown dialup levels of speed with 0KB/s upload speed for 50% of the upload test.

This is so frustrating, I don't know what to do. I switched from Boost Mobile because Metro has far more signal out here where Boost, I can't even use my phone anywhere within 2 miles of my place except a 1 inch by one inch squared location in my room where I had to tape the phone down on top of a box of dominos on top of the mini fridge on top of a wash rag to raise it just enough to get that 1 bar of 4G LTE.

But now that I'm on Metro, my speeds are terrible. Except during certain portions of the day, and while I had just gotten the service the whole first 3 days were great when I used Mobile Hotspot not using PDANet.

-- As for "exact geolocation" yea no. I can say Northwest Arkansas, at least. But giving exact, no.

--- As for the rest;
House, one floor, Galaxy S8.

---- Last edit:
I checked out Fi, and no, its worse. They throttle you after 15GB usage and it'd cost more than my current plan does by quite a lot. Considering I use 60GB/m on a regular basis.
Its definitely tower congestion even if ur under 35 and ur metro but ur surrounded by tmobile users ,their transfer will be before urs Towers belong to tmobile ,metro is just piggybackingboff tmobile towers that's why u suffer under the 35 gig mark , amd u must live in a city right ? I live in the country evrybody uses cricket I use metro only time I'm screwed is around the 15th of the month I pass 35, I use about 80 gigs evry month

Forgot where I have turned data usage off

Hello,
I have a huawei p20.
I have a problem regarding using data while roaming. I accidentely turned data on in a country where I shouldt and after that I turned data off somewhere in settings completely. Now I am at home and when I turn data on it doesnt function. I cant seem to remember where have I turned data usage off and I want to aks if anyone knows where this should be?

Thanks for the help.
Airplane mode easiest way , turns off wifi bluetooth and data and phone nothing works no calls or text in or out. I dont know why yall go the long into settings ,

Help Screen is unreadable, but I need to download pics

That photo indicates at least you can see the screen even if its touch interface might not be working. If it's just a matter of the digitizer is messed up, it might be worth trying to use a Type C-to-USB adapter to connect a USB mouse and/or keyboard to key in past the lock screen. If you can at least get it unlocked than you can backup the data before sending it off to be serviced.
https://www.amazon.com/gp/product/B...OQIKU&linkId=2b192d2bb2a847371300f1e455c47c9e
That's a good call: you can see enough of the keypad that you can probably get an indicator of where the cursor is on the left-hand row, then work out your moves from there.

Keyboards are easier to judge semi-blind than mice (I speak from experience of using both with a broken screen).

Duplicate class com.google.android.gms.location.places.zza ERROR when building in android studio

Im pretty new to android studio development and I`m having trouble when building my apk, Im using google maps for location tracking and firebase with pubnub for notifications.

My problem came when I added firebase and started to add the dependencies, and when I tried to build I get this error: Duplicate class com.google.android.gms.location.places.zza found in modules jetified-play-services-places-9.6.1-runtime.jar (com.google.android.gms:play-services-places:9.6.1) and play-services-places-placereport-17.0.0-runtime.jar (com.google.android.gms:play-services-places-placereport:17.0.0)

App Gradle:

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 28
buildToolsVersion '29.0.2'

defaultConfig {
applicationId "com.parse.starter"
minSdkVersion 17
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
/*minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'*/
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation 'com.parse.bolts:bolts-tasks:1.3.0'
implementation 'com.parse:parse-android:1.13.0'
implementation 'com.android.support:multidex:1.0.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'androidx.navigation:navigation-fragment:2.0.0'
implementation 'androidx.navigation:navigation-ui:2.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:cardview-v7:28.1.1'
implementation 'com.github.ar-android:DrawRouteMaps:1.0.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.android.support:recyclerview-v7:28.1.1'
implementation 'nl.psdcompany:duo-navigation-drawer:2.0.8'
implementation group: 'com.pubnub', name: 'pubnub-gson', version: '4.31.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.2'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.2'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.2'
implementation 'com.github.jd-alexander:library:1.1.0'
implementation 'com.google.firebase:firebase-messaging:17.3.3'
Module Gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.google.gms:google-services:4.2.0'
}
}

allprojects {
repositories {
jcenter()
google()
maven{url "https://jitpack.io"}
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


ext {
compileSdkVersion = 28
buildToolsVersion = "29.0.2"

minSdkVersion = 17
targetSdkVersion = 28
}

Video playback problem

Are you using the default video player app? Check in the app's settings menu to see if there are any options to change relative to screen orientation.
If not, you might want to install a third-party media player app instead. Just suggestions but I use MX Player Pro and VLC, both have options buried in their settings to change the default playback orientation (i.e. use the device's default, or always Landscape or Portrait); an added benefit being both also have more options to customize the user interface along with supporting a wider range of media file types than the default player.

Google assistant

I agree with you for the most part. I had a similar issue with a file manager. The newer version removed some functions that were free and charged to get them back. The only problem is eventually, most older versions become incompatible with newer Android versions and you have to update or find a new app. I finally dumped the app that I had been using for years and found a new app that works fine.

&#128076;&#127995;&#128076;&#127995;

Action buttons on Broadcast receiver

Is it posible to make an action button that will cause notification to reappear after one hour. Then I want to make another action button that will cancel notification and make it reappear the next day again. Any ideas for how can I do this? Here is the code -> Main Activity:

  1. EditText write;
  2. Button notification;

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

  7. notification = findViewById(R.id.notification);
  8. write = findViewById(R.id.write);

  9. notification.setOnClickListener(new View.OnClickListener() {
  10. @override
  11. public void onClick(View v) {



  12. Calendar calendar = Calendar.getInstance();
  13. calendar.setTimeInMillis(System.currentTimeMillis());
  14. calendar.set(Calendar.HOUR_OF_DAY, 12);
  15. calendar.set(Calendar.MINUTE, 57);
  16. calendar.set(Calendar.SECOND, 0);
  17. Intent intent = new Intent(getApplicationContext(), Notification_receiver.class);
  18. intent.putExtra("TEXT", String.valueOf(write.getText()).trim());

  19. PendingIntent pendingIntent =PendingIntent.getBroadcast(getApplicationContext(), 100, intent, PendingIntent.FLAG_UPDATE_CURRENT);

  20. AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);
  21. alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pendingIntent);


  22. }
  23. });



  24. }
And here the Broadcast Receiver:

  1. public class Notification_receiver extends BroadcastReceiver {
  2. @override
  3. public void onReceive(Context context, Intent intent) {

  4. String text = intent.getStringExtra("TEXT");

  5. NotificationManager notificationManager = (NotificationManager)context.getSystemService(context.NOTIFICATION_SERVICE);

  6. Intent repeating_intent = new Intent(context, MainActivity.class);
  7. repeating_intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  8. repeating_intent.putExtra("action","snooze");
  9. repeating_intent.putExtra("action","cancel");
  10. PendingIntent pendingIntent =PendingIntent.getActivity(context, 100, repeating_intent, PendingIntent.FLAG_UPDATE_CURRENT);

  11. Intent snoozeintent = new Intent(context, ActionBtnReceiver.class);
  12. snoozeintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  13. snoozeintent.putExtra("action","snooze");
  14. PendingIntent snzpendingIntent = PendingIntent.getActivity(context, 100, snoozeintent, PendingIntent.FLAG_UPDATE_CURRENT);

  15. Intent cancelintent = new Intent(context, ActionCancelBtnReceiver.class);
  16. cancelintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  17. cancelintent.putExtra("action","cancel");
  18. PendingIntent cnlpendingIntent =PendingIntent.getActivity(context, 100, cancelintent, PendingIntent.FLAG_UPDATE_CURRENT);





  19. NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
  20. .setContentIntent(pendingIntent)
  21. .setSmallIcon(R.drawable.ic_launcher_background)
  22. .setContentTitle("Notification")
  23. .setContentText(text)
  24. .setAutoCancel(true)
  25. .addAction(R.drawable.ic_snooze_black_24dp, "Snooze", snzpendingIntent)
  26. .addAction(R.drawable.ic_cancel_black_24dp, "Cancel", cnlpendingIntent);
  27. notificationManager.notify(100, builder.build());

  28. }
The ActionBtnReceiver and ActionCancelBtnReceiver are empty because I don't know how to do it. Can you please help me? java android broadcastreceiver. I asked again but nobody answered me. So please help me because I can'y find a suitable answer anywhere.

[APP] Battery 100% Ready

Battery 100% Ready
Start a custom animation and/or notification when your device is fully charged

Demo

Screenshot



Does your Android device not have the notification led (e.g. Samsung s10+, s10, s10e, ...)?
No problem, be notified when the battery is fully charged, to save and extend its health.

Does your Android device have the notification led?
If you want to start a custom animation when your device is fully charged, Battery 100% Ready is the app for you.

JUST A CLICK AWAY
Simply activate the monitor function, customize its behaviour and get what you need.
The app automatically will notify you every time the device is fully charged, avoiding to bother the user if a charged device is connected to a charger.

Unlike other apps, which must be activated by the user when the device is being charged, Battery 100% Ready, once set, will continue to function autonomously, even if you reboot your device, so you never have to care about it again.

CONSUMPTION
Battery 100% Ready has no impact on the consumption of the device's battery because it is developed according to the new Android battery saving guidelines.

FEATURES
• One click policy
• Smart charge notification
• Fully customizable:
• Enable or not notification
• Enable or not notification sound
• Enable or not animation
• Choose any video on your device or use the default one
• Enable or not animation looping
• Enable or not keep screen on during the animation

We live for feedbacks, let we know your opinion.

Attention! If you use only notification, probably you need a third-part application to use efficiently Battery 100% Ready.

Stay tuned for further developments


PvP Strategy Android Game

I am searching for a game I tried around 2018
The game's artstyle is simplistic, the characters are made with simple shapes, where there are races like human, icelings, rats, and others.
It was a strategy game, the playingfield is a checkerboard, with two castles on both ends (players)
You have a deck of cards to summon minions with it, they will go forward for each turn until they get in the opponent's castle and decrease the opponent's HP. I've searched my Google Play library and still no luck. I hope someone here has an idea of what I'm talking about.

Filter

Back
Top Bottom