Eclipse Indigo "Shift+Alt+A" shortcut - android

I'm using Eclipse Indigo for Android development. Eclipse provides many useful keyboard shortcuts like Shift+Alt+A (block selection mode) or Shift+Alt+A R (run android app). The problem is these shortcuts doesn't work for me.
I've read a lot of topics here claiming that it is usually a problem with other programs installed on the computer. I am using Mint Nadia, Mint Maya (Cinnamon and MATE) on three different computers and none of them use the Shift+Alt+A shortcut nor any other installed program.
It seems to me there is a conflict in Eclipse with these shortcuts. If you simply type the Shift+Alt+A, IDE recognizes the shortcut but you're prompted with a pop-up to choose the additional key (D, S or R). No matter which one you choose it does nothing.

This is normal after installing the Android addon. Android adds three shortcuts that all begin that way.
Unfortunately, the only real option is to change the shortcut(either the block selection one, or all three Android ones).
Details on changing it can be found here, if you're not sure how.

Related

Failed to open directory Xamarin Forms

I have recently created a HelloWorld project with Xamarin Forms to develop a mobile app. But, I don't know what happen but I cannot launch the app with Android Device Manager or even my own phone, not even the first time. This is the error:
I am using android version 10.0 to compile and for the device manager the version 10.0 also. At the manifest I also have version 10.0 for Android minimum version required and Android target version. I guess the version is not the problem, but I don't know what could be because, I haven't programmed anything yet. So I don't understand why the error is "The system cannot fint the specified file". I check the access route with File Explorer of Windows and there is the directory.
Unbelievable. My windows 10 user has an accent mark on the name: Adrián. But the problem was with the path of the project, because I change the name to: Adrian, but the path was still having the accent mark: C:\Users\Adrián. So that is very probably the problem. I know I could change the username from the path, but I think it is a bit difficult than to create a new user, besides, I don't want more problems with another programs installed. I created a new windows user, obviously, without any weird character and then I could work with Xamarin Forms. I think you learn a new thing every day.
Had the same issue when my project was called Städteam1. I created a new solution and project named Stadteam1 and it works right away. So I guess avoid using any letters that aren't part of standard English in any of the folder or filenames.

Xamarin Android deployment not using the latest code?

I'm creating an Android app in Visual Studio. When I create the aligned APK to side load on my device (from the Tools -> Android -> Publish Android App), it installs and runs, but doesn't seem to have the very latest changes. The series of events I've experienced is as follows:
Installed a version of the app on my device
Updated a color on the login page and set the application theme (among other things)
Re-installed the app
Saw the new theme but not the new color on the login page
Made a random text change on the login page as a test
Re-installed the app
Saw the color change but not the random text change?!
Any suggestions on what I might be doing wrong?
I have experienced similar issues, my go to for fixing this issue has been the following
Clean all projects.
Build all projects (especially the project containing the xcml files).
Delete (remove application) from the device.
If for some reason this doesn't solve the problem, typically a full restart of Xamarin Studio or Visual Studio does.
I have a similar weird problem where old code from only a single project doesn't get updated. All other projects do get updated/deployed. It only happens on a single emulator, only in Debug mode, and only for that one project.
Cleaning+rebuilding the entire solution did not work. However, telling VS to rebuild the individual project does.
Why doesn't rebuilding the solution rebuild the project? I have no freakin' clue, but I can consistently reproduce this issue and workaround.
In my case, I had a similar problem with connected device, and no one proposed solution like Clean\Rebuild\Restart\Reinstall\etc could help me.
At the same time on the AVD everything worked perfectly, latest code deployed ok.
I found that asked issue depended on selected settings in the [USB Developer] section on the connected device (mine was Xiaomi smartphone). Because some vendors provide us with too many security settings...
What I found, you have to turn on both USB Debugging & USB debugging (Security settings), and turn off MIUI Optimization (it's true for Xiaomi vendor, but you can check your device for similar options). Hope this helps.

How could you generate an APK from project B programmatically, using a button click from project A?

I have a project A that should use a wizard to create a project B. Project B is based on a template. Project A should send data to that template and generate an APK from this data and template programmatically.
I've read about the APK structure and what it includes, like classes, resources, and manifest files. My question is, what is the best way to achieve this template-based generation of an APK? What could I use for this?
This is the open source project you're looking for.
https://code.google.com/p/terminal-ide/
Terminal IDE is a command line java / android dev kit that runs on the device itself. Using a correctly configured vim, bash and busybox, in a custom terminal + custom keyboard environment. All these applications are put together so that they interact correctly. A full Terminal emulator + custom ANSI keyboard ensure good bash, vim and busybox emulation. All set up and ready to run in a NON-ROOT environment. Normal user permissions are enough to run all of this.
You can also download it from Google Play here. The application has 4.7 stars on the Play Store from 1,324 ratings. Here is one of the latest written 5 stars reviews this application received on Google Play. And it's not unique by any means (the emphasis in bold is mine).
A Google User - March 12, 2013 - Version 2.02
Wow!
I have over 30 years programming experience (mostly in C/C++ and Assembly) and have been looking to learn to program Android. I looked everywhere for a way to compile and run Java tutorials on my tablet, with no success, until I found Terminal IDE! Then I started playing around with its capabilities and let me say again, wow. DEVELOPER - I have only one suggestion, which others have brought up too: reduce the internal memory footprint. Maybe breakup the different languages into installable add-ons?
In a way, it's a lot like the Android Java IDE called AIDE, minus the GUI interface (but unlike AIDE, it's doesn't have low artificial file limits, and since it's open source it can actually be used to build your own project upon and extend).

