[Completed] Multi-Window App Instructions/Fix Crashes For Dummies - XDA Assist

THIS IS FOR SAMSUNG DEVICES THAT ARE NOT ROOTED AND HAVE THE MULTI WINDOW FEATURE.
I really wasn't able to find anything on why app crashes happen in multI window mode for some apps when using mw-pen on devices that are not rooted. So I wanted to post a blurb on how to manually stop the crashes as well as how to manually enable an app, and get things working. Again this is for devices that are not rooted, though it will work with rooted devices. There really is no point in doing it this way on a rooted device unless your bored or you are just slightly insane.
Since your not rooted you will lose all current app data that is not hosted in the respective applications cloud. As well you will need to recompile new packages when updates are released if you want new features or the program will no longer connect, etc. Updating directly from the app store will kill the multiwindow feature on the respective app. If you are user of MW-Pen app enabler skip step 9. and as MW does this already. If you just didn't want to use mw pro......or are again slightly insane.... then do step 9.
All of the steps below will be carried out on Android device.
You will need the following software:
1) File exploration program with zip support (JRUMMY Root Browser works great)
2) Apk Editor (Free version should be fine although I use pro)
We will assume you have the previously mentioned software installed. If it is not you should do so AFTER reading this post.
1) Create an independent folder in "/sdcard/APKeditor/(My project)/" , additionally I created ./backup & ./new (./ representing the working parent directory).
2)Once the folders are in place, go to Settings>Applications>All Applications>YourTargetApplication I recommend stopping your application and clearing any data or at least cache. Although the information should not transfer over it would really bite if you were the one random exception in this vers, and you were giving copies out. Do not disable the application only stop it.
3) Now you will want to backup your target app. To do this fire up "Apk Editor" select the option to pick an apk from a currently installed app select the option for common edit. Click through until you see the save button on the top right corner. THIS IS BACK UP!! SO DO NOT CHANGE ANYTHING!!
4) Once it has completed successfully I recommend flipping back to your application manager and uninstalling the target app. Then flip back over to APKeditor and install. Test the app to verify nothing became corrupted and the app functions normally with a backup only. This will help in your trouble shooting.
5) Once you have the app installed and everything is good you will want to again go to to your app manager, stop the target app and clear data or at least cache. Stop do not disable.
6) Now open your File Browser of choice that met the requirments and navigate to "./sdcard/APKEditor/" you shold see an apk named "_Base" with the icon of your target app. That is your know good backup so you will want to move the apk file to its respective backup folder created earlier
7) Once the backup is secure go back into APKeditor and again select the option apk from app. This time instead select the Full Edit option (Resource Rebuild).
8) The fun part! This part should take you no more than 15 seconds if it takes longer than that your messing up (JOKE). From the edit screen you will see 3 buttons in the bottom. Go to the last button or "tab" it is labeled "Manifest". Once selected go ahead and long press an entry under <intent-filter> any entry really should be fine but let's be safe. On the menu that pops up you will see the option "Open In New Window" select it. Take a minute at first to look things over and familiarize yourself with the patterns at first it may seem a bit overwhelming. There is a logical structure to the file it is telling things what to do and where they belong. The top will have the permissions required followed by accessing features pertains to those permissions. We don't care about that however. The main areas you should look through (just look at to get familier) are the <intent-filter> entries along with what preceded the entry and the structure and what follows and again and again until you see the pattern. What we will be doing in the next step (The 10 second step) is adding entries under the <intent-filter> sections.
9) So your 15 seconds is up and now you feel like your ready for the 10 second step. Now that your ready we need to go into a less obvious view. You will now see the reason why I had you look at the code in the first view until you were comfortable. So go ahead and click on the pencil icon in the upper right corner. The first edit will be slightly different than the rest. You will see ano entry that says <application> followed by icon, labels, name, theme, those kinds of things. They should be followed by <activity> then <intent-filter> and then <action>. Under the last <action> item in the grouping and before </intent-filter> is where your entry will go. (<whatever> is the starting point for instructions and </whatever> is the closing point. So if we input in <activity-alias> or <program> then that is where our command would sit. In some random place never meeting up with us for our scheduled date). So we will go below the last action entry in the first grouping, and input the following:
<category android:name="com.sec.android.intent.category.MULTIWINDOW_LAUNCHER" />
<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />
Rinse, wash, and repeat, Rinse, wash, and repeat, Rinse, wash, and repeat......You get the idea... Be sure that </intent-filter> is the line after everytime you make an entry.
10) Now we need to review the document for oddities and/or anomalies to the general rule and what causes app crashes in MultI Window the majority of the time. Typically this happens when overlay singular windows are called from the app and are independent of the general <activity> <intent-filter> <action> rule. In these cases we have to put on our detective hats and poke around. Normally we already know screen the app crashes in so that will is our first clue, so we need to start to look for something to do with that window. If it is a chat window look for a chat window call, etc. In that set of instructions for your crashing window you will want to add in the calls as you have done before you may need to add the first <intent-filter> now you can test. Save the document off to the side and save the apk. And install in real-time. Test the app. You if it was done correctly your app should no longer crash. Unfortunately this is the grey area and things will vary from application to application and this is where detective hats need to be on tight. Look for things like "launchmode=singletask". These can be dead giveaways your in the hot zone of your issue.
11) save the new working apk to the "./new" directory created earlier inserting the app version number after. You can find the new file under the APKeditor folder you should see a new "_Base" File.
*At the end of process 10 you will get an error message when saving saying the file is not authentic etc etc. Ignore the message and continue on.
*As a side note if you follow these instructions, have done trial and error, and things still are not working. Then and ONLY then post below. I can not insure promptness but I will respond when able.

