Got a new webview app but I need to make some improvements - Android Q&A, Help & Troubleshooting

I have a webview app that loads fine. But I want to make it behave like a real app. These are the faults I am facing:
* It only shows a loading icon only when you launch the app. Any other link you click while the site had finished loading for the first time does not show any loading icon. I want to fix that so that it shows the round circle stuff so users know that what they clicked on is responding.
* The website I am using displays slideup ads, so when these slide up ads come up and the user clicks on it, it just disappears like they didn't click on anything. I want it to ask them to choose a browser or open the ad inside the app. OR. Do you suggest it remove it and try Google Ads? I don't have Adsense account..so, put that into consideration while advising...
* I also discovered that when users log out and open the app again, they are asked to put in their login details again. Like they never used the app, if cookies are the solution to this, how can I put them? How can I make the app use cookies to save users login data?
*When users try to upload a profile picture it does nothing, I don't know if it is a PERMISSION problem because I only asked for INTERNET permission in the Manifest file.
* I want some options that work (about the app, exit(Yes/ No), log out)when they press and hold the back button.
Thanks, guys.

Related

[REQUEST] [MOD] Remove apps from the 'Share' menu

I've installed tons of apps on my Nexus One (naturally) and am really annoyed to find many of them position themselves in the 'Share' menu on my gallery. There's no way (that I can see) to reorganize or limit this, either.
I typically either use Pixelpipe or Twidroyd to upload from there - I'd like to be able to either
A. pick and choose what does and doesn't show up in this list
OR
B. reorder it so the ones I want to use are closer to the bottom bar.
Currently, Pixelpipe *and* Twidroyd are at the top of the list. This isn't a big deal in portrait mode, but in landscape mode, they're cut off and I can't scroll up to get to them.
I would like such a mod as well!
Not being able to edit it was the main reason I uninstalled twidroid. Cuz I saw no sense why, when in twidroid, twidroid would be the first option under 'share'. That really annoyed me. I mean why whould I need to share a tweet via the 'share' menu in twidroid?
Now...quite happily using twicca which doesn't force itself as the first app under the 'share' settings.
just put a .nomedia file in the folder that has the pics you dont want in the gallery
BloodyWasHere said:
just put a .nomedia file in the folder that has the pics you dont want in the gallery
Click to expand...
Click to collapse
You didn't get the request.
When you open a photo in the gallery app, click on 'More', and then click on 'Share', there are a TON of apps in there, most of which I don't want to use from that menu. The main one that I want to use is Pixelpipe. However, it shows up in the top of this list. That's fine in portrait mode, but the top of the list is cut-off in landscape mode, which is a hassle. I'd like to be able to either reorganize this list or remove some apps from it at my discretion, so that it's not littered with options I'm not going to use.
one way to modify the app's manifest xml and remove the broadcast receiver or other related lines.
in for this...
Billy
I like the fact that the OS allows this type of integration. It's awesome, but an option should be in settings to turn it on or off for each app.
britoso said:
one way to modify the app's manifest xml and remove the broadcast receiver or other related lines.
Click to expand...
Click to collapse
So I'd need to do that for every app that appears in the list?
the orange bandit said:
So I'd need to do that for every app that appears in the list?
Click to expand...
Click to collapse
That's correct. The applications declare in their manifest.xml to which Intents they can respond. They only way to have an application no longer appear in a Share menu item is to have it no longer handle the Intent that is going to be passed, and the only way to do that is to modify the application's manifest.xml.
rpcameron said:
That's correct. The applications declare in their manifest.xml to which Intents they can respond. They only way to have an application no longer appear in a Share menu item is to have it no longer handle the Intent that is going to be passed, and the only way to do that is to modify the application's manifest.xml.
Click to expand...
Click to collapse
Would I have to do this again whenever the app is updated, too?
Also, given that I have root, is there any way to set this up as an app somehow? I could launch the app, which would consist of a checklist of the apps that I have installed on my phone (which was compared against a master list somewhere of apps that declare this intent). I could then simply uncheck the ones that I want removed, and the app would automatically remove the declaration from each app's manifest? Or perhaps a way to monitor the Intent, see which apps are declaring that intent, and then populate the checklist like that?
This has been bugging me for the longest time, it would be great to be able to disable Facebook, Picasa and crap like that which I never use.
the orange bandit said:
Would I have to do this again whenever the app is updated, too?
Also, given that I have root, is there any way to set this up as an app somehow? I could launch the app, which would consist of a checklist of the apps that I have installed on my phone (which was compared against a master list somewhere of apps that declare this intent). I could then simply uncheck the ones that I want removed, and the app would automatically remove the declaration from each app's manifest? Or perhaps a way to monitor the Intent, see which apps are declaring that intent, and then populate the checklist like that?
Click to expand...
Click to collapse
You would need to have root access to modify the APKs of protected and system apps. If you updated the application, it's manifest.xml would have to be changed again, too. I'm not completely certain that if you did this to Market apps if they would be updatable because of signing issues; you could do an adb pull, modify the manifest.xml, then adb push the file back, but if it's modified, I'm not sure that the Package Installer would allow the installation because of the signature.
As far as an application to automate this, I'm not sure if the permissions system on Android allows modification of another app's APK. In theory, the application would scan every APK, examine the manifest.xml of each one, and make a list of which apps respond to which Intents. It could then selectively modify the APKs (and possibly re-zipalign), but I'd rather have a slightly over-populated Share menu than deal with the hassles of broken Market application updates because my installed apps are no longer properly signed.
rpcameron said:
...I'd rather have a slightly over-populated Share menu than deal with the hassles of broken Market application updates because my installed apps are no longer properly signed.
Click to expand...
Click to collapse
Unfortunately, I think I agree with this.
Perhaps it would be easier to figure out a way to re-organize this list so that the apps that I'm actually going to use show up at the bottom (closer to the toolbar) instead of the top? Hypothetically, this would only involve finding the code that populates this list and changing 'descending' to 'ascending', right?
Rather than modifying the apps, wouldn't it be easier to have an exceptions list that the Share menu just ignores? I know that's not a very technical explanation, but what I'm trying to say is a more centralized solution where you cut out programs regardless of whether or not they have made themselves available for the Share menu.
Would be nice to edit this. If i remember correctly, during the Donut days, Cyanogen was experimenting with adding bluetooth share to the gallery app. In his code, he made an error that resulted in the "share" menu to be empty if if bluetooth is turned off. Meaning, Picasa, email, twidryod and everything else won't be there if bluetooth is turned off.
So this means that there was a way to make things disappear from the list.
str4vag said:
Would be nice to edit this. If i remember correctly, during the Donut days, Cyanogen was experimenting with adding bluetooth share to the gallery app. In his code, he made an error that resulted in the "share" menu to be empty if if bluetooth is turned off. Meaning, Picasa, email, twidryod and everything else won't be there if bluetooth is turned off.
So this means that there was a way to make things disappear from the list.
Click to expand...
Click to collapse
Interesting - I'll have to see if I can find out how.
Unfortunately, I couldn't code my way out of a paper sack, so at some point I'm going to have to find someone to actually *do* this for us.
I would love this feature too. I currently have so many choices, I can't even see Pixelpipe on the list. I don't need to send photos to Google Googles.
I appreciate the option to, but I'd love to turn it off by app.