Adding new menu item to right-click (all platforms)

I have seen a lot of software and browser plugins do this. After installing them, they add some menu items to the system right click. Eg. On my PC, SVN added the item "SVN Checkout" to my right-click menu throughout.
On Android, you see Whatsapp adds itself to the Share menu across the entire system, so for every image you want to share, the option for Whatsapp also shows up. Similar stuff is done by Apps like Pocket, which adds the menu item "Save to Pocket"; so when you click on any article, you see "Save to Pocket" in the menu.
Question: How is this done? Is there a cross platform, generic way, or does this have to be done differently for every platform?
I need to provide this functionality to my users across Windows/Linux/Mac and Android/iOS. Any guidance on this is appreciated!
Update: Can this be done using only Java? That way, one solution will work on all platforms with Java
Thanks
No, there is no cross-platform way to do this.
In Windows, you edit the registry.
In Android, you can implement this in as number of different ways using the Android SDK.
Every platform has it's own APIs.
You also have a bit of a flawed mental model when you compare Android and Windows (or and mobile OS with any desktop OS). The features you mention for Android are built into an app running in the operating, while the contextual (right click) menu in Windows and OSX is a feature of the operating system itself.

Show "All Instances" missing in eclipse debug view

few days ago, when I was debugging an Android project under eclipse I've found some great functionality: "All instances..." and "Instance count". I wanted to share my findings with rest of my colleagues, but none of them had this functionality in their eclipse install (we all use eclipse 3.7).
What's even more weird now I'm also missing this functionality.
As far as I can tell this functionality is build within eclipse from version 3.3 and available to projects using Java 1.6 and above as mentioned here and here (we're using 1.6).
See bottom of this link to see what functionality I'm talking about. It even has it's own shortcut in options (ctrl+shift+n) so I think there must be a way to use it again.
I was looking for it while debugging and while the debugger was in "stopped" state.
Anyone can help me put eclipse in right view/perspective/state to see this functionality again?
EDIT
Here is the documentation entry from eclipse help page: link
Thanks for any suggestions,
kajman
After some more digging I came to following conclusion:
DalvikVM does not support "instance retrieval".
On eclipse help page mentioned in EDIT section it written:
This command is only available if the Java virtual machine you are currently using supports instance retrieval.
Maybe there is an option to enable this option in DalvikVM, but I doubt it unfortunately.
Also when debugging on phone "Drop to frame" functionality is missing.

Categories

Resources