joutcast said:
THIS IS FOR SAMSUNG DEVICES THAT ARE NOT ROOTED AND HAVE THE MULTI WINDOW FEATURE.
I really wasn't able to find anything on why app crashes happen in multI window mode for some apps when using mw-pen on devices that are not rooted. So I wanted to post a blurb on how to manually stop the crashes as well as how to manually enable an app, and get things working. Again this is for devices that are not rooted, though it will work with rooted devices. There really is no point in doing it this way on a rooted device unless your bored or you are just slightly insane.
Since your not rooted you will lose all current app data that is not hosted in the respective applications cloud. As well you will need to recompile new packages when updates are released if you want new features or the program will no longer connect, etc. Updating directly from the app store will kill the multiwindow feature on the respective app. If you are user of MW-Pen app enabler skip step 9. and as MW does this already. If you just didn't want to use mw pro......or are again slightly insane.... then do step 9.
All of the steps below will be carried out on Android device.
You will need the following software:
1) File exploration program with zip support (JRUMMY Root Browser works great)
2) Apk Editor (Free version should be fine although I use pro)
We will assume you have the previously mentioned software installed. If it is not you should do so AFTER reading this post.
1) Create an independent folder in "/sdcard/APKeditor/(My project)/" , additionally I created ./backup & ./new (./ representing the working parent directory).
2)Once the folders are in place, go to Settings>Applications>All Applications>YourTargetApplication I recommend stopping your application and clearing any data or at least cache. Although the information should not transfer over it would really bite if you were the one random exception in this vers, and you were giving copies out. Do not disable the application only stop it.
3) Now you will want to backup your target app. To do this fire up "Apk Editor" select the option to pick an apk from a currently installed app select the option for common edit. Click through until you see the save button on the top right corner. THIS IS BACK UP!! SO DO NOT CHANGE ANYTHING!!
4) Once it has completed successfully I recommend flipping back to your application manager and uninstalling the target app. Then flip back over to APKeditor and install. Test the app to verify nothing became corrupted and the app functions normally with a backup only. This will help in your trouble shooting.
5) Once you have the app installed and everything is good you will want to again go to to your app manager, stop the target app and clear data or at least cache. Stop do not disable.
6) Now open your File Browser of choice that met the requirments and navigate to "./sdcard/APKEditor/" you shold see an apk named "_Base" with the icon of your target app. That is your know good backup so you will want to move the apk file to its respective backup folder created earlier
7) Once the backup is secure go back into APKeditor and again select the option apk from app. This time instead select the Full Edit option (Resource Rebuild).
8) The fun part! This part should take you no more than 15 seconds if it takes longer than that your messing up (JOKE). From the edit screen you will see 3 buttons in the bottom. Go to the last button or "tab" it is labeled "Manifest". Once selected go ahead and long press an entry under <intent-filter> any entry really should be fine but let's be safe. On the menu that pops up you will see the option "Open In New Window" select it. Take a minute at first to look things over and familiarize yourself with the patterns at first it may seem a bit overwhelming. There is a logical structure to the file it is telling things what to do and where they belong. The top will have the permissions required followed by accessing features pertains to those permissions. We don't care about that however. The main areas you should look through (just look at to get familier) are the <intent-filter> entries along with what preceded the entry and the structure and what follows and again and again until you see the pattern. What we will be doing in the next step (The 10 second step) is adding entries under the <intent-filter> sections.
9) So your 15 seconds is up and now you feel like your ready for the 10 second step. Now that your ready we need to go into a less obvious view. You will now see the reason why I had you look at the code in the first view until you were comfortable. So go ahead and click on the pencil icon in the upper right corner. The first edit will be slightly different than the rest. You will see ano entry that says <application> followed by icon, labels, name, theme, those kinds of things. They should be followed by <activity> then <intent-filter> and then <action>. Under the last <action> item in the grouping and before </intent-filter> is where your entry will go. (<whatever> is the starting point for instructions and </whatever> is the closing point. So if we input in <activity-alias> or <program> then that is where our command would sit. In some random place never meeting up with us for our scheduled date). So we will go below the last action entry in the first grouping, and input the following:
<category android:name="com.sec.android.intent.category.MULTIWINDOW_LAUNCHER" />
<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />
Rinse, wash, and repeat, Rinse, wash, and repeat, Rinse, wash, and repeat......You get the idea... Be sure that </intent-filter> is the line after everytime you make an entry.
10) Now we need to review the document for oddities and/or anomalies to the general rule and what causes app crashes in MultI Window the majority of the time. Typically this happens when overlay singular windows are called from the app and are independent of the general <activity> <intent-filter> <action> rule. In these cases we have to put on our detective hats and poke around. Normally we already know screen the app crashes in so that will is our first clue, so we need to start to look for something to do with that window. If it is a chat window look for a chat window call, etc. In that set of instructions for your crashing window you will want to add in the calls as you have done before you may need to add the first <intent-filter> now you can test. Save the document off to the side and save the apk. And install in real-time. Test the app. You if it was done correctly your app should no longer crash. Unfortunately this is the grey area and things will vary from application to application and this is where detective hats need to be on tight. Look for things like "launchmode=singletask". These can be dead giveaways your in the hot zone of your issue.
11) save the new working apk to the "./new" directory created earlier inserting the app version number after. You can find the new file under the APKeditor folder you should see a new "_Base" File.
*At the end of process 10 you will get an error message when saving saying the file is not authentic etc etc. Ignore the message and continue on.
*As a side note if you follow these instructions, have done trial and error, and things still are not working. Then and ONLY then post below. I can not insure promptness but I will respond when able.
Click to expand...
Click to collapse
XDA Assist is not the place for this post.
Thread closed.