[Q] How to force the browser to stay in memory on ICS?

For whatever reason every browser I try reloads tabs when I leave the browser. It's REALLY annoying - I'm stuck on edge most of the time, and finding out that my tabs suddenly reload just because I switched to twitter for a second.
I tried to pretty much disable the LMK, and it still did this...
I tried Chrome, Browser Plus, stock ICS browser, Dolphin and Opera (which does this slightly less often) Last time I had this problem was on my old tablet with only 256 MB of RAM. (Which still did this less often than the Note on ICS)
Every time this happened, I had at least 120 MB of ram free. Seriously, the note has a full gigabyte of ram, and yet this happens.
This doesn't happen to me on GB.
Is there anything I can do to make browsing normal again?
Like, exclude a browser from getting killed, or something?
I'm using a Galaxy Note..
Help please?
I tried all that I could, but was still unable to solve this problem.
I now had to downgrade to Gingerbread because of this issue, it is REALLY annoying.
I just want to multi task on my device...
I actually had tabs reload while I was still in the browser! Is there ANYTHING that can be done?
Still have this issue. Tried every damn browser I could, every ICS ROM I could find, but it still does this. Please help.
Maybe try Opera Mini (not opera mobile)?
Sent from my Google Nexus S using XDA App
developersdevelopers said:
Maybe try Opera Mini (not opera mobile)?
Sent from my Google Nexus S using XDA App
Click to expand...
Click to collapse
Opera Mini does not really fit my needs...
And reloading tabs will still be slower than keeping them in memory, even with Opera.
Thanks for replying, though.
I wish someone who could help would reply to this thread. I'm tired of having to reload tabs almost every time too.
Asus Transformer Prime tf201 ICS
Hi all,
just adding my 2cents, I've been facing similar issue , as a lot of us, tried almost all available browsers on the google play
I'm finally using OverSkreen (floating browser) which seems able to stay on memory by registering itself in the notification area ...
Okay, it's a paid apps
Just want to let you know that I'm not advertising it, I do not know the dev and am not involved in anyway in the development
Just sharing my findings
I'm still digging that issue and landed here while searching the web ....
Hope this helps some
thanks for that, it's nice!
though i'd really love to use chrome, because of syncing and all.
Some solution here???
Try this:
1. Download the Root Explorer apk file from the link and install itit on the device.
2. Open Root Explorer and provide the root permissions.
Now tap on “Mount R/W” which can be seen on top of the screen.
Scroll down and open the “data”*directory.
Once in the /data directory, press menu key and select “New File”.
Enter the name of the file as local.prop.Now long press on local.prop and select the “Open With” option.
Now select text editor.
The app’s process name should be known to the user. For e.g. if the user wants to lock the Contacts app in memory, type “sys.keep_app_1=com.android.contacts”. “com.android.contacts” is the process of the Contacts app.
Similarly other apps can be locked in the memory in the following manner.Now press menu key and select Save and exit.
Now system will show a message saying ‘Old local.prop backed up as local.prop.bak’. And you are done.. Reboot and enjoy.
Get the app process name with apk info for exampel.
Taken from here:
http://www.themobimag.com/how-to-keep-an-app-in-memory-on-android/
edit:
or use JKays framework to register apps as service! read the faq for whitelistening apps!! its great. works for me with opera. it is not reloading the pages anymore and hopefully dont cancel the downloads!
redplate said:
Try this:
1. Download the Root Explorer apk file from the link and install itit on the device.
2. Open Root Explorer and provide the root permissions.
Now tap on “Mount R/W” which can be seen on top of the screen.
Scroll down and open the “data”*directory.
Once in the /data directory, press menu key and select “New File”.
Enter the name of the file as local.prop.Now long press on local.prop and select the “Open With” option.
Now select text editor.
The app’s process name should be known to the user. For e.g. if the user wants to lock the Contacts app in memory, type “sys.keep_app_1=com.android.contacts”. “com.android.contacts” is the process of the Contacts app.
Similarly other apps can be locked in the memory in the following manner.Now press menu key and select Save and exit.
Now system will show a message saying ‘Old local.prop backed up as local.prop.bak’. And you are done.. Reboot and enjoy.
Get the app process name with apk info for exampel.
Taken from here:
http://www.themobimag.com/how-to-keep-an-app-in-memory-on-android/
edit:
or use JKays framework to register apps as service! read the faq for whitelistening apps!! its great. works for me with opera. it is not reloading the pages anymore and hopefully dont cancel the downloads!
Click to expand...
Click to collapse
Hi, thanks for sharing your findings... Tried myself to use Xposed and app settings to make the browser stay in memory
Works really great
Only drawback is that it significantly slows down the phone so stopped that technic
Will try yours, thanks again

