draw9patch does not open image files anymore - android

I can not open any PNG files anymore with draw9patch. When i use the menu (File - Open 9-patch), just nothing happens. No file browser opens. When i drag a PNG into the app UI, it freezes right away and i have to kill the process. I'm using the Android SDK Tools 22.0.5, which is the latest version, on a Mac.
I've tried it with android-sdk/tools/draw9patch and java -jar android-sdk/tools/lib/draw9patch.jar. Both with the same result and no log output or anything.
Any ideas what's going wrong here?
Edit:
Just downloaded the whole ADT bundle again. Still no change.

Of course, one more time: just after i ask on SO, i figure it out.
I tried to open draw9patch directly. Seems it does not like that. When i open it from within eclipse (right click on the PNG - open with - other - internal editors - Android 9-patch editor), then it works just fine.

Related

Android Studio - Modding Firefox search suggestions error - "Files under the "build" folder are generated and should not be edited"

I'm modifying the Firefox Android App. I'm trying to change the search suggestions feature from Google to another search engine. To do this I have to change 2 files
The first file I change is:
fenix/app/build/intermediates/merged_assets/debug/out/search/list.json
The second file that I add is:
app/build/intermediates/merged_assets/debug/out/searchplugins/test.xml
After I make these changes and run the app in the emulator to test it out, the changes that I make are reversed/undone/overwritten, and the notice pops up saying "Files under the "build" folder are generated and should not be edited".
What should I do to make my changes save here? Why are the files being reverted back to before I changed them?
Thanks for your help

The Android SDK could not be loaded Processing

When I try to download the Android SDK when Processing doesn't find it, at 30%, it says "The Android SDK could not be loaded, Android mode will be turned off"
I'm using Windows 10 home edition, Processing 3.3.6, Processing-Android 4
https://github.com/processing/processing-android/issues/421
Install Android Studio, open it
click configure, click SDK Manager, checkmark the box labeled Android 8.0 (Oreo), apply, install, copy the file path at the top, apply.
Open processing, in android mode, select Locate SDK Manually, paste.
It is quite simple! Download Android Studio from https://developer.android.com/studio, install it, click the "SDK Manager" button on the top right corner, as you can see in this image. Then download the version of the SDK that you want...make sure to download the correct version - the one mentioned by the error dialog from the PDE (Processing Development Environment/ Processing IDE/program/app). After it has downloaded, select the checkbox next to it, and copy the path for it, as shown here. Launch the PDE in Android mode, and when it asks you for the path, Select Locate SDK Path manually and paste the path there. It should work now.
On Windows, at least, You may want to un-hide the AppData folder, I had to, though I'm sure it's not a requirement, if it has worked out for you so far, skip this step!
To unhide the folder, in the Windows Explorer, go to C:\Users\<Username>\, select the AppData folder, and unhide it..
(Enable "Hidden items" under "View" first! look at this image for reference)
..by going to View > Hide selected items, as shown in this image and selecting "Apply changes to this folder only". THEN the PDE may be able to see it. YOU MAY WANT TO HIDE THE FOLDER AFTER DOING THIS! It is a quite important system folder, though I'm sure many people access a lot, it still needs security; ...it's better for you, I guess.

Moving the default folders(.AndroidStudio2.X and .gradle ) to D disk:

I want to move Installed AndroidStudio from C: disk to another.
I've successfully(by standard way) .android folder, sdk folder(with it's environment variable) and installation path. However, I cant handle these ones:
c:\users\user\.AndroidStudio2.2
c:\users\user\.gradle
when I move these folders to d:\myfolder and changing every occurrence of c:\users\user\.AndroidStudio2.2 to d:\myfolder\.AndroidStudio2.2 (with TextCrawler), and changing .gradle location in AndroidStudio, it doesnt help.
In C:\user\user there is still created (upon running AStudio) .AndroidStudio2.2 folder. And running Emulator causes errors, because it cant find anything options in C:\users......
plus, I have uncommented and set the path values (in installation/bin/idea.properties) to d:\myfolder, but still no help.
Having dome something similar in the past, I find that moving drives on most software applications is still a big pain. However, I found that creating symlinks was helpful, as the software will "think" it's accessing the files at a location, but in reality they are stored in another.
I successfully did this in the past with Visual Studio and the concept is pretty much the same with Android Studio. You need to create a symlink as follows:
mklink /J "d:\myfolder\.AndroidStudio2.2" "c:\users\user\.AndroidStudio2.2"
Now when Android studio read or write the contents in c:\users\user\.AndroidStudio2.2, it will be in reality going to your d drive, which provided that it's accessible by the c drive, should make it all work.
You should be able to do that with the other folders as well. The benefit of doing it this way is that you're not constrained to the path the file is stored, which means that if you change computers or decide to store everything on the c drive again, you can just remove the symlink.
Hope this helps you.

blank android studio "can't load settings from file workspace.xml"

When i open android studio it shows me blank screen like i don't have any projects with a yellow message at the top corner that says "can't load setting from file workspace.xml..."
After i tried to delete the workspace.xml file as suggested here and open android studio again the message didn't appear but it was still without any projects. Yesterday everything worked fine and i can still see my project data on the windows explorer. Can someone please tell me how to fix this issue.
go to your user folder
[SYSDRIVE]:\Users[your username] (ex. C:\Users\aman)
In this folder there should be a folder called .AndroidStudioBeta or .AndroidStudio (notice the period at the start - so on some OSes it would be hidden).
Delete this folder (or better yet, move it to a backup location - so you can return it if something goes wrong).
this will solve your problem.

DDMS has blank screen

when I last used the DDMS from Android Studio I tried open *.hprof file, but the whole screen changed to blank.
Now the screen is always blank. I reinstall Android Studio, Eclipse and of course SDK, but with no effect.
Can you someone tell me how to reapir it?
Thank you
I had this problem too, and I arrived at it the same way (trying to open a heap dump *.hprof file). Resetting the perspective does not work.
How I fixed it:
go into .android folder in your home directory
there should be a monitor-workspace folder; move it to a backup directory (or delete it)
restart DDMS
You should be able to reset the perspective with a right-click on the DDMS button.

Categories

Resources