Android :: View A TabWidget In Layout Editor It Crashes - Buggy

Jun 6, 2010

It seems that Android is very buggy compared not only to the iPhone, but to pretty much any other software. It's not just minor bugs either - pretty much every developer will come across many serious bugs. Some examples:

- When you run the "sdk setup.exe", the very first thing that happens is that it informs you that it can't connect using https, so you have to change the options to use 'http' instead. This appears to be a bug in the .exe rather than any kind of user issue because the https url works fine in the browser and this error seems to affect everyone. Sure, it's trivial to work around (just do a google search and you figure it out in 5 seconds), but the user shouldn't have to do that. It makes it look unprofessional.

- When you view a TabWidget in the layout editor it crashes.

- Every time you run an app in the emulator, it starts off with the screen locked so you need to press the Menu key.

- Various socket bugs (or perhaps all the same bug) related to IOException not happening. Even something as simple as just trying to connect to a remote host that is not listening will cause it to hang instead of immediately returning an error.

All of these bugs have been logged for months (some by me, some by other people) with no indication of any fix.

At the moment I'm just using the emulator, but I'm wondering if the phones themselves are this buggy or if all the bugs are just in the development environment and emulator.

Android ::  view a TabWidget in layout editor it crashes - buggy

Android :: Eclipse Crashes When Invoke Layout Editor

Feb 27, 2010

I'm new to Android & Eclipse. I've downloaded Eclipse and the Android ADT and created an ultra-simple "Hello World" app (has only auto-generated .java and .xml files). Eclipse CRASHES (closes after a very brief pause) when I do the following: In Package Explorer, select AppName/res/layout/main.xml Press, or double-click, or 'Open With' then 'Android Layout Editor' (The app runs OK in the Android emulator) My configuration is:

Android Development Tools 0.9.5.v200911191123-20404
Eclipse IDE for Java Developers
Windows XP

Can someone tell me what I'm doing wrong or what's wrong with my configuration? Any suggestions on what to check? For any non-trivial app development I need to be able to use the Layout Editor. More ... I can select main.xml and Right-Click and 'Open With' any of: XML Editor, XML Schema Editor, Text Editor -- with no problem. The problem is limited to Android Layout Editor.

View 3 Replies View Related

Android : Color TabWidget View?

Jun 30, 2010

Is there a way that I can color the TabWidget View? Both the idle and selected colors? That way my app can look a little more personalized, ya know.

View 1 Replies View Related

Android :: Mac Layout Editor

Jun 18, 2009

I have a mac and I run JDK 1.6 with my android dev setup and eclipse 3.4. It seems that the layout editor display is totally fragged.

View 2 Replies View Related

Android :: Explanation Of ADT Layout Editor UI?

Apr 13, 2009

Is there an explanation of the ADT layout editor UI some place? I can't find anything on the Android web site about it. When I look at a layout in the design view, there are a number of fields at the top with labels like MCC, MNC, Lang, etc. I've noticed that I can change the contents of these fields, such as orientation, and it has an effect on the view. But a yellow warning triangle appears next to the field I've changed and the next time I open this view I see the unmodified field. For example, if I change to landscape orientation the view goes back to default next time. Is there documentation some place on what these fields mean and how they are supposed to be used?

View 4 Replies View Related

Android :: NotFoundException In Layout Editor?

Feb 27, 2010

I'm trying to extend a RelativeLayout object and include an embedded SurfaceView object that uses a png file in my /res/drawable folder as its background but I keep getting an error in the XML Layout editor. See the following code:

public class StopMotionRelativeLayout extends RelativeLayout
private Context myContext;
private SurfaceView surfaceView1;

private BitmapFactory.Options myBitmapOptions;
private final android.view.ViewGroup.LayoutParams params =
new LayoutParams(LayoutParams.FILL_PARENT, android.view.ViewGroup.LayoutParams.FILL_PARENT);

