Just started with development in Java ADT. I created a textfield and a button in Activity_Main.xml. Then When I run the MainActivity.java the emulator starts but it's always a black background + some buttons in the right frame. I should see a textfield and a button instead of a black background.
Not sure what I'm doing wrong?
I've checked some guides of this problem but without result. I'm considering installing Eclipse instead. One theory is that I'm using blanc space in my path to SDK. I know this can cause issues with the Emulator.
Thanks!
If it's too slow for you, you can try speeding it up by using add-on from Intel. Follow this link for instruction http://software.intel.com/en-us/articles/speeding-up-the-android-emulator-on-intel-architecture. Note: Can only be used with Intel architecture.
Related
Why my text inside the android design viewer appears blurry. I tried changing the resolution DPI setting as well. But it didn't work for me.
Please look at my second picture, to let you know which one is I am talking about.
Try changing the scaling to 100% instead to 125%. Normally in Windows 10 default scale in 125% recommended. But using 100% will fix this.
To Find Scaling Setting:
Right Click on the desktop
Navigate to Display Setting
Dont Forget to go advanced scaling setting
And
Turn on the Fixed Scaling for the apps
Just incase sometimes
Before:
After:
How about changing device settings?
It just change the resolution of example device and it would make more clear sight from design view. It doesn't change the layout codes.
It would help the development with clear visual, but you have to test various resolutions of devices if you needed to.
Go to 'Help' tab and click on 'Edit Custom Properties'. It might ask you to generate a file if it doesn't already exist. Once this properties file was made, I wrote 'hidpi=false' (no quotations) on a new line, saved it, and restarted Android Studio.
I would like to be able to execute previous breakpoint that I've just stepped over
I know Android Studio is based on Intellij Idea where it's possible link here.
Similar question asking the same but its related to Eclipse IDE link here
There is also one answer that say's it's impossible.
link here
I can see "Drop Frame" button. But it's disabled by default.
So is there any way to enable this button?
The answer you are referring to regarding Eclipse is still valid for Android Studio:
You cannot step back to previous breakpoint in Android Studio because DalvikVM and Android Runtime (ART) do not support it.
You can enable the "Drop Frame" button if you debug JUnit tests as they run on a standard virtual machine (although I'm guessing this is not what you are after).
It is probably the only reason why the button exists.
Google's User Guide ignores it completely.
I'm fairly new to Android Studio, so I'm not entirely sure if this is what you are looking for, but have you tried playing around with the Frames window?
It allows you to backtrack the app's process, even reaching old breakpoints.
You cannot step backwards to a previous breakpoint that you have already chosen to continue past. You would have to create a saved state of your program at every break point to be able to do this, which would consume more memory than is worth designing the debugger with. You could although emulate this sort of functionality by forking your program everywhere you want to put a breakpoint.
-edit: This would be more feasible in eclipse than in android studio, as you would have to start another virtual device for android. say goodbye to your memory :p
Android 10 (Q) has supported this feature. It works well on my Pixel 2.
Please see below image
Using red down arrow to step in and blue up arrow using to step out.
:
Use ALT + F9 for next break point.
For me (macOs Sierra) it's Previous step cmd + alt + R
I have an Windows Phone 8 app made with PhoneGap framework to show a map of OpenLayers. Sometimes, although very rarely, I surf between views (jQuery Mobile is used) and suddenly when I am back on Map it shows an extra tile on the center of map. Tile is as wide as the map and starts some 20% before top and ends some 20% from bottom. It does disappear only when restarting the app.
I am trying to show up the phenomenon on dev mode of Google on browser, but so far no success.
No error is shown on console of wp8 sdk, I was testing it on device connected to visual studio.
What may cause that thing and could it be fixed somehow?
edit1: It may be possible I trigger a swipe event while moving the screen fast and that may make the Openlayers in error state.
First try:
I added this line:
-ms-scroll-chaining: chained;
to the div containing the map.
I used jQuery / HTML5 / gwt app for WP8 (Lumia 920) device: vertical css scroll fix to attach another things to same place, so I added it there.
UPDATE
This was not the fix, problem stayed. See below the correct answer:
The real answer:
https://github.com/openlayers/openlayers/issues/929 tells this is known issue of openlayers, that is already fixed in the latest version.
So, please update version of OpenLayers!
I recently tried to open a JPanel form that I created with NetBeans GUI Builder and NetBeans almost freezes up on me. The design form is an all-gray background, not the usual gray area where I can place components surrounded by a white background. If I click on the Source button and then switch back to Design view, all of the tabs in the editor pane disappear.
Fortunately I am using Git for version control. The last commit of this file was over a week ago. I might have to revert to an earlier version to see where this problem was introduced. In the mean time, does anyone have any idea what could cause this behavior? Is it possible that my .form file is corrupted? The application compiles and runs just fine.
It sounds like Netbeans can't load the form due to some internal error. This can sometimes be fixed by doing a clean & build to clear out any old cached data.
If that doesn't work, you can check out the "message.log" for the error...and yes, I wish it would display it on the screen
Off memory it use to be in "{user.profile}/.Netbeans/{version}/var/log" (I think). It got moved on Windows under 7.2 to "{user.profile}\AppData\Roaming\NetBeans\7.2\var\log"
I am a beginner in Android programming. I was going through the official tutorial on Android developer site. When I copied the codes for the Grid View tutorial to Eclipse, many red wave underlines appeared which are not allowing me to compile. Every time I click the run button, it says "Your project contains error(s), please fix them before running your application."
I am using a WIN7 and followed every single step that is necessary for setting up the envrionment. I had no problem at with previous tutorials such as Hello Android, Linear Layout, Relative Layout, and Table View.
Does anyone have the same experience and have a solution for this? I have tried to clean and re-build the project, which doesn't help.
It would probably be helpful to provide a link to the gridview tutorial you speak of. I'll assume you meant this one: http://developer.android.com/resources/tutorials/views/hello-gridview.html
First things first: Did you download the sample art? Did you put it in res/drawable?
What errors were you getting?
Are you certain you are working in an Android project and not a standard Java project?