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
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
Oct 27, 2010
I had Eclipse running with the Android plug-in and I decided to add the Emacs plug-in. I downloaded and it worked. Then I decided to go back to the Eclipse key bindings and the Android plug-in disappeared. I could not update it, because Eclipse said it was installed, but it was not showing up in the menu.
I had to re download Eclipse, and reinstall the plug-in.
Why don't different plug-ins cooperate? I had the same issue when I tried to download the Blackberry plug-in alongside the Android plug-in (in different workspaces) and that also did not work. The only solution is to have two separate Eclipse each with a different plug-in.
View 1 Replies
View Related
Sep 16, 2010
Is there a database anywhere that has all of the different devices that use the android operating system and what their technical specs are. Mainly screen size, screen density, internal storage, external storage, memory, etc.
View 2 Replies
View Related
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
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
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;
this.setBackgroundColor(Color.GREEN);...................
View 1 Replies
View Related
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
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
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
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
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
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(LayoutInflater.java:619)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
at android.view.LayoutInflater.inflate(LayoutInflater.java:296)
at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:397)......................
View 1 Replies
View Related
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 com.android.ide.eclipse.adt.feature.group
Eclipse IDE for Java Developers 1.2.2.20100216-1730 epp.package.java
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
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
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
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.
View 1 Replies
View Related
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
Mar 8, 2010
What is the event that tells me when the Android device is hooked up to a power plug? I need to know what to monitor to know when the system goes from battery to charging and vice versa.
View 5 Replies
View Related
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
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
Aug 31, 2010
I am used to powering my phone off while charging it. On the Xperia as soon as I plug in the charger, the device turns back on. Is this normal? Is there setting somewhere I missed?
View 6 Replies
View Related
Feb 15, 2009
yesterday, I spent several hours trying to figure out how to capture the HEADSET_PLUG intent with a BroadcastReceiver. The manifest defines the <receiver>, with its intent-filter set to <action android:name="android.intent.action.HEADSET_PLUG" />.
The receiver is working correctly (I verified that by changing the intent filter to capture things like SMS_RECEIVED including the proper permissions and the receiver fired as expected on receiving an SMS), but when listening for HEADSET_PLUG, it never fires. Debugging the whole thing is a bit complicated, as the emulator doesn't seem to support headsets and I have to disconnect my target device (a HTC Dream) from USB in order to attach a headset (so there's no logfile viewing). Are there any special permissions required for applications to capture the HEADSET_PLUG intent (and if so, which? I've tried several, to no avail)?
Maybe the Dream doesn't fire such an intent at all (that'd be bad luck for me), but I guess that it must be an issue related to application permissions. The documentation says extremely little (well, actually: nothing) about the single permissions needed to perform all the actions described in the API docs, so this is absolutely something to be improved.
What I want to do: Upon detecting a headset, I want to re-route the ringtones from the speakers to the headset, so as not to annoy people in my vicinity by a harsh ringing sound (I'm used to this behaviour from my old phone) - by default, the speaker just keeps on ringing, no matter whether a headset is attached or not. This part is already working, but now I need to know how to detect headset attachment/ detachment events.
View 7 Replies
View Related
Sep 7, 2009
I'm supposed to develop an app which behave like that: The User starts the app and can select between different configurations. Depending on the selection there are different colors, drawables and strings (e.g. urls for webservice-calls) to display. All the code-stuff is the same.
My first intention to do so was themes.... - is it possible to include somehow strings in themes? - what shall I do with styles which are referenced in some layout-xml (which are the same for all configs) and should use different colors. can't define colors or styles multiple times and don't want to change that manually (when user selects by code).
View 2 Replies
View Related
Feb 26, 2010
Is there a mechanism in Android to know the default layout of any device (landscape or potrait)?
View 3 Replies
View Related
Oct 14, 2010
I have a issue about spinner. I have many images in spinner when I select some image it shows the image and if I change the orientation like change to landscape its selected item list starts pointing the top one in the list. How shall I prevent to do that?
View 1 Replies
View Related
Sep 18, 2009
I just wanted to quickly bring up a topic that I had noticed lately. This comes to my attention for two reasons, firstly someone had posted that he had a user that reported a vague error message like "deleted all my pics", and the dev's were not able to reproduce it. Secondly, I myself have seen bug reports that really may not be relevant to my application. I had recommended to that first dev to just ignore the error for now since there was not enough info to reproduce it, and also for a second reason, there is no way to know what the user is truly running. For example, I've had a few bug reports, where a user says of my app "Doesn't work on HTC hero", but then another user will post "Works fine on Hero". I also had found a posting on the internet in a forum where a user had tried to use some of my software on a custom ROM, and he was having problems.
I guess the issue I'm bringing up here is that with the android market being somewhat "limited" in functionality, it makes it very hard on us developers to handle any customer issues such as bugs, etc. Especially since they could be using a custom ROM, or have ROOT access which also may even be affecting the software. My point is that developing for android in a professional manner is really not an easy task, and possibly it's just starting to be worth it (with market 1.6 at least there are some improvements) to develop paid apps. Basically Google needs to work harder though to improve this situation - and if users expect better apps (there are lots of complaints about the market being full of junk) then they need a way to report issues better, etc. And really it's not even up to a dev to try to match up with a custom ROM, technically it's not supported! (It's up to the dev of course if they want to investigate and try to support it).
What seems is going to happen is android is not only going to have multiple configs (which fortunately for us seems that the market will help filter them out if you app does not support them), but also we never can really know what is on a user's system. They may have some custom stuff, and they see a bug, but it could really not be our bug, but rather, in the system itself. This is why I still recommend that bug reports have to be weighed carefully as to whether they may really be a problem or not. It's an investment in time and while makers of free apps no doubt may not mind, those of us who develop paid apps don't want to multiply our costs by going down blank pathways.
I don't think I see any resolution to the situation in the near future, but I just wanted to make it clear that if a user reports a bug in their comments and gives you one star, it's not the end of the world. If you can reproduce it quickly and fix it, then that is great. But if not, move on - there is no way you can know exactly what they are talking about. I think some devs get too anxious about that one bad report. There is no way we are going to avoid that report! Because they may be using an untested ROM or such anyway, and it may not be worth your time to look at it in the long run. I've had few low stars here and there as well, and trust me, just keep improving your app and you will rise back up. As devs we need to encourage one another and I just want to try and help devs not get anxious about things that are really beyond their control.
View 2 Replies
View Related
Aug 15, 2010
I have a simple appWidget that displays an image. The image is selected in the configuration activity and the widget is updated via the remove view. This is done on a button push executing the code below:
Intent intent = new Intent(context, KidDialog.class);
intent.setData(selectedImage);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
widgetView.setOnClickPendingIntent(R.id.centerBrd, pendingIntent);
widgetView.setImageViewUri(R.id.widImg, selectedImage);
appWidgetManager.updateAppWidget(appWidgetId, widgetView);
Intent resultValue = new Intent();
resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
setResult(RESULT_OK, resultValue);
finish();`
As you can see, it is also seeing an PendingIntent for the onClickListener of the image. I don't think that is relevant here. Anyway, this work great. The widget does exactly what I want it to. Until I restart the device. When I restart the widget loads with the default view from the xml in the apk. It does not keep the image update from the initial configuration. My questions is how do I get the widget to load back up after a restart with the updated view set during the configuration activity? I will also need to reset the onClick Pendingintent, but I will save that for later.
View 1 Replies
View Related
Feb 1, 2010
I am trying to create a Video recorder but it looks like the video resolution is limited to 320 x 240. I tried changing it through MediaRecorder.setVideoSize() to something higher (e.g. 640 x 480) but gives me the same result. Is there a way to record video at higher quality? Also, when I try using the CAMERA as VideoSource instead of DEFAULT, the app force closes.
MediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT)
Which is the best configuration (encoding options?) to give the best video quality?
View 11 Replies
View Related
May 21, 2010
I am using two xml layout file layoutPotrait.xml and layoutLandscape.xml.When device/emulator is in portrait mode i want to set the content view with layoutPortrait.xml file and when I will change the emulator to landscape mode I want to set content view with layoutLandscape.xml file. How can I achieve this?
View 3 Replies
View Related