public StopMotionRelativeLayout(Context context, AttributeSet attrs) {
super(context, attrs);
myContext = context;

View 1 Replies View Related

Android :: Layout Editor Causes Eclipse To Crash

Mar 3, 2010

Looking at the search results on the internet and on this group,I find several mentions of the problem. Eclipse crashes while opening layout in the editor.

View 2 Replies View Related

Android :: Eclipse Layout Editor Not Showing

Oct 29, 2009

Relative noob working with Eclipse and Android.I just switched from Windows XP to Mac (Snow Leopard) and I'm having a little trouble getting Eclipse up and running the way I like it.I installed the Android Mac SDK, but my layout editor isn't showing me a preview of the activity layout, it's just showing me the XML tree, even when I'm on the design tab.Is there something I need to do to enable the layout editor in eclipse?

View 3 Replies View Related

Android :: Eclipse Layout Editor And Java 6

Feb 27, 2009

System config is MacOSX with default JDK 1.5.0_16. Eclipse 3.4 The problem is I have a project in workspace that has been developed under JDK 1.6.I don't really want to switch back to 1.5 ( i' would have to clean up a LOT of @Override ) but if i work with this project, after couple of rebuilds - eclipse layout editor not able to display preview. Work around i found so far open android project that is in compliance with Java 1.5. Close everything else and rebuild workspace. But it's kind of annoying to do it every time.

View 2 Replies View Related

Android :: AutoCompleteTextView In Eclipse Layout Editor?

May 28, 2009

I'm porting an app of mine to work better with API 1.5, and I'm having problems with the layout files where I'm using an AutoCompleteTextView (and, naturally, MultiAutoCompleteTextView). Whenever I have them present in a layout, the graphical representation of the layout disappears, and "NullPointerException: null" replaces it. Is there any way I can view a widget such as this in the Eclipse editor? It definitely worked in the 1.1 SDK, otherwise I wouldn't have used them.

View 2 Replies View Related

Android :: Editor Layout - Initialize Class Sun.awt.X11.XToolkit

Feb 21, 2010

I m developing an android app, i ve had a problem with the layout editor. I m using eclipse 3.5.1 for RCP/plugin developers, the android developers kit version 0.9.5 and jdk 1.6 in ubuntu 8.04 hardy heron. I ve been working good until one day i had to modificate my UI. when i tried to see my main.xml layout i found the following error: Null Pointer Exception then NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit. I was looking for a solution but i didn't find so i reintalled all. Eclipse, ADT, SDK and Java. First it (layout) looked to work again but in two days it broke again. I m so frustrated cause i dont know what i do to get this error. First it works then don t .why?

View 3 Replies View Related

Android :: ClassCastException From Layout Editor In Eclipse's ADT Plugin

Aug 8, 2010

This is probably related to this question. I want to know if anyone else gets the same error as me and if there is a way to get around this. I did the following: Followed the instructions from this page. From the top, go to File -> Create a new project -> Android Project -> Create project from existing sample. Checked Android 2.2. From the drop-down menu picked SkeletonApp. Clicked finish. From the package explorer, went to SkeletonActivity -> res -> layout -> skeleton_activity.xml. In the tabs at the bottom of the editor area (editor area is the center of the screen) clicked on Layout. Then I got the error "ClassCastException: android.widget.EditText cannot be cast to andoid.text.ViewGroup". The full text of the error message is given below.

