in Android Studio I see my classes on the left (Android-Tab) and the editor window with the open class file (SomeClass.java) on the right.
If I double click a class file in the Android-Tab, it gets opened and the focus switches to the class file. I can start writing immediately.
My problem is: If I select a class file in the Android-Tab and hit 'Enter', the class file opens but the focus is still in the Android-Tab and I can not start writing. I have to use the mouse/trackpad to click into the class file to switch the focus.
Is it possible to change the behaviour of Android Studio in that case?
I use Android Studio 2.3 beta 2 on OSX.
Thanks in advance
You can use Command(⌘)+Down Arrow(↓) to (Open | Switch)&Focus the class instead of pressing Enter which only (Opens | Switch) the class.
On Keymap you can find Jump to Source:
Related
I have just installed Android Studio on my pc, but I am not able to find any activity or layout file on a creation of a new project.
Here is the screen shot
From the screen-shot it is clear that you haven't created any project yet. Go to file - Click on : New - Click on : New Project.
Now create a project which will get you all the necessary elements like activities, layouts, gradle, etc.
Happy coding.
I've looked at How to auto import the necessary classes in Android Studio with shortcut? but it doesn't help.
Ctrl+Alt+O does nothing.
When I press alt+enter I get the following:
I do not want this, I wish for it to appear as a normal import at the top of the file.
What are these shortcuts called in Android Studio? This program makes it complicated to edit such simple shortcuts.
I also have auto-imports, but it isn't working:
Finally after hours of trail and error the following settings is what fixed it:
Pressing Ctrl + Space on Mac will open a dialog to choose which library to import.
check this link for detail ans
https://stackoverflow.com/a/37362700/3288890
or
goto file -> setting select keymap and search for auto import and add keyboard short cut
i am facing problem in android studio. In eclipse when i want to use class like Intent, then i write intent starting with lower case it give me suggestion box indicating class name Intent, but in android studio if i type intent starting with lower case it does not Provide Suggestion class name Intent.Thanks in advance.
In my case Ctrl + Space was overloaded by mac shortcuts. And even in the case, I disabled them, they conflict with Android Studio.
So, I gave them another keys and it solved the problem.
Go to the System Preferences -> Keyboard -> Shortcuts -> Input Sources and use new keys for them.
The problem is that Android Studio has different key binding than Eclipse, but you can set the key binding to be the same as in eclipse in android studio settings. Also by default ctrl + space is case sensitive in Android studio, you need to turn that off too.
Move to File -> Settings -> Keymap and change keymaps settings to eclipse so that you can use the short cut keys like in eclipse.
You can set 'Case sensitive completion' to 'None' in IDE Settings > Editor > Code Completion.
That should do it :)
File --> Settings --> Editor --> General --> Code Completion --> Case sensitive completion --> None
when i create a Android Application Projet and follow the steps, i check the box create activity as blank activity and when i finished i can't found the class in src, is this normal ?
Try This:
go to Help>(select)>Install New Software..>And paste this Url: https://dl-ssl.google.com/android/eclipse/And update the Developer Tools. It works for me
I'm using the new InAppBrowser by Cordova 2.3.0.
There are some issues related to it.
First : When I click on the address bar to change the url, the keyboard isn't displayed [I run it on Android].
It only works when I click for a long time inside the textbox & choose select all , copy & paste ... then the keyboard is displayed [ & sometimes even when I do this it's not displayed].
Second: When I open a pdf file from the browser, it doesn't open ... Why ?
Thanks
The PDF issue can be fixed by setting the bridge mode to iframe
the cordova issue can be found here