Related

Remving obselete Today program entries

I have an obselete today program entry that is left over from an old program, does anyone know how to remove it. I cannot remove it from the list of programs displayed in Today by taking out the tick from the menu list as when I try to remove the tick I get a message saying "start menu - unable to move that item"
Any ideas please?
http://forum.xda-developers.com/showthread.php?t=311268&highlight=today+item+registry
Sorry, I'm a newbie to mobiles, how do I get at the plugins, the entry doesn't show in the list of installed programs
Thanks
This is usually what I do as a newbie. Re-install the OLD application related to the Today Plug-In that was left lingering in your Today Screen. This time you can UNINSTALL it correctly by UNTICKING the box for the plug-in found at Start>Settings>Today>Plug-in. After doing this, you can now safely UNINSTALL the application and hopefully the plug-in won't be left behind.
this was the part you should read
"Otherwise get a registry editor and delete the relevant key under:
HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items\[item name]"
you get to it by using a registry editor like total commander
I don't appear to have a 'plugins' tab in Start>Settings>Today>. So I guess I am going to have to go down the registry editing route, but this worries me somewhat in case it goes pear shaped
'plugins' should be 'items' not 'plugins''s
Rudegar
Thanks for the correction, the entry concerned does not show in the items list
then i have absolutely no idea what you are asking
in today->items
all today items shown on the today screen should be located
unless it's not a true today item and is a program which is started from
\windows\startup
and if you mean icons in programs
or shortcuts to programs in programs in a launcher you can
1 remove the icon from programs in windows\startmenu\programs\
and if it's in a launcher today item you have to use the functionality of that launcher
Rudegar
When I tap Start the icon appears in the list of things like calendar and call register, but it is an empty icon that just displays an empty box and the name 'copilot'. If I then go to start, settings, menus I can again see it in the list of programs in the start menu, but it wont let me remove the tick to take it out of the list.I just get a message saying 'unable to move that item'
leswaller said:
Rudegar
When I tap Start the icon appears in the list of things like calendar and call register, but it is an empty icon that just displays an empty box and the name 'copilot'. If I then go to start, settings, menus I can again see it in the list of programs in the start menu, but it wont let me remove the tick to take it out of the list.I just get a message saying 'unable to move that item'
Click to expand...
Click to collapse
You need to connect your phone through activesync. Then go into windows > Programs and delete the program icon in there. Once you do that, it will not show up on the start drop down list.
Thanks for all the suggestions, I was unable to get at it except by file explorer/windows/startmenu, but deleting the file in there did the trick. The problem was that the icon remained even after the program was uninstalled. Problem now solved... thanks to all your help
leswaller said:
Rudegar
When I tap Start the icon appears in the list of things like calendar and call register, but it is an empty icon that just displays an empty box and the name 'copilot'. If I then go to start, settings, menus I can again see it in the list of programs in the start menu, but it wont let me remove the tick to take it out of the list.I just get a message saying 'unable to move that item'
Click to expand...
Click to collapse
maevro said:
You need to connect your phone through activesync. Then go into windows > Programs and delete the program icon in there. Once you do that, it will not show up on the start drop down list.
Click to expand...
Click to collapse
Actually, maevro has the right idea, but he gave you the wrong direction to follow. I hope you don't mind if I correct it a little bit.
OK, I assume you already UNINSTALLED this said application a long time ago, right? What happened was an icon was left at these 2 locations:
1) Windows>Start Menu>Programs>(or it could have created its own folder)
2) Windows>Start Menu
Let me explain it as simply as I can. All icons you see in Windows>Start Menu will appear avery time you PRESS/TAP the START windows icon/button. It has a maximum limit (on my device) of 7 applications to show. You can control what is in there using START>SETTINGS>MENU application, BUT since there is also another icon present probably in Windows>Start Menu>Programs it won't let you move it out of that folder.
SO THE SOLUTION:
Delete the said icons on the folowing locations:
1) Windows>Start Menu>Programs>(or it could have created its own folder)
2) Windows>Start Menu
Don't worry if you can't find the icon in list number 1. You can manually delete it using a powerful file manager like RESCO EXPLORER (not free) or TOTAL COMMANDER (free) or use what maevro suggested and attach it via USB and use active sync.
I hope this helps.
---
leswaller said:
Thanks for all the suggestions, I was unable to get at it except by file explorer/windows/startmenu, but deleting the file in there did the trick. The problem was that the icon remained even after the program was uninstalled. Problem now solved... thanks to all your help
Click to expand...
Click to collapse
ooooppps forget my other post then....
---

