Android Studio RTF to HTML Converter - Android Studio

I've already seen lots of posts on the site for RTF to HTML converters and some other posts talking about some HTML to RTF converters, but I'm really trying to get a full breakdown of what is considered the most widely used commercial product, open source product or if people recommend going home grown.
I really need that so if there is any kind of solution you already know,please answer.
I already check librtf.sourceforge.net but it doesnt work properly as native code in C/C++. If there is anyone who used it before, and know how to implement it, please answer me!
Thanks a lot !

Option #1: If you were planning on packaging the RTF in the app itself (e.g., as raw resources or assets), get rid of the RTF and use HTML in your app in the first place, using either Html.fromHtml() and a TextView or use a WebView.
Option #2: Find some Java code that can convert RTF to HTML on the fly, then proceed as in Option #1.
Option #3: Find some cross-architecture C/C++ code that can convert RTF to HTML on the fly, add that to your app via the NDK, then proceed as in Option #1.
Option #4: Roll your own RTF parser and a SpannableStringBuilder to create the formatted Spannable to load into the TextView.

Related

How can I make a simple game or app?

I've been programming for 3-4 years, about 1-2 of those years in C++(the rest in html, php, gml, js, and crapy stuff like dat). No Java, but I've heard its really easy to learn especially if you already know C++.
anyways, I've read the google tutorials and they haven't helped me since they make you download code instead of writing it (like the notepad tutorial).I've also seen all the videos that explain how android works, and I've read the stuff about it. I just want a tutorial that walks you through the process of programming an application.
basically what I want to learn is:
- How to tell if the user pressed a button, or interacted with a view
- draw an image to the screen
- open and close activities, like for a game you switch from the 1st level to the menu
- How to save data to a file, or database(whichever is best)
and things like displaying a list of items, or an alert and stuff like that.
I already setup eclipse and ran the Hello, Android application in the emulator AND my G1 with adb. So I just need to learn how to write the code
My goal(currently) is to make a picture on the screen move to the right when the user presses something(button, key, trackball, screen), but with my code, not cut & paste. I'll just turn that into a game later.
please help me with this, I've always wanted to develop apps for android(ever since I heard of it ). sorry if this sounds like a retarded question, but I've searched everywhere and I haven't found a good tutorial, and I cant buy a book
PS. I use the eclipse plugin for visually designing the layouts
http://java.sun.com/docs/books/tutorial/
I don't exactly remember from my HTML java applet days, but you can write straight to vm's frame buffer and write a simple program to change the position of the element scrolling it either way you want. Also, java input in html applets can be aided with javascript, so i used javascript to listen for user input and then have java respond to it, but that was over 10 years ago and I dont remember now T_T
really? thats helpful...
EDIT:
I've already read these tutorials on java: http://www.freejavaguide.com/corejava1.htm

To all developers: Simple video sender tutorial?

The hello world from https://github.com/pjjanak/chromecast-hello-world was good, I was wondering if anyone know of any similar thing for video. I am trying to understand Fling (the receiver HTML part, I sort of get). However his Java and the Ramp protocol is a bit beyond me in the Sender portion. Anyone know of any simple HTML sender/reciever app that I could take a look at?
I realized that it is a lot to ask, but if anyone could help me I would appreciate it. I just want to learn on how to send a simple URL of video to the chromecast, no server hosting, no transcoding. Simple so my little brain could understand and learn.
I am getting my WhiteList, so I am looking for the official way.
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Thank you, Unholyfire, looking forward to your next post. And thank you for your help on the other post as well. I now have somewhere to host my file online. Just waiting on Google. And yep Sender is harder. I played around with the original sender from google (which doesn't work now), I used mongoose and whitelisted Localhost already so I am familiar with the hosting concept.
Unholyfire said:
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Click to expand...
Click to collapse
Try to Keep the post visible, I hope you have a good holiday weekend and please post the sender part whenever you can. Thank you.
Unholyfire said:
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Click to expand...
Click to collapse

How to create JSON Service fastly through Arrray.com

Hi guys,
my name is Fabio Falanga and I want to introduce an idea that I developed with my friend Dario Carella.
Our idea was to create something that could simplify creation of web services could be used in our Android app, which is useful especially in the early stages of developing an app, where you do not yet provide a complete backend .
The idea is to have to devote himself to the Android code omitting start writing the backend of our app (plus point is if you do not have the skills or if you do not have time to make it happen, but you want to present a prototype in short).
Through the portal arrray.com you can create JSON service accessible from the mobile (or even from the web) in a completely free way. Simply insert the JSON document that you want to use, the name, a description (optional), tags (optional) and save the entry.
Once this is done we will be given a url address containing a token with which we can then make changes to the document, which will be public but not editable by anyone (just who will have the token can do so). In this way you can also create projects in teams. We preferred this approach to prevent users another tedious registration.
Once the insertion, just make an HTTP request from our Android app api.arrray.com/ID address (url provided following the creation of arrray.com). Requests must be made in reading as is normal REST through the GET method. In doing so we will have our backend ready to use, according to our specifications and without having to use any programming language, if not the knowledge of the JSON format.
We are open to suggestions of any kind (note that arrray is at a preliminary stage of development, many tasks are already in the queue: P).
I hope that arrray can be useful for the realization of your app with Web Service,
Fabio

Help

I wanf to learn web development.....I searched on web there are variety of languages ...can anyone help me what languages I need to start...and languages to improve and also languages to master.....web development....
You'll want to know HTML first. After that, CSS. From there, you can choose JavaScript (front end language) or/and PHP (back end language).
Start with HTML. Preferably HTML5. Do CSS3 alongside it (you need CSS to actually make the HTML webpage look like something other than basic text). Once you've grasped that, look into Javascript & PHP. But start with HTML5 and CSS3.
My advice, sign up to Codecademy. It's a free interactive online open academy meant to teach everyone to code. http://www.codecademy.com/

Slide from one html page to another

Hi
I am making an android book app with java using one web view and my pages in html files.
I created an assets folder , under src- main and store my pages in there
Now all I'm missing is a navigation method.
As I am new to this, I am trying to find how to slide from one html page to another instead of clicking buttons. please if you know how , set an example because like I said I am new to this.
here is a link to the app I made if you want to have a look(its very small for testing purposes, with 3 pages).
https://github.com/Philip2021-Gr/book-app-sliding-between-html-files
So far no one gave me any reliable answer that refers to a rookie like me in coding nor I find a video tutorial that saws how to do that with html pages that are stored in your assets folder.
Thank you in advance
Philip

Categories

Resources