Android :: Implement WYSIWYG Editor For User Content?
Jun 22, 2010
I'm building an Android App where users need to be able to edit their own content, including minimal layout. I just want to store the formatted source in the database and pull it out and display it the way I would with something like TinyMCE in a web app. Any ideas how users can enter and format their own content in an Android GUI?
View 1 Replies
Feb 2, 2010
Based on the limitations of RemoteViews, it looks to me that the appropriate way to get it actually drawn on the screen is to use an ImageView in the actual layout, then when it is updating, create a ShapeDrawable or two and draw them onto a newly created Bitmap. Then, set that Bitmap as the source of the ImageView. There is Something about that process that I'm just not grokking, though. The following is the code I tried to use to update the widget. I get nothing drawn on the screen at all. The ImageView has a placeholder image just set by its src property. When I don't run the code to update it to my drawing, the placeholder image stays in place. So, I know this code is doing something, just obviously not the right thing.
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget);
Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
ShapeDrawable drawable = new ShapeDrawable(new ArcShape(0, 360));
drawable.getPaint().setColor(0xffff0000);
drawable.getPaint().setStrokeWidth(5.0f);
drawable.setIntrinsicWidth(100);
drawable.setIntrinsicHeight(100);
drawable.draw(canvas);
views.setImageViewBitmap(R.id.ImageView01, bitmap);
appWidgetManager.updateAppWidget(appWidgetId, views);
I knew it couldn't be that easy. So, am I even heading in the right direction? Update Ok, maybe that was too much information. The question I'm really trying to ask is this: If I want to draw shapes on a widget, should I use an ImageView and create a bitmap from my ShapeDrawable or is there more appropriate way to draw into a widget where it is constrained by RemoteViews?
View 7 Replies
View Related
Apr 7, 2009
In emulator, the items of GridView(e.g. Launcher) are in alphabetical order. Would you please point me how to implement a user-defined order in Launcher? For example, I'd like 'Browser' to be the first item in Launcher...
View 3 Replies
View Related
Aug 17, 2010
I have 2 EditText widgets ,one takes username and other takes password.When the user enters username in First EditText,the text should be validated (It should accept only characters no digits) when the focus is on the first EditText. How to achieve this. It needs to display error message using setError() method in EditText when the user enters wrong data.
View 1 Replies
View Related
Aug 19, 2010
Where the heck are my pictures and videos that I've snapped/recorded in the internal storage when looking for them on my computer? What folders are they hiding under, etc?
View 1 Replies
View Related
May 8, 2010
Is there any iPhone's Interface Builder style tool for WYSIWYG for Android?
View 3 Replies
View Related
Aug 12, 2009
This may seem like a stupid question but I need to be sure. I was wondering if it was possible to pro-grammatically change the Content Provider used when making a query given a Content URI. The reason being I need to know if it's possible to force the Calendar/Contacts applications to read from a different database via a different Content Provider temporarily while my application is running, so that I can reuse those applications to display my own data. Since the Content URI s are hard coded in each of these applications the only way it might be possible is if we could somehow temporarily change the Content Provider used for a given URI. I know this probably isn't possible, I just need to show it isn't. Could someone confirm this can't be done?
View 2 Replies
View Related
Sep 22, 2010
I have a EditText in android in which i want the user to enter the text and checks for the condition "BYE"
Code sample..
How can i make user to enter the text?The UI should wait for the text to be entered(something like we have InputStreamReader in java applications).
View 2 Replies
View Related
Mar 1, 2010
I am having a hard time understanding content providers. In the notepad example and others, the content provider never even declares its CONTENT_URI anywhere inside itself, yet the docs say to publicly declare this. It's declared in a different class. So when an activity queries a content provider with a CONTENT_URI, how does Android know which one I want. I see no link between a content provider and its CONTENT_URI declared in another class.
I also don't how to think about intents and content providers. I know that you don't call an intent on a content provider. But an activity queries a content provider without an intent, and an activity has a mimetype attribute in the manifest that would seem to tie it to a content provider.
View 2 Replies
View Related
Sep 28, 2010
I am creating the GUI in xml using eclipse, is there a better way?
View 3 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
Jul 24, 2010
I'm developing an image editor application for Android. I have a big problem: I haven't a mobile with Android. I found a person that helps me to test the application and I found many problems. The application works in the emulator perfectly but in the mobile the application constantly mistakenly ends. I want to print a log similar that the show in ddms in a file on the SDCard. I did it with a FileWriter but it isn't the same that I can see in ddms.
Is it possible to show the same output as ddms in a file?
If not possible I would like to get as much information as possible. The person who has the mobile don't have knowledge of programming and I have not got close.
View 2 Replies
View Related
Mar 28, 2012
Is there any application(s) for editing XML files? For Android devices (.apk), not desktop.
View 2 Replies
View Related
Mar 11, 2010
how can i create a custom content provider like contact content provider? i know how to create custom content providers but i want to integarte to device such a way that it canbe accessed by all application installed in that device.
View 3 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
Apr 19, 2010
I am devoloping an application of image editor. I always do it by using the resources in the drawable carpet. Now I changed it to use the resources in the SD card. I don't change the code of the image access but the program always produce an error if I intent to set the value of a pixel. The program works correctly if I try to read the pixel but if I try to modify it fails. I think this is a permissions error but I added the following: <uses-permission android:name="com.android.editorImagenes.permission.WRITE_EXTERNAL_STORAGE"></ uses-permission> <uses-permission android:name="com.android.editorImagenes.permission.WRITE_OWNER_DATA"></ uses-permission> And everything remains exactly the same. I'm desperate. A thing happens is that if I try to do the scaling or rotating the image using a matrix postrotate, etc, the program works correctly and as of this moment I can use the SetPixel without causing error.
View 2 Replies
View Related
Mar 5, 2010
The Photoshop.com Mobile editor is now available to the Android developer community as an activity that handles actions of type Intent.ACTION_EDIT, for image content that has data of mime-type image/*.For more information on incorporating the editor into your Android application.
View 20 Replies
View Related
Feb 16, 2009
If you have an interest in reviewing an upcoming Android development book, we are in need of an "expert" technical proof-reader. The title is Unlocking Android, published by Manning. You can learn more about the book here: http://manning.com/ableson. ( Note that I am providing this link so you can learn more about the title to determine if you are interested in the technical proofreader project, not to promote it.) This is a paid position, paying $1 per page. The total page count is approximately 400 pages. If you are interested, please send an email to me at fableson at msiservices.com There is an aggressive schedule for completing this project so please respond only if you are an experienced Android developer and can devote time to this project over the next 2 to 3 weeks.
View 2 Replies
View Related
Apr 20, 2010
Anyone know of a graphical editor that will generate a android.graphics.Path? I'm looking for something like inkscape that would generate appropriate commands to generate a android.graphics.Path or some kind of conversion utility that would map SVG to an android.graphics.Path so it can be used for drawing on a canvas...
View 6 Replies
View Related
Sep 15, 2010
Are there any free text editing programs? I'm an author, and a broke one at that, I like to write in my spare time. I found a decent one for my blackberry that worked pretty well, but since I've changed over to Android, I'm at a complete loss. At the moment I am running XtrROM4.2 on my Droid HTC Eris.
View 1 Replies
View Related
Sep 26, 2010
I thought ADT should come with a visual editor for building GUI : http://stackoverflow.com/questions/851882/easy-way-to-build-android-ui However, I just cannot find it. I was wondering where is the Visual Editor for Eclipse with the ADT plugin. I can run HelloWorld application without problem. However, whenever I click on main.xml at the left navigation tree layout folder, here is what I get. What I wish to get is a WYSIWYG editor.
View 4 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
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