[TIP/TRICK] Double tap home to launch... anything!

This is a trick I came across (originally seen here, I think). Of course there are apps that can do this for you (see here, for example), but I like to do things without extra apps, if possible. I will use the stock Task Manager as an example (since that is why I looked into this in the first place)..
What you will need is:
-root
-SQLite Editor (or equal)
-Root Explorer (or equal) <-- may or may not be necessary depending on how you find your app names and processes.
-your desired app's full name and process
-resourcefulness
First, check your "Double tap home launch" settings in Settings>Applications to make sure the app you want to launch is not already listed.
Then, locate and note the full app name and process of your choice (it will need to be in this form: <full app name>/<full app process>). For example, this is what one would need to launch the stock Task Manager (which is all anyone should need as far as a task-killer, if you ask me):
com.motorola.PerformanceManager/com.motorola.PerformanceManager.PMAdvancedViewTab
I've looked everywhere for finding the right process name, but where I ended up finding it was in the AndroidManifest.xml in the apk (this is where Root Explorer would be necessary). Your apks are located in the /system/app folder for system apps, and /data/app for user apps (View apk, then view the AndroidManifest.xml file).
The full app name should be basically the first entry listed as <manifest package="app_name_here" versionCode=blah,blah...>. The process name is a bit trickier, but should be found a little further down in the manifest under <activity configChanges="###" label="resource_blah,blah,blah" name=".app_process_name"... The process name will start with a ".", and you need to tack that on the end of the app name, as shown above for Task Manager.
Once you have the info you need, open SQLite and open Settings Storage (the com.motorola.android.providers.settings one, with a hammer & wrench icon). Open the settings.db, then settings (should be very familiar if you've tried the tether hack), and find the line for "double_tap". Edit the value as necessary using app_name/app_process format (there should be no spaces in the value that you enter), save, close, then double-tap home to test it.
Here are a couple apps/processes that I find useful:
Task Manager
com.motorola.PerformanceManager/com.motorola.PerformanceManager.PMAdvancedViewTab
Root Explorer
com.speedsoftware.rootexplorer/com.speedsoftware.rootexplorer.RootExplorer
I started making a list on my sdcard, but it proved to be too much hassle finding the proper processes - if anyone knows of an easier way to locate these, PLEASE post! Also, if people are interested in this, please post the apps/processes that you find so we could compile a reference list.
(Holy crap - I did not realize how long this post is becoming...)
its another way to show how friendly the original coder/(mana)gers/corp. is
Sent from my ME865 using XDA

How to save your Google Drive files to SD

[Originally posted in a Q&A forum.]
I see this a lot when I'm talking to folks about Google Drive, and Google hasn't been very forthcoming about it's plans to allow exporting in the phone app. I don't know if they just forgot to implement such a feature (which would be an egregious error on their part), or if they're just worried about copyright infringement and such. Google Drive has the potential to be much cheaper, easier to use, more integrated, and more flexible than any of the competition.
METHOD 1
The easiest, safest, and most reliable way: Use Cloud2SD. It can be found at https://play.google.com/store/apps/details?id=com.hexxus.cloudtosd . This app used to be known as "Google Drive Download", however it was removed by Google for copyright reasons. Fair enough.
Once you've installed the app, go into Google Drive, long-press the file you want to save, click "Send", then hit "Download". That's it. Files are saved to your sdcard/Downloads directory. Pictures and such automatically appear in your gallery.
METHOD 2
If you're unwilling to spend 99 cents, then you can ALSO get access to your files the following way:
1.) Go into your Google Drive app, go into the Settings menu, and uncheck "enable encryption"
^ If you do not uncheck this, you will be able to navigate to the files in step 3 but you will be unable to view them unfortunately
2.) Click the small detail button (it looks like a triangle inside of a circle) on the right hand side of the file you want to "save". Check the mark that says "available offline"
^ If you do not do this, then the files will not appear in the folders @ step 3.
3.) Navigate to /mnt/sdcard/Android/Data/com.google.android.apps.docs/files/pinned_docs_Files_do_not_edit/"random numbers here"/etc
^ There will usually be multiple folders with random gibberish for names, and Android will continue to make them. This is a big hassle because it was never meant to be convenient. It's essentially a cache so you can view your files IN Google Drive even while offline.
NOTE: Pictures do NOT usually automatically appear in your gallery when "saved" using method 2. You have to keep telling gallery where to look. Each time a new gibberish folder is generated, you have to tell gallery to look there as well.
And that's it. Enjoy using your super cheap cloud storage plan from Google
ES File Explorer can also let you download your files. Google Drive can be so dumb...
https://play.google.com/store/apps/details?id=com.estrongs.android.pop
Just choose NET from the dropdown and add your account

