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

Calling an activity from class PintService

I created a class that extends PrintService .

I use the system dialog to print , everything is fine I see the service in print.

In onPrintJobQueued method I have this :

@override
protected void onPrintJobQueued(PrintJob printJob) {
printJob.start();

Log.d(TAG, "queued: " + printJob.getInfo());

Intent i = new Intent(getApplicationContext(), PdfWiever.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
String file = "file:///storage/emulated/0/Download/"+printJob.getDocument().getInfo().getName();
i.putExtra("data", file);
try {
printJob.complete();
Log.d(TAG, "queued: " + printJob.getInfo());
startActivity(i);
}catch (Exception e){
e.printStackTrace();
}

}

I'm not getting any errors in both stackTrace and logcat. It's just that the business doesn't open.

I've seen other answers but I'm confused, in some I've read that there is a need for an interface to communicate between service and activity.

Or am I getting my intent call wrong?

I state that my activity is not running it is the service that must call it and put it into execution.

my AndroidManifest :

<activity
android:name="soget.com.it.bluetooth.sdk.PdfWiever"
android:exported="true"
android:label="SogetServizioStampa">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/pdf" android:scheme="file" />
<data android:scheme="text/plain" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/pdf" android:scheme="file" />
<data android:scheme="text/plain" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/pdf" android:scheme="file" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/pdf" android:scheme="file" />
<data android:mimeType="*/*" android:scheme="mailto" />
</intent-filter>
</activity>
<service
android:name="soget.com.it.bluetooth.sdk.PdfPrint"
android:permission="android.permission.BIND_PRINT_SERVICE">
<intent-filter>
<action android:name="android.printservice.PrintService" />
</intent-filter>
</service>

Can you direct me for a solution?

New App Idea for Security

Dear All

it's been few months that I have been looking for an specific application on Android but I have not been able to find anything like it , so i was wondering if the community may know of such an app .

I Like to have an application that can Factory Reset my phone when I unlock the phone with a specific finger . So when i have the phone locked an in my pocket , but when i Unlock it using one of my fingers which i have set in the application previously , the application should be able to completely factory reset the phone without asking for any confirmation or password or passcode .

Let me explain more , The reason i'm looking for such an application is that I live in Iran and as you may know the situation is very bad and anytime you are in the street you may get arrested by the police and they always steal people phone from them and use the information in the phone against them . So with this app , if i'm ever arrested in the streets i just scan my finger and the phone is reset with no data .

I wish we can find or create such application .

thank you .

Help Delete phone lock

I have a pin number to unlock my screen I wish to no longer use a pin number to unlock my screen, but I do not know how to remove the pin. I have not got security and Privacy together,. but they are separate. and so I can not follow the instructions that everyone is giving me. I have tried to follow going to security, and then privacy but that does not work. Perhaps some will have the answer. Regards

Help Remove google account question?

Hello,

I intend to remove Google Account from my old phone and I want to use Google Account in my new phone.

https://www.samsung.com/au/support/mobile-devices/remove-google-account-on-samsung-phone/ in the bottom most screenshot https://i.imgur.com/v8M0YPX.png it says "Removing the account will delete all of its messages, contacts and other data from the device"

1. What is "messages" and "other data from the device" referring to?

2. "contacts" does it mean google contacts will be removed from Contacts app?

3. What is the difference if I do a Smart Switch to transfer all data from old phone to new phone, with google account logged in (in the old phone) vs with google account logged out (in the old phone)

Thanks

How to be brilliant and an idiot simultaneously.

The "How to replace a laptop battery and end up with two laptops" story.

So ... (never start a sentence with "so, well, anyway" and especially "basically").

My daily use laptop for the past 4-1/2 years has been a trusty Asus Vivobook Flip 14. It's the perfect form factor for me and was still working well, even if it was getting a little long in the digital tooth. When the original battery was struggling to hold a charge for longer than 90 minutes, I bought a replacement battery. It should have been simple enough.

(Suppressing my urge to start with "well") I watched the battery vendor's how-to YouTube video and was less than impressed with the details and/or technique. It was not model specific so it had to be very generic. I searched for a few additional model-specific tutorials on battery replacement and found one that I thought was something I could follow along.

I began by removing the screws on the bottom of the device and popping the clips around the edge of the keyboard. it opened easily enough but the tutorial showed the laptop opened to a 90° angle and laying on a table with the screen flat and the keyboard/base upright. Now everyone take a moment to remember the episode of *M*A*S*H* called The Army/Navy Game where a bomb is ticking away in the compound and Hawkeye has to defuse it. The same person wrote the battery replacement instructions and went something like this: Lift keyboard from the laptop case, show it flipped open with the keyboard in a vertical position, next say but be sure to disconnect the ribbon cables. The results in both scenarios were similar.

I did in fact flip the base to a vertical position with the keyboard loose and it promptly fell forward with the ribbon cables still attached ... briefly. :( The force of the keyboard falling forward damaged the Molex ZIF sockets for both the track pad and the fingerprint scanner on the motherboard. That certainly was an [expletive deleted] moment.

Sigh. I replaced the old battery with the new and tried to jury-rig a working connection for the two cables. The first time, they didn't work, so I took the keyboard off again and tried a different Rube Goldberg solution. This time the trackpad and fingerprint reader both worked. I thought I had dodged a bullet, until I got to work and tried to use the laptop. The simple act of carrying the laptop in my briefcase was enough to dislodge/short/bork the connection. The more I fussed, the worse things got.

I had a couple choices. I could pay someone to fix it which would have been over $100 at least and most likely closer to $300 for a laptop that sells for about $225 on eBay in working condition. I could have bought a new motherboard for roughly the same cost as the repair. I could have located the correct Molex connectors, bought a hot air soldering station and taught myself the fine art of reflowing tiny components. Or, I simply could have used the laptop without the trackpad and FP reader.

That last option was certainly practical and reasonable as I could always authenticate with a PIN or password and i generally use a mouse, anyway. But, that non-functioning trackpad staring me in the face everyday would have been a constant reminder of my ineptitude. Trust me, I don't need any more lessons in humility -- I've f**ked up enough $h!t in my lifetime.

This was a couple of weeks ago and coincided with the beginning of the Black Friday ad blitz. Sure enough one of the Woot.com specials target at me was an updated model of the same laptop. (Who's surprised it was targeted since I had been Googling that model for several days -- first for a battery, then for motherboards.) It was the same in every regard, except it had twice the RAM and was upgradable, and had a 6 core/12 thread Ryzen processor, instead of the old 2 core/4 thread i7 in my 2018 model. I was thinking about upgrading anyway (I kept telling myself) so I dropped the $500.

End of the story? Not quite. As everyone knows, once you search for something on YouTube, similar suggestions appear in your feed for decades, or until you click "not interested" 473 times. I had only made it to click number 145 for ribbon cable connector repair videos when i was shown a fix that i hadn't considered. This guy removed the molex connector and soldered the ribbon cable directly to the pads on the motherboard. Seeing as I had a fine tipped soldering iron and some fine motor skills for my watch repair hobby, I gave it a go. The first attempt was yet another unnecessary lesson in humility (aka f**ked up) but attempt #2 actually worked. Both the trackpad and fingerprint reader are both working and each time I use them I feel both brilliant and idiotic.

Anyone need a latptop? ;)

Microphone issue doesn't make sense

I really can't remember if I had this issue before or after I replaced the screen on my Xiaomi Mi Max 3 so I'm not sure if it's a hardware or software issue.

You would think it's a hardware issue until you read its symptoms because it doesn't make sense to me.

When I speak to someone using my network provider, the person I speak to says when I use my phone's speakerphone they can hear their own voice and often sounds squeaky. When it's not on speakerphone it's fine, however, when using WhatsApp to make the call it's the exact opposite!

Has anyone had this issue before? I don't want to replace my phone but if I can verify it's a hardware issue then I'll feel better knowing I don't have much of a choice.

Thanks very much and hope you can help.

Apps Inifite Step Counter app

I'm writing a basic step counter app in Android Studio using:

sensorManager = getSystemService(Context.SENSOR_SERVICE) as SensorManager
val stepSensor : Sensor? = sensorManager?.getDefaultSensor(Sensor.TYPE_STEP_COUNTER)

and sharedPreferences to read/write data.

I've no problem to read total steps.
What I need is my app counts the total steps since first time it is executed. My problem is that steps are reset on device reboot and I don't know how to setup the logic to continue to add steps to the total.

Anyone could help on this? TY

Fast Notepad files location on Chromebook

Hi.

I found a thread about the location of the Fast Notepad files, but it didn't help me at all. I found some app files under Play files/android/data, and according to the thread I should find a folder named "com.taxaly.noteme.v2", but it's not there - I can identify the apps that all the folders belong to and fast notepad isn't one of them.

I have several notes on it so it has to be somewhere right? I have a Chromebook CB311-9H-C5KP (N17Q8). Where else could I look for them? I need to reset my chromebook to factory settings as it's being glitchy, so I would greatly appreciate any help I can get. I'm attaching a sreenshot of the folder although I don't see how it'll help - the "Color.Note" you see is for another notepad app called Color Note".

Thanks in advance!

Attachments

  • Screenshot 2022-11-26 14.57.44.png
    Screenshot 2022-11-26 14.57.44.png
    135.5 KB · Views: 214

Help Google account vs Samsung account backup?

Hello,

Does a Google Account backup contain everything in a Samsung Account backup?

Is doing a Google Account backup enough or do I need to do a Samsung Account backup too?

Does Google Account backup Samsung Notes app data?

If you restore from a Google Account to your new Samsung phone, are you able to restore Samsung Notes app data, settings like clock alarms, keyboard options (and full list of the data that Samsung Account will backup seen below)?

Thanks

-----
Info:
"Content types that can be backed up using Samsung Cloud
Note: Individual files over 1GB will not be uploaded.

Backing up your data is a little different than syncing. When you back up, you save your device's files to the cloud, so they can be redownloaded later. These files won't automatically appear on your other devices unless you manually restore them. Syncing, on the other hand, automatically adds updated information to a device.

Below are some apps on your phone or tablet that support the back up and restore feature. We've also listed what kinds of data will be backed up from these apps:

Call logs: Call and message history

Clock: Alarms, world clocks, and timers

Apps: Installation files and app settings

Calendar: Events and tasks saved on your phone or tablet

Messages: Enhanced messages, multimedia messages, and text messages

Contacts: Contacts, email addresses, and business cards saved on your phone, tablet, or USIM

Home screen: Layout, wallpapers, and Samsung DeX settings (your default wallpapers won't be backed up)

Settings: Accessibility settings, ringtones, Samsung Keyboard options, Wi-Fi settings, and Always on Display settings (your default ringtone won't be backed up)

Voice Recorder: Saved audio clips recorded using the Voice Recorder app

Samsung Daily: Your personalized content preferences and settings
Note: Samsung Daily is only available on select phones, such as the S8. Newer phones use Samsung Free instead; however, this service cannot be backed up." source Back up and restore data or files on your Galaxy device https://www.samsung.com/us/support/answer/ANS00060517/
-----
Info:
Back up and restore data or files on your Galaxy device https://www.samsung.com/us/support/answer/ANS00060517/
How to set up Google account on Samsung Mobile device? https://www.samsung.com/sg/support/...t-up-google-account-on-samsung-mobile-device/
How to set up and use the Google Accounts https://www.samsung.com/levant/support/mobile-devices/how-to-set-up-and-use-the-google-accounts/
How do I set up my Google account on my Samsung Galaxy device? https://www.samsung.com/ie/support/...y-google-account-on-my-samsung-galaxy-device/
How to create or remove the Google account on your Galaxy phone https://www.samsung.com/latin_en/su...move-the-google-account-on-your-galaxy-phone/
-----

Help What is wrong with connections

Hey there interweb helpers,

Newbie here. I have has issue with my phone for the past YEAR. Yes year and it is driving me nuts!!! Ever since I got the S21, my network connections have been just awful. Let me start off here....

I have an S21 on Verizon. I live in an area (even though I can look across the bay and see Seattle) that has horrible coverage for all carriers. I am kind of stuck with Verizon due to my where my wife works, they are the only ones to even get spotty service in some parts.

Well, since I am not out and about much, I am home most of the time....which btw has almost no service at the house. I figured I can just connect to my wifi at home and be able to use the phone like normal. WRONG!!!
Ya know, I got my WIFI calling on, connected to my home internet (which is really fast and a nice powerful router spreads it around the house). I can rarely take or make calls at home. Text messages struggle or even say "Cant connect to network" blah blah blah....Calls do not come through, texts wont come through, definitely can NOT text pictures from home.

Another thing is, this is not 100% of the time. Sometimes everything works just how it should, I would say a 50/50 shot at that.

Previously I had a Pixel 4xl and it had similar issues.

My wife's phone (S21+ultra) has no issues like mine. Her's works just how the phone should. I would really like to be able to have a phone that I can use when needed. I am sitting about 4 feet from my router right now with perfect wifi but can not even send a text. Someone please help :-)

Also the whole picture over wifi thing??? any knowledge on that?

google drive app

i have downloaded pdf files on my android device which i see by documents/download folders.
my google drive app where i also have pdf files is switched off. when i switch this app on ,
i see my android pdf files and pdf files from google drive all together in my android documents !my wish is not to see these g.drive files between my android files, just separately - android documents and g.drive app...
how can i do it?

Help How to prevent incoming interruption when transfer data?

I am going to use Samsung SmartSwitch to transfer from old phone (Note8) to new phone (A32). During the transfer process I do not want incoming calls/messages/whatsapp/app notifications... anything to disturb during the transfer process. (Intention is not to interrupt the transfer process or stuck or incomplete message).

What quick settings panel icons should I disable and enable? What else to do to prevent interruption and smooth transfer? Thanks

screenshot of Note8 quick settings panel icons: https://i.imgur.com/sXeqI0g.png https://i.imgur.com/U4bE324.png

Transparent notifications lockscreen and quick settings panel

Hi,

I have Android 11 Stable on my OnePlus 7 Pro. I don't have the rooted phone, nor do I want to. I would like to know if it is possible to have the notifications on the lock screen in semi-transparent cards. And equally apply it to the quick settings panel. This option that exists, for example, in Samsung devices, does not exist in OnePlus.

With the dark/light mode, logically, all I get is a dark or white background.

I don't know if it would be possible with Andromeda and Substratum. And if it were possible, with what theme would it be achieved?

Or in some other way.

Google device policy

Hello, good afternoon, I have problems with the Google device policy. When I start the section with the app, I create the work profile and then the app gives me a network error and in the notification bar I get the necessary action in the account, could you please help fix it

Attachments

  • IMG_20221124_142819.jpg
    IMG_20221124_142819.jpg
    464.8 KB · Views: 536
  • IMG_20221123_165816.jpg
    IMG_20221123_165816.jpg
    229.9 KB · Views: 131

Deleted wifi connection

Hi everybody. I'm using an android 10 phone. I deleted some wifi connections, now I need to restore one of them. Since random mac adress is activated, each time my phone gets a new mac adress when I connect to a wifi. I need to connect with my old mac adress which was created randomly. Is it possible to restore the connection or find the old mac adress for that connection. In other words, I can connect to wifi, there is no problem with that. My problem is, the old connection's mac address had priority. I was able to use internet without limitations, now new connection has a new mac addres and I have no priority. No I cant get privillage to my new mac address, no I dont have access to modem's settings if I could, I would define my new mac address as privillage.Thank you all.

Help Can't move apps to SD card

I've been following the instructions for moving apps to the SD card to free up space, but there are no options for changing storage location. Not grayed out -- there are no options at all. I tried a third party app that took me to the same screens, so no help there, but it did identify 10 apps as movable. My SD card seems to be working normally. I can move photos to there, but they don't take up much space.

Most of the used internal storage is the Android system and the apps (about 6-7 GB each). Clearing the caches and user data helps get a bit of space, but not much.

Moto e5 Play, Android 8.0.0, 16GB internal, 16GB SD card

Filter

Back
Top Bottom