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

multiple widget instance sending parameters to app

Hello,

I have one widget and one separated app


The widget can launch the application by passing parameters

typically I put 3 times the same widget on my home page with 3 different settings, for example A B and C

When I click on my first widget A, the application opens and receives the parameter A, good !!!
but now if I click on widget B, the application switches to foreground but does not receive parameter B


I think I know why, but I can not find a workaround:



----------------------------------------------------------
In my widget I have this code to apen the app :

Intent intentAppli = new Intent(Intent.ACTION_MAIN);
intentAppli.addCategory(Intent.CATEGORY_LAUNCHER);
intentAppli.putExtra("system_to_show", system);
intentAppli.setClassName("com.santeos.meteoSanteos", "com.santeos.meteoSanteos.MainActivity");
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intentAppli, PendingIntent.FLAG_UPDATE_CURRENT);

views.setOnClickPendingIntent(R.id.id_projet, pendingIntent);


----------------------------------------------------------------
in my app I have in the onCreate
Bundle extras = getIntent().getExtras();
if(extras == null) {
systemToShow= null;
} else {
systemToShow= extras.getString("system_to_show");
}

if(systemToShow!=null)
{
//TODO here get the string stored in the string variable and do
// setText() on userName

Toast.makeText(MainActivity.this,systemToShow, Toast.LENGTH_LONG).show();
baseUrl=baseUrl+"&toshow="+systemToShow;
}


Here I understand that it will work only when creating the app.


But I have tryed to move this code in the onResume and I always have the first parameter use to launch the app first time, and never the second one or third....


It seems that the intent is never updated with the extra parameter



Thanks for any help !!!
Best regards,
Laurent

Help Pictures grayed out in gallery and Google photos

Hi all,

as I was scrolling through my pictures this morning I noticed that almost 2 weeks of pictures have been grayed out in the gallery of my Samsung Galaxy S8 plus. I checked Google Photos, thinking that they would still show up there, but the same happened. The weird thing is that before and after those 2 weeks all pictures appear normally. Can anyone help with this?

I have attached a screenshot of the grayed out pictures.

Thanks in advance!

Attachments

  • Capture.PNG
    Capture.PNG
    874.9 KB · Views: 367

Weird clip tray problem

Throughout the day random Chinese codes keep copying to my clip tray. I keep getting the "Copied to Clip Tray" notification every time it happens. It always copies something like this:

{"code":200,"data":{"bizTypeCode":"gz01","bizValue":"¥PRSCY4OCtKZ¥","bizTypeName":"淘口令"},"message":"处理成功","isSuccess":true}lw

Below is a picture of what my cliptray currently looks like (and there's way more then what's shown in the picture) I've noticed that it most often happens when I'm about to type something. So is anyone else having this problem and does anyone know how to solve it?

Screenshot_2019-06-14-00-32-56.png

Help BAZZ Safe Driving hands free

This is my first post. BAZZ use to work on my Tracfone Galaxy J7 Skypro but has not been working for over two months. I have tried reinstalling but when I click Finish the app says "cannot find connection". All other apss work jut fine with our WiFI at home and the phone is paired with with my car's bluetooth feature. I do not like or use Android Auto.

I've searched the Internet from my computer (where I am now) to no avail. So I joined this forum to see if any other Tracfone users with a similar or exact same phone have an answer. I do know that Google Play removed it from the Play apps for some reason, however it's available through apkpure.com.

Thanks in advance for your help.

Huawei P30 / sms dont hide content on lock screen

So guys.

I only have swipe to unlock my screen.

I have it not to show the notifications content on lock screen and it works with Messenger.

But with SMS, it does show the content on lock screen. I even disabled it from the sms settings but it still shows the content.

But if i apply some sort of protection, like pin number to unlock the screen, the sms content is hidden! But with just swipe to unlock, it still shows thw content!

What can i do?

Verizon Message+ to gmail

I recently had to interact with a company to their field supervisor's phone through Google Message+ (Texas Children's Protection Agency)
Now trying to send to numerous Senate committee members by Gmail. Is there a simple way to convert sms to Gmail? (think computer dumb 62 yr old grandmother)
I have LGK8V, Android, Verizon service. Thanks. This just came up & the speaker of the house's office is waiting for me to forward.

Remote operation

I am a newbie to a lot of this technology and would value your advice.

What I am trying to do is to use my A7 to control a remote camera - a Panasonic FZ1000 - and I am getting along quite well except for one aspect.

I have got the phone and the remote camera connected through the Panasonic app. and that works fine, the phone will control zoom, mode and may other things, all of which again, work fine. What I can't figure out how to do is to focus the picture before pressing the shutter release.

If I just take the picture without focusing, sometimes it auto-focuses, and sometimes it doesn't...so my question is, how do I ensure that the picture is in focus before I press the shutter?

If there is such a ListView, is there any way to make the fourth DD visible only when a specific eve

String[] _InitialSetup_Menu = new String[]
{
"AA", "BB", "CC", "DD", "FF", "GG", "HH"
};

_InitialSetup_List = (ListView) _Main_List.findViewById(R.id._Main_ListView);
ArrayAdapter<String> __InitialSetup_Adapter = new ArrayAdapter<String>(this.getActivity(), R.layout.custom_menulist, R.id._Custom_MenuList_Text, _InitialSetup_Menu);
_InitialSetup_List.setAdapter(__InitialSetup_Adapter);