HOw to Get the KitKat launcher

So how do you get it? The first step is to head over to this thread on the XDA Developers Forum. The top post includes a set of instructions and a download link for a zip archive containing three APK files that need to be installed in a particular order.
My Android 4.1 Galaxy Note II, with a KitKat launcher face-lift.
Now, advanced users who are already comfortable opening zip archives on their phone and managing files can do all of this downloading and installing directly on their Android phone. But in general, I recommend downloading the zip archive to your computer first, decompressing it, and placing the files somewhere you can access easily. To get them on your phone, email the each file individually (to limit the possibility of file size limitations) to an email account you can access from the phone. Alternately, you can send to Dropbox or Google Drive and then download them back down to your phone.
But before you proceed with installing them, make sure your phone is setup to work with files from sources other than Google. To do this, dive into your phone settings, select Security, and then with any luck you should see an option to accept files from "unknown sources." Make sure the box is checked and then back out to your home screen.
You'll also need to make sure you're comfortable with the worst case scenario: a factory reset. Members of the XDA Forum have reported mostly successful results using devices running Android 4.2 or later. Anything earlier is iffy. My Galaxy Note II running Android 4.1 was a rare exception, but even then, features such as Google Now voice commands did not work properly. This is a "use at your own risk" procedure, so make sure your photos, videos, data and settings are backed up before attempting this.
After installing the last of the APK files, you'll be walked through the introduction to the new KitKat launcher.
Once the files are accessible from your phone, via email or whatever method you chose, select the PreBuiltGMScore APK file first. You may be given a choice of how to install the APK. I went with the Package Installer, but other options may be just as viable. It may also warn you that you are replacing an existing file -- that's fine. Once installed, simply hit Done and move on to the next file, which in this case is the Velvet APK. Rinse and repeat, and finally move on to the GoogleHome APK file. At the end of installing that one, however, you'll want to hit Open instead of Done. Doing so will usher you into clean, slick world of the KitKat launcher.
As your first order of business, I suggest a tap and hold on the home screen, which will bring up options for changing the wallpaper, installing home screen widgets, and configuring your Google Now experience. If nothing else, choosing from the new wallpapers will help complete the KitKat transformation.