[Q] Annoyances - can you help me solve?

1. When opening applications from the notification window-shade, they aren't counted as open by the system and hence don't appear in the multi-tasking menu. For example, I'll open GMail from the window-shade go to my first email, click a link in that email taking me to the browser - then when I'm done in the browser if I hit the multi-tasking menu to go back to GMail it's not there. I have to go home, and then launch GMail from it's icon.
2. Different browsers can't be used on a case-by-case basis, unless you don't have one set as default - in which case the system asks you EVERY time which browser you want to launch. The problem is that if I set a default browser (I am mainly using Chrome) then I'm screwed when I come to a page with Flash content (more often than I would like). The only thing I can do then is the cumbersome copying the page address, going home, launching the relevant browser that can display Flash, and then pasting the address in.
It would be nice if I could set Chrome as default but then when I hit a link which takes me to a webpage with Flash content, I'd like to go back a page then perhaps long-press the link and get offered each browser option then (and only then).
Any ideas on how to solve these issues (aside from just using a different browser for no 2?)
#2 - Install "flashify" from the Play store. When you are on a page that requires flash, hit your share button and the typical list of services will come up. Choose flashify and then it will ask which flash enabled browser. It will immediately open that page in the new browser.
Sent from my SCH-I535 using Tapatalk 2
guthrien said:
#2 - Install "flashify" from the Play store. When you are on a page that requires flash, hit your share button and the typical list of services will come up. Choose flashify and then it will ask which flash enabled browser. It will immediately open that page in the new browser.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Nice suggestion, works just how you said - thanks very much