java.lang.ClassCastException: android.widget.EditText cannot be cast to android.view.ViewGroup
at android.view.LayoutInflater.rInflate(
at android.view.LayoutInflater.rInflate(
at android.view.LayoutInflater.inflate(
at android.view.LayoutInflater.inflate(

View 1 Replies View Related

Android :: Scroll The Layout Editor In ADT Eclipse Plug In

May 11, 2010

Has anyone figured out how to scroll the contents of the Layout Editor when those contents overflow one "screen"? I'm talking about at design-time while using the ADT Layout Editor, not scrolling at run-time on a physical device (that works fine).

View 2 Replies View Related

Android :: Call ADT Layout Editor In Java Source File?

Mar 9, 2009

1. Can I call ADT Layout Editor in my java source file, not by XML file "open with" menu ?

2. When I click "add" button in the outline view of ADT Layout Editor , it will show such a list of UI components as "AbsoluteLayout AnalogClock AutoCompleteTextView Button ....." My question is where it gets this list? Can I config this path to get my customized UI components?

View 8 Replies View Related

Android :: Java.lang.NoSuchMethodError In Eclipse Layout Editor

Mar 30, 2009

In the layout editor in Eclipse, I have created a custom view. For some reason, there are a few methods which cause NoSuchMethodError exceptions in the code. Here is the code in the initializer of the custom view:.............

View 2 Replies View Related

Android :: ADT Plug In Layout Editor - Additional Device Configurations?

Sep 11, 2010

You know that layout editor in the Android ADT plugin that lets you design the layout for ADP1, ADP2 and Nexus One, has anyone created other device configurations? It requires device information such as the x-dpi and y-dpi, which can be difficult to find out. I'm just wondering if anybody has added more device configurations they're willing to share? Perhaps together we could compile a huge devices.xml containing many of the devices out there. I'm fully aware the layout editor has many faults and cannot be relied upon but it is sometimes useful to rapidly preview how the layout might look on a wide variety of devices without switching between emulators.

View 4 Replies View Related

Difference Between Screen Layout In Eclipse In XML Editor And In Emulator

Dec 19, 2012

Why there is difference between the screen layout in eclipse in xml editor and in the emulator?

View 1 Replies View Related

Android :: Open Layout.xml File - Eclipse Crashes

Dec 11, 2009

Whenever i try to open the layout.xml file in eclipse..eclipse crashes and exits without any messages.. However if i try to open the xml file without using the layout editor of ADT plugin everything is will open as an editable file..the problem started only after i updated the latest version of ADT...before that everything was working fione.

View 5 Replies View Related

Android :: Error While Opening Eclipse Android Layout Editor

May 5, 2010

Since yesterday everytime I open my layout Editor in Eclipse for the Android UI the last part goes on and on as expected if an Stackoverflow Exception occurs.Anybody else experiencing this and found a solution?I'm working with the latests android sdk on Mac OS X with Eclipse 3.5.2.I just installed the Carbon Version of eclipse and I get this error even in this fresh copy of eclipse.Very strange that I'm the only one experiencing this error. Maybe it is not an Eclipse problem but an problem of my project setup.

View 2 Replies View Related

Android :: How To Layout Image Buttons In A Grid View From Xml Layout File

Jan 23, 2009

Is it possible to build a GridView object in XML with 3 columns and 4 rows of Image buttons? It doesn't seem to have similar containment relationship like LinearLayout or RelativeLayout viewgroups.

I want to do this entirely in an xml layout file. When I put ImageButton xml tags inside a GridView xml body, The layout panel in eclipse is throwing an exception: UnsupportedOperationException:addView(View, LayoutParams) is not supported in AdapterView.

View 2 Replies View Related

Android :: Better Android XML Layout Editor Than One In Eclipse

Jun 25, 2010

I'm searching for a better Android XML layout editor than the one in eclipse. Preferable placing items by drag and drop to the correct X/Y position. With the current editor I have to try out figures to place it at the exact position is there an easier way?

View 2 Replies View Related

Android :: Custom View Extending View-Class / Still Based On XML-Layout

Aug 17, 2010

I want to build my own custom view which should look like the Crysis-GUI.At first I designed a XML-based Layout and made it visible via the setContentView(int resid)-Method. Worked pretty well.But now I wan't to go a step further and draw in my Layout. So I created a new Class, let it extend View and overrode the onDraw()-Method. So far so good.But how can I still use my XML-Layout? I can't do setContentView anymore, so how could the same effect be achieved?

View 1 Replies View Related

Android :: Adding View To Bottom Of Layout Inside Scroll View

Mar 10, 2010

So my layout looks basically like this:
<ImageView android:layout_alignParentBottom="true"/>
I have the ScrollView so all of the layout always is visible no matter the height of the screen. The problem is that on a very high screen, I still want my imageview to be at the bottom. However, a child of a ScrollView dont seem to have a defined bottom. The View is placed at the top of the layout. How can I solve this problem in a neat way?

View 4 Replies View Related

Android :: Add View To XML Layout Programmatically / Make It Z Order Below Existing View

Oct 8, 2010

I have an XML layout with some custom tabs, a heading, and a ProgressBar(main.xml). I wish to add another XML layout(home.xml) to the main.xml layout, as i wish to keep main.xml re-usable for other activity's layouts and simply add things to it as necessary.The problem: after inflating R.layout.home into rootLayout, it seems as though the ProgressBar contained in rootLayout is hidden underneath the content of home.xml.Is there a way to tell certain views(via XML) to float above other views when the layout is constructed in this way?if not, am i forced to use methods such as progressBar.bringToFront() to raise targeted views to the top?what alternatives do i have in z-ordering views when some layouts are constructed using inflation?

View 2 Replies View Related

Android :: Add Text View Before List View In Linear Layout?

Mar 11, 2010

I've tried to add a TextView before a ListView in a LinearLayout. The result is that the ListView wont show at all. The same thing happens if I put the TextView after the ListView, but then I will only see the ListView. Is there a way to get a text view above the ListView without to much of a hassle?

View 10 Replies View Related

Android :: View Hierarchies In Layouts Are Now Likely To Cause Crashes

Apr 24, 2009

Having read l I noted this little section;

"Due to changes in the View rendering infrastructure, unreasonably deep (more than 10 or so) or broad (more than 30 total) View hierarchies in layouts are now likely to cause crashes. This was always a risk for excessively complex layouts, but you can think of Android 1.5 as being better than 1.1 at exposing this problem..."

Will the SDK warn us when we're reaching the limit for crashes?

And more to the point why does it crash and not return some form of meaningful error to the app? With an error code or thrown exception developers could create various levels of layout complexity and step down the layout complexity level until they find one the device will support.

No matter what the post says I see this as a regression in functionality and I definitely do not see it as "Android 1.5 as being better than 1.1" in any way.

Written an Android App? - List it at[url]

Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK.

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.

View 20 Replies View Related

Android :: Google Maps View Crashes On Tap / Click?

Jul 23, 2010

I'm currently writing an app displaying a MapView showing a google map. I used the "hello map view" tutorial from and this works so far: the map is displayed, centered and zoomed correctly, even the OverlayItems I added are displayed correctly. But when I click on one of those overlay items I added, the application crashes with a null pointer exception:

07-23 16:24:48.167: ERROR/AndroidRuntime(2530): java.lang.NullPointerException
07-23 16:24:48.167: ERROR/AndroidRuntime(2530): at$AlertParams.<init>(
07-23 16:24:48.167: ERROR/AndroidRuntime(2530): at$Builder.<init>(

View 2 Replies View Related

Android : Way To View A Different Flipper In Layout View Of An Xml?

Nov 21, 2010

I am using a flipper in my main xml file to view multiple layouts in my app. For instance, if something = 1, the user is shown one version of the flipper, where if something = 2 the user sees a different version. Is there a way I can view the layout of the xml file for the other flippers I have rather than the main one? Ie, is there a way to switch views of each state of the flipper in eclipse?

View 1 Replies View Related

Android :: Activity Crashes When Remote Service Crashes

Jul 16, 2010

I'm trying to understand remote services at the moment and everything works fine, i can start the service and know how to communicate with it through the AIDL-interface. My problem is that the service seems to still run in the same process like the activity it was started from, because the activity crashes too, if there is an error thrown in the Service.

I set the service process to remote ( android:process=":remote" ) so what am i doing wrong? Or what do i have to do to unbind the service-process completely from the activity-process?

View 1 Replies View Related

Android :: How To Re-layout View

Apr 20, 2009

In my code, I only changed the layout params of an image after it is shown. For example, change the height of the layout. I called the invalidate() function after the change, but it does not work. Although the height of the layoutparams changed, but the view does not change. Why?

View 2 Replies View Related

Copyrights 2005-15, All rights reserved