Android folder ico file

Okay, so basically, when you start backing up cwm boot files, custom ROMs, and cwm backups on the pc (or SD card, this works on a cwm bootable sd too), I've always found it convenient to group all these folders and files into a library. But, when you create a library, there is a default picture that you can't change. Unfortunately, I have no idea how to fix that. What I do have, however, is an icon file for the <C:\Users\[Your Username]\My Android> folder, which you should probably create and add to the library then drop all your android-related files into there (if you choose to go the library route, though I would suggest this as all that stuff everywhere can get to be quite a mess).
The file is a batch png to ico converted *.ico file, and includes the following sizes: 8x8, 16x16, 32x32, 48x48, 64x64, 128x128, and 256x256, the 8x8 and 16x16 look *really* crappy and are almost too tiny to be visible, but that should be expected, and the 256x256 look blurry, though still decent. As with all batch icon files, the size should adjust automatically according to your icon size setting is.
Instructions:
1.) Download the *.ico file, and move it from [your download location] to <C:\Windows\System32>, so you never have to see or bother with it
again once you're done.
2.) Navigate to <C:\Users\[Your Username]\My Android>. If it doesn't exist, create it then add it to the "Android" library.
3.) Right Click
4.) Select "Properties"
5.) Click on "Customize" tab
6.) Under "Folder icons", select "Change Icon..."
7.) Click "Browse...", and navigate to the *.ico file you just downloaded in the <C:\Windows\System32> directory. It should be one of the only
ones there.
8.) Once the icon file is selected, click "OK"
9.) The selection window should close automatically. Click "Apply" on the Properties window, then close it.
10.) Add The folder to your currently empty library.
11.) If anyone figures out or knows how to change a library icon, please include that in a comment and I will copy and paste it into this post
(this forum has an edit feature, right?) and credit your username at the bottom.
*Please do not remove this post because it's nooby or pointless cosmetics not related directly to android development, I already know that. If it's in the wrong thread, which I'm not entirely sure of since this is my first time posting here, please move it. Since a mod is usually the only usergroup that can delete threads, I'm assuming that if you're reading and considering deleting this thread then you also have the ability to move it.*

Categories

Resources