[MOD][XPOSED] Prevent Running

I have a forked update, Brevent, which doesn't require Xposed, nor root, nor unlock bootloader.
You can find it here: https://forum.xda-developers.com/android/apps-games/introduce-brevent-black-prevent-root-t3559151
Prevent Running was transfered to "Shanghai Falcon Network Co., Ltd." since 2.3.3.
This module was written for my GF, and accept donations.
Address: http://repo.xposed.info/module/me.piebridge.forcestopgb
How prevent running works?
After go deep in the android source, i find it uses flag when sending broadcast, so I hijack the IntentFilter's match.
And for other action, like force stop, launch activity, exit activity, I hijack them too.
So if any package is force stopped, it won't accept any intent filter...
However, i let input method, app widget, and laucher go.
- app widget, otherwise reboot is needed to show a widget in the widget chooser.
- configuration changed, otherwise cannot change lanugage
- account, otherwise sync and account won;t work
When the activity is launched, it can receive broadcast again..
When the activity exits by back key, it won't receive intent again, this function is added to android's feature.
So if you want to keep it running, please use home key instead.
And all the feature works for system package too, but the system package must have launcher.
Otherwise, if you still force stop it, it will cause FC (I suggest you use pm disable to do so).
Latest testing version: http://piebridge.me/pr/
Change Logs
for english version: please visit: http://piebridge.me/pr/CHANGELOG.en.txt
for chinese version: please visit: http://piebridge.me/pr/CHANGELOG.txt
First.
GB users will happy.
Good Work sir !
Will test it ASAP .
so by activing this module, after i click Force stop, in GB, will be the same like Hibernating with greenify ? :laugh:
lovely thanks, i hope this can make my old ace duos come back to life thanks liudongmiao bro
liudongmiao said:
This module is written for my GF, and accept donations.
// Normally, I don't accept any donation for most little project.
Address: http://repo.xposed.info/module/me.piebridge.forcestopgb
For GB user, there is no greenify, and there is no change to back-port.
1). greenify depends system's launch control (http://developer.android.com/about/versions/android-3.1.html#launchcontrols), which introduces in 3.1
2). greenify is not opensource, also the author and i live in the same country, even in the same city, however, he doesn't open source it.
How prevent running works?
After go deep in the android source, i find it uses flag when sending broadcast, so I hijack the IntentFilter's match.
And for other action, like force stop, launch activity, exit activity, I hijack them too.
So if any package is force stopped, it won't accept any intent filter...
However, i let input method, app widget, and laucher go.
- input method, otherwise reboot is needed to show a input method in the input method chooser.
- app widget, otherwise reboot is needed to show a widget in the widget chooser.
- launcher, otherwise there is no chance to start the activiy.
- view for system's package, otherwise it will cause FC. For example, if you force stop browser, and user want to visit a link, it should receive the broadcast.
When the activity is launched, it can receive broadcast again..
When the activity exits by back key, it won't receive intent again, this function is added to android's feature.
So if you want to keep it running, please use home key instead.
And all the feature works for system package too, but the system package must have launcher.
Otherwise, if you still force stop it, it will cause FC (I suggest you use pm disable to do so).
Click to expand...
Click to collapse
Please give screenshot and your battery life before and after installing this module
Sent from my GT-N7100 using Tapatalk
Was looking for Greenify for GB from long...
Can somebody review this app? Is there any shortfall of this app in comparison with Greenify (as user, don't understand technicality )
I tried this yesterday on google play services app and it worked fine. I can't see it in running services, so i can say (but not sure for other apps) its working :good: Hatsoff @liudongmiao your GF must be very proud of u if she's a geek :silly: One question: If we stop for example hangouts app, will we receive messages as usual??
swat4samp said:
I tried this yesterday on google play services app and it worked fine. I can't see it in running services, so i can say (but not sure for other apps) its working :good: Hatsoff @liudongmiao your GF must be very proud of u if she's a geek :silly: One question: If we stop for example hangouts app, will we receive messages as usual??
Click to expand...
Click to collapse
It shouldn't receive any broadcast, and never running, so you coun't recive messages.
Can you add a UI when you can choose apps to hibernate (like Greenify) and force stop them one by one?
BTW, this mod is superb...
Sent from my Xperia E1 dual using Tapatalk
1. Love doesn't need any reason.
2. Wanna speed up 3G (not 4G LTE)?
Here it is:
http://forum.xda-developers.com/showthread.php?t=2586876
3. My blog
4. Press the thanks button if I really helped/assisted you.
???? amazing , thanks so kmmuch
Enviado desde mi HTC One mediante Tapatalk
Hi all,
i installed this fantastic module. It work partially. Problem is when i exit aplication on back key application is still running. Where i am wrong? @liudongmiao
nikola1970 said:
Hi all,
i installed this fantastic module. It work partially. Problem is when i exit aplication on back key application is still running. Where i am wrong? @liudongmiao
Click to expand...
Click to collapse
No, nothing is wrong.
When you use back key to exit the application, the application won't receive any broadcast, however, the application will be cached, so the next time you open it, it will be opened very quickly. But before you open it again, it won't receive any broadcast.
However, if you want to the process be stopped, you can force stop it.
liudongmiao said:
No, nothing is wrong.
When you use back key to exit the application, the application won't receive any broadcast, however, the application will be cached, so the next time you open it, it will be opened very quickly. But before you open it again, it won't receive any broadcast.
However, if you want to the process be stopped, you can force stop it.
Click to expand...
Click to collapse
I observed this behaviour only with play services. For other apps, its working fine. So basically there's no much diffrnce between freezing and this except for application caching right? If we stop mms, do we still receive sms? A UI would be useful to look which apps are stopped and which are not. Great work man :good: BTW xposed for gb isn't updated yet. Any reason?
swat4samp said:
I observed this behaviour only with play services. For other apps, its working fine. So basically there's no much diffrnce between freezing and this except for application caching right? If we stop mms, do we still receive sms? A UI would be useful to look which apps are stopped and which are not. Great work man :good: BTW xposed for gb isn't updated yet. Any reason?
Click to expand...
Click to collapse
I don't know what's freeze, it doesn't seem to be a android's function.
As i said in the description, it doesn't force stop any application, but prevent sending broadcast to force stopped application.
For caching, it's a feature added to android's design.
For android's native design, when you start the application, it will be removed from the stop list until you force stop again.
But for me, i think its too complex to stop it, so i catch the finish, and if it's exited by finish, it will be added to the stop list.
// but it's in the cache processing list. so if you want to force stop it. this little design is useful for me to open a application temporary.
So if you stop the mms, i don't know whether you will receive or not.
The mms should be the core services of the android, i don't think you can force stop the services...
And i didn't forbidden the open the activity from the service, otherwise, it will cause FC of the application.
As i'm very busy, and an UI will take me some time. So there is no ui currently.
However, for the list, you can open the /data/data/me.piebridge.forcestopgb/conf/forcestop.list
For the xposed and other back-ported's module, it's not updated just because i'm too busy, and sometime too lazy .
You can read the description here: http://repo.xposed.info/module/me.piebridge.forcestopgb
And if you want to know more about the tech, you can read google's documetation: http://developer.android.com/about/versions/android-3.1.html#launchcontrols
thanky you for answers @liudongmiao
when i prevent Viber from running, when i start Viber, it starts but when you tao on some conversation it gives me force close. is this know bug?
Can we remove this setting simply by editing in config list (changing to false)?
Edit: I changed gms app to false and then opened the app to check which worked fine (i can see many running process in ram) and then i checked the list and it showed only that app in list. Is it alright?
Sent from my GT-S5670 using Tapatalk 2
swat4samp said:
Can we remove this setting simply by editing in config list (changing to false)?
Edit: I changed gms app to false and then opened the app to check which worked fine (i can see many running process in ram) and then i checked the list and it showed only that app in list. Is it alright?
Sent from my GT-S5670 using Tapatalk 2
Click to expand...
Click to collapse
true or false has special meaning.
true indicates this app is in the stopped list, and no broadcast would be send to the application.
false indicates this app has been marked in the stopped list, and when use back-key to exit, it would be in the stopped list.
I will write a simple ui, after the back-porting of xposed installer (completed), xprivacy (completed), and app settings (in to do).
im following this thread closely,and i want to test somethings,but before i do so,i have some questions.
the most important one its regarding about using this module along with greenify,what settings do i have to set in order to achieve the best of both apps,and then have a better experience.
Thanks.
kalel29 said:
im following this thread closely,and i want to test somethings,but before i do so,i have some questions.
the most important one its regarding about using this module along with greenify,what settings do i have to set in order to achieve the best of both apps,and then have a better experience.
Thanks.
Click to expand...
Click to collapse
As I have no ics+ devices, so i cannot say much things.
And if you want to try, you can wait for some days, I would write a simple configuation ui this weekend.
In short, if greenify works on your device, then just use greenify. But if you find greenify doesn't work at all, then try this one.
From design, greenify depends on http://developer.android.com/about/versions/android-3.1.html#launchcontrols introduces in android 3.1, this app hacks some api to emulate the launch controls. This works on gingerbread devices, and the devices that launch controls don't work at all.

App removal

Hello
I Installed an app about three weeks ago, did not like the app, and removed It. However, I keep getting random pop up ads on my phone which I believe Is the cause of Installing this app. Also, when I want open a photo, I get various options to open It, one of them being something called Pixleknot. When I open a photo using Pixleknot, I get a green screen with a log-In page, which I can do nothing with.
I have tried using various phone cleaner apps to remove the pop ads caused by Installing an app and also remove Pixleknot with no luck. Also, I cannot find Pixleknot In the Apps under Settings so am unable to remove this. Please can someone advise me. Thanks.

Categories

Resources