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

Service and the Broadcast

Hi there,

I have issues with android services and broadcast activity when doing some development.

I am using Android 8.0 as a test device btw.

Code:
serviceIntent.setComponent(new ComponentName("com.service.sillyservice", "com.service.sillyservice.SillyService"));
serviceIntent.putExtra("COMMAND","ls");
startService(serviceIntent);

Assuming it will invoke the start service from another activity:
public int onStartCommand(Intent var1, int var2, int var3) {

its return value is "1", how do I get the value of "1" and store it some where.


Code:
        broadcastIntent.setComponent(new ComponentName("com.broadcast.vulnerablereceiver", "com.elearnsecurity.vulnerablereceiver.VulnerableReceiver"));
                    broadcastIntent.setAction("com.broadcast.vulnerablereceiver.CHANGEPW");
                    broadcastIntent.putExtra("PASSWORD",1);

I am trying to mirror the same here:
run app.broadcast.send --action com.broadcast.vulnerablereceiver.CHANGEPW" --component com.broadcast.vulnerablereceiver com.broadcast.vulnerablereceiver.VulnerableReceiver --extra string PASSWORD 1

However, for some it show something like:
Unable to start receiver com.broadcast.vulnerablereceiver.VulnerableReceiver: java.lang.NullPointerException: println needs a message

Internal storage running out even after factory reset

I just have a problem with my phone last day and it said my internal storage is running out and need to have at least 250MB storage even though I have at least 2gb free on my internal and I can't update any apps from play store, that's why I go factory reset cause deleting cache doesn't work, but after reset the notification doesn't clear up and now I can't connect my google account cause the google play services is stopping and I try to download an APK of it but it doesn't install (maybe because of that notification that I have no storage left. right now I have 10.9gb free in my internal and I can't install apps and connect my phone to my google account. PLEASE HELP ME SOLVE THIS

Attachments

  • Screenshot_2019-06-03-01-57-10.png
    Screenshot_2019-06-03-01-57-10.png
    110.2 KB · Views: 256
  • Screenshot_2019-06-03-01-56-19.png
    Screenshot_2019-06-03-01-56-19.png
    104.6 KB · Views: 235

Keyboards

I am looking for a keyboard, minus emojis, gifs, and stickers, myself I think they are Childish. I coud put up with it if I can find one with a space bar I don't need a magnifying glass to see. I dont need a special. Com, or www key. I would even be willing to pay for it. Or mayde there is a 100% Customizable keyboard. I want a longer space bar.

Nightmare.

I spent 4 hours online trying to get answers from first playstore then Google who threw me to Android and the grand finale, ZTE. No help . I can't believe such large corporations have no customer service. The Google specialty; here's 3 million articles, read them and maybe your answer is in there. All I want to know is are the programs, ASUS file manager and AppMgr III, compatible with my ZTE Android Z818L, ver5.1. And if not, which I believe is the case, could they recommend the proper apps. The only answer I have gotten , from an app developer, is Android bugs are the problem. I have tried so many file mgrs, I believe that it is impossible to design a Linux app that will operate effectively on so many different phone manufacturers, operating systems and the kernel, which varies on EVERY PHONE . Unless when you were installing the app, they required input of preceding 3 items I mentioned which would allow at most tailoring the app to the phone before installation and at the least, if the app is compatible with your phone. Plus. I never met a file manager that could detect the apps, at least the exact location before and after moving to the sd, not the sd partition of internal memory but the micro SD card. I wonder if any app designer knows what a task manager does. No matter where I move an app, with an app mover file or whatever, the task manager always knows where the app is, the data and cache and all the permissions.. Instead of writing the program to track the app, just poll the task mgr. Never fails.

Auto boost ads? How do i get rid of them?

Here recently I've been getting ads on my phone whenever I open my apps, it's only been for auto boost so far but has become annoying because it opens in multiple windows at once that I have to close before I can continue. Any ideas how I could fix this? I've tried clearing my cache, deleting apps, and restarting my phone but nothing seems to work. I dont want to factory reset it unless I have to...please help *screenshots attached*
Screenshot_2019-06-02-17-37-05.png
Screenshot_2019-06-02-17-37-12.png

Galaxy Watch 42mm button issue

I am on my second 42mm watch with this issue. When new, if I normally pushed the top button it responds. After a week I have to press much more firmly to get a response. I swapped my first watch out after two weeks. Now my new one is exhibiting the same behaviour after one week.

Do all of these watches do this? I know I can swap or spin the dial to move around but if I want to use the button to go to the watch home screen it should work.

Any similar experiences? I like the watch and the battery is incredible compared to my old S2. Just wonder if this is how they all are.
Thanks,
BJBBJB

Play DRM protected itunes media on android mobile

Hi,

Now don't shoot, boo or hiss at me when I say that I used to have and android phone back in the early days and my last 3 phones have all been iphones. As such a fair proportion of my media on iTunes is from the iTunes stores and has DRM on it.

I'm now very strongly considering upgrading back to an android phone (Samsung Galaxy A50) and ditching the Apple brand.

What I was wondering is there any easy way that I can play DRM protected songs and audiobooks on an android phone. Is there an app on the play store or will I have to buy some program and manually strip the DRM from the media??

Help Cannot use / turn on phone ... desperate for answers..or answers ..

Hey there . I am new to this forum and i do know how they work so i'll just get straight to the point .
So this morning my lil bro was using my phone . he downloaded almost half of the games play store has to offer ( he spent about 60 of my 128GB of storage ) in one morning . I don't know if this really has to do with the problem , but i thought it was a system overload or something . Btw my phone is a Google pixel 2 , i have had it for around a year and 3 months ... the same problem happened to my samsung J5 in 2017 ... but i couldn't fix it ...

Anyway at around 1pm the battery died , i put it in charge and me being stupid i turned on the phone instantly since my bro was whining . I gave it to him and told him to use it while it was plugged in . Of course , he didn't listen .. he took it out .. potentially breaking the charger and then using it to download the remaining half of the play store .. the battery died within 8 minutes .. i told him just to leave the phone ... later around 3pm i tried to use the phone . Sadly it didn't turn on ... i was confused , usually my phone would be around 70% at the least by now ... i tried checking if it was unplugged or something .. i tried checking if the charger was broken .. everything ...


Around 7 I lost all hope .. for three damn hours i tried everything ... i was gonna contact support but guess what .... i don't have a phone to use due to my brother using it like there was no tomorrow . And apparently they are good for nothing .
So i will now explain what is happening . i have tried many solutions on YouTube and none of them worked . But i don't know how somehow after countless hours of trial and error i turned on the phone .. i was so excited i didn't think of at least putting on a battery saver or safe mode ... it turned of instantly . anyway so i tried the thing where you have to reboot it and stuff and nothing worked .. when i try to go the boot menu using power button and the volume up/ down it doesn't take me to the boot menu . instead it pops up the battery logo and disappears a second after .. i'm not really sure how to turn it off completely but when i finally get on the boot menu , i click on recovery mode and it goes through a mini BSOD / boot loop and goes back ... i really cannot live without my phone .. please reply with a adequate answer ASAP.. do i need a new charger ... is it a problem with my hardware or software .... So basically my phone won't turn on anymore ...
My phone is Inevitable , i can't live without it lmao ....

My first app - getting input values

Hi

I am new to Android development (but not to development).

I have read most of Android Programming for Beginners 2nd edition by John Horton, and I have Android Studio v. 3.4.1.

I am trying to create my first app. My app will take a couple of input figures, do some calculations and provide a result.

I have the layout and I have started on the code and it all works as far as it goes, but I am struggling to fathom out how to get the input values to use in the calculations.

This is my code. Can anyone help, please? Thanks.

package domain.com.myfirstapp;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {

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

final EditText editSPrice = (EditText) findViewById(R.id.editText2);
final EditText editPPrice = (EditText) findViewById(R.id.editText3);

Button button = (Button) findViewById(R.id.button);

button.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
doCalculations();
}
});
}