If there is such a ListView, is there any way to make the fourth DD visible only when a specific event occurs, or change the color?

What I'm about to do now

When there is a certain key event
For example, if you hold down the Menu key and press the UP key three times, the DD menu opens.
I want to say, what should I do?

Galaxy Note 8 - Can't send any video on Messenger App

So this has only started happening in the last week. I'll try to send a video to someone on the Messenger App but every time I always get the same error:

"Video is too big
At least one video is too big. Please resize and try again" download samsung ringtones

But this happens no matter what size the video is. Even trying to send videos that I've sent through to people previously, now give me the "too big" error. I just tried sending one and checked the size beforehand and it was less than 25mb (it was 2.75mb).

It's getting pretty annoying. I've tried updating my phone, messenger and Facebook and still nothing.

Any help would be appreciated

Samsung Note 10 – Spiral ringtone: https://ringtonesfree.info/samsung-note-10-spiral.html

How to prevent stranger viewing data after phone lost/faulty?

Hello,

Lets say if my phone (needs password/fingerprint to unlock) is lost (or faulty whole screen is black/crack fully/cannot turn on and sent for repair), assuming the thief or repairman is an expert and can access the data inside, how can I prevent my data from being viewed/change?

If anyone unlocks the phone they can see the sms/whatsapp/gmail/contact list/calendar/photos...

Is there something that you can do to prevent data leak?
Is it possible like after the phone is lost/faulty, log out of all gmail and apps that are still logged in in phone and delete all photos/whatsapps/sms/contact list/calendar...

Is there anything to prevent the thief retry unlimited retry of pattern/number lock? Or set longer delay after wrong input?

Thanks.

Help Calendar events overriding alarm

Galaxy S5
Android version 6.0.1
Not rooted

I have an odd issue;

The reminder screens that come up for events in the calendar app over-ride alarms set in the clock app. The reminder screens do not auto-dismiss, and appear silently. If an alarm is set to go off, and the reminder screen is currently up; the alarm will go off silently also.

Alarms do not go off silently if there is no event reminder screen up.

I can not find a way to stop this from happening. People are able to send appointment requests to my calendar, which even when not accepted, and with my default reminders set to off, will appear in my calendar with reminder times. I have over-slept many a time due to this.

Transfer Files from PC to Phone in Folders

I am trying to move a folder that contains several subfolders to my S10+ while maintaining the original folder architecture, but every time I make the transfer and try to view the files, it displays the files that were in each subfolder with no organization.

e.g. Folder A contains subfolder 1 and 2; subfolder 1 contains files a and b, and subfolder 2 contains files c and d. Upon transferring folder A, the phone will only show files a, b, c, and d with no organization.

Does anyone know how to make this work?

Thank you!

Help Can't erase and restore Lenovo Tab4 10

I purchased this tablet from Amazon last week and they didn't factory reset it so it ask for the original Google account info. I contacted the seller and they just sent me link of a YouTube video showing how to boot it up to the 'whatever' menu so I can erase all data and reset it to factory settings. Easy enough right? Nope... It comes up to a foreign language, I'm guessing Chinese and it's not even the regular menu the video shows. I'm now trying to just find out how to connect it to my PC with a usb cable and restore the software. The Lenovo support site is terrible. I can't find the instructions on how to do it.

I did connect the tablet to my PC and it recognizes it as a Lenovo Tab 4 10 and shows files, like Lenovo_Suite.exe, MagicPlus_setup.exe, SetupConfig.txt, etc but I don't know what to do with them.

Does anyone have any suggestions?

Chassquirrel

Attachments

  • IMG_2266.JPG
    IMG_2266.JPG
    379.8 KB · Views: 219
  • IMG_2267.JPG
    IMG_2267.JPG
    335.4 KB · Views: 196

Help!!

I just got this phone last night, im not sure what apps i really need and what apps i can stop/disable because i dont need to take up storage for stuff i do not know. Please HELP!!! I'm not tech savvy at all so please be patient n explain like I am in kindergarten. TIA

Battery isn't great.

So I always complain about battery life. I can never en to get good battery life from any phone I get. I've tried everything. I don't believe that a flagship phone only has a battery life of 14 hours. Putting it in battery save mode defeats the purpose of buying a 'great' phone. I'm not really a power user. I don't watch that many videos. I don't play games. To have the phone use 25% in 3 hours is ridiculous. I have done factory resets, disabled bloatware, etc. Arghhhh. Any ideas? If not at least I get to rant. &#128540;

Attachments

  • Screenshot_20190612-090156_Device care.jpg
    Screenshot_20190612-090156_Device care.jpg
    171.5 KB · Views: 251
  • Screenshot_20190612-090218_Settings.jpg
    Screenshot_20190612-090218_Settings.jpg
    166.3 KB · Views: 231
  • Screenshot_20190612-091940_Settings.jpg
    Screenshot_20190612-091940_Settings.jpg
    158.4 KB · Views: 225
  • Screenshot_20190612-091948_Settings.jpg
    Screenshot_20190612-091948_Settings.jpg
    212.2 KB · Views: 229

Filter

Back
Top Bottom