void doCalculations() {
Log.i("info", "In doCalculations");
// get inputs ** this is where I'm stuck **
}
}

How can I stop harassment from blocked calls?

This person has been harassing me for several years, and until recently it was limited to facebook posts and bogus complaints to my job, but the last several days they have called my phone 800+ times from a private, hidden, or blocked number.

That's not a typo. Eight HUNDRED phone calls.

It is a woman doing most of it, though it sounds like she has her friends in on it. She's left multiple voicemails telling me to kill myself, that I'm worthless, etc. It's really sick.

I have tried changing my number, but because I use the number for my family's business, she simply finds the new number and starts again, and in the meantime, I lose business.

Is there any app that will actually unmask private numbers, or block them and keep them from going to voicemail?

I tried going to the phone company and they blocked spam calls, but all the private numbers are still coming through.

Every app I try, has some failing. One of them, I was unable to make or receive calls while she was calling, my phone would simply hang up in the middle of the conversation.

Please help. My father is in a nursing home and I need to be able to get ahold of his carers. My business depends upon my phone working.

FireStick UK and US apps

Hey,
Does anyone know if of a tutorial on how to install UK and US apps on the same firestick? I'm in the US and want to install iplayer, ITV hub, and what not. I have a smart DNS running on a merlin router which is capable of routing the traffic accordingly. I also have a valid UK amazon account, so I can download the UK apps, but when I re-register the firestick to install the US apps, it greys out iplayer and gives the message "you do not own this app."
Thanks ppl

Understanding charging options

Hi, I have a new Samsung Galaxy S10+ along with a number of other Android devices (kindle, other android phones, etc). I've also recently purchased the Anker PowerWave Pad (A2503).

Can you recommend an Anker power supply that's appropriate for this? What is the amperage that's needed to charge using "Fast charging"? Does this support "super fast charging" wirelessly?

I have a number of 2A chargers, including a Samsung 5.3V/2A charger (EP-TA10JWE). Is that sufficient?

This page says the S10+ supports "super fast charging" as well as Power Delivery. Am I reading that right?
https://www.samsung.com/global/galaxy/galaxy-s10/specs/

I also have the Anker PowerPort 2 (A2141), but that does not appear to be sufficient to fast-charge wirelessly. This is 2.4A per port. I thought 2A per port would be sufficient for fast charging?

If I purchased the PowerPort 2 with power delivery, would I be able to have the USB port connected to the powerpad *or* the USB-C port (PD port) connected to the phone for super fast charging when needed?
https://www.anker.com/products/variant/powerport-ii-with-power-delivery/A2321121

If someone could help me understand the current charging methods that are best for the S10+, I'd appreciate it. I also have a number of older chargers. What is the minimum that is useful? I'm ready to toss some of the old 1A/500ma chargers. I'm not even sure they work with current kindle's, etc.

Filter

Back
Top Bottom