How can I read/edit PowerPoint 2007/2010 files in Android? [duplicate] - android

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Does anyone know of a good Java Microsoft Office API capable or running on an Android? I know there is an OpenOffice Java API, but I haven't heard of anyone using it on Android.
I know that using intents is another option, but how common are pre-installed office viewers on the varying Android distributions? Would it be reasonable for a developer to expect the user to have one of these viewers installed? Is it reasonable to request that they install one of these applications if they don't already have one?

Since most of the documents we need to display are already hosted on the web, we opted to use an embedded web view that opens the document using google docs viewer.
We still have a few locally stored documents though that this approach doesn't work with. For these, our solution was to rely on the support of existing apps. After spending some more time with Android, It seems that most devices come equipped with some sort of document/pdf reading capability installed fresh out of the box. In the event that they don't have a capable app, we direct them to a market search for a free reader.

Unfortunately there's no built in Android control to edit MS Office files, or even to display them! It's a pretty big omission given iOS has built in support for displaying Office files. There don't seem to be viewer app consistently enough available to rely on (and they may not provide the kind of user experience you're hoping for either).
If you want to display or edit docx etc within your android application, you have to embed some third party code that adds this functionality. I'm not aware of any pre-packaged open source code that can do this, so unless you want to build/port a solution yourself you will need to commercially license something.
As others have noted, there are some open source projects in this area, but they're not packaged/ported to Android. If you did manage to get them ported and integrated, they'd add a huge overhead to your Android app download (eg. 80+ megabytes) and you'd need to then add a mobile suitable UI for them (see https://play.google.com/store/apps/details?id=com.andropenoffice&hl=en_GB for an example of a port with ui that I personally think is not suitable/user friendly for an Android application.)
One such SDK that I'm familiar with which solves this problem is based on the SmartOffice application:
https://artifex.com/products-smart-office-overview/
It's available as an secure embeddable library that supports both display and (optionally) editing of Office documents. You can contact sosales#artifex.com for licensing information.
Disclosure: One of my jobs involves working on the SmartOffice code.

Most of the Microsoft Document viewers are heavy and expensive.
If you want to create a viewer yourself, you should take a look at Apache POI.

A suitable solution might be using Jword in the link below. It's not free but easy to use.
http://www.independentsoft.de/jword/index.html
Using the library is as simple as this sample code
private String docxRead(String filePath) {
try {
WordDocument doc = new WordDocument(filePath);
String text = doc.toText();
return text;
}
catch (Exception e) {
Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();
e.printStackTrace();
}
return "";
}

You can use this example for read MS word document file in android application.
I give a link below, you follow this for example.
<https://github.com/AsposeShowcase/Document_Viewer_and_Converter_for_Android>
And follow below link for Aspose Word library for android.
<http://www.aspose.com/android/word-component.aspx>
**You Mostly use for this to Read Ms word document.**
I hope, you will using these Library and make you application better.
Best of Luck.
[1]: http://www.aspose.com/android/word-component.aspx

Related

Android QRCode Scanner Library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
What do we have out there available to us (if anything) that we can call for QR data discovery and extraction on an image?
While there have been plenty of posts thus far referencing the ZXing library for QRCode scanning, I haven't found that to be a solution that works for me. Several others have been asking for QRCode scanning alternatives and I have not seen useful feedback. I thought I might ask the community once more what the other options might be for a QR code library that does not launch an activity and call outside our own applications. It should scan images from the Camera2 API in a very simplistic manner. It shouldn't be a complicated library. I hadn't seen examples or individuals speaking of it in this manner.
It actually puzzles me as to why there hasn't been native implementations of the QRCode functionality added into perhaps the Camera library or similar place within the Google SDK natively within the operating system.
Calling and requiring another application (or even requesting a download) is not an elegant solution and no users should be succumbed to doing such thing. As developers we should have access to a library capable of extracting a QRCode from an image or frame that we can then remove encoded data from.
While Sean Owen and others that have worked on the original Zxing library had provided an approach to work with the barcode libraries for the past several years, Google has finally put out an official release with Google Play Services for handling qr and barcodes.
The barcode detection library is described here. The inclusion of these libraries will make for a smooth integration. I'll repost with some sample code for achieving these results from a captured image. At the moment, I wanted to update my answer for this official release. If this indeed does provide a nice way to get at this information (without jumping through hoops and complications), then I'll update with the source and check this off as an accepted answer.
The detection library that Google has provided within the past year has been a much easier library to work with. It allows for quick integration with the camera APIs and extracts the information with simplicity. This would be the component that I would suggest going forward with recognition. A quick snippet is demonstrated below for handling a Qr-code. A handful of pseudocode is left in there as well.
public final void analyzeFrameForQrCode(byte[] qrCodePictureF, int imageFormatF, XriteSize previewWindowSizeF)
{
if(!qrCodeDetectionPossible() || qrCodePictureF == null || mIsAnalyzingQrCodeFrame)
{
return;
}
... //Bitmap conversion code
Frame frame = new Frame.Builder().setBitmap(pictureTaken).build();
SparseArray<Barcode> barcodes = mBarcodeDetector.detect(frame);
if(barcodes != null && barcodes.size() != 0)
{
Barcode qrCode = barcodes.valueAt(0);//barcodes.get(Barcode.QR_CODE);
if(qrCode != null)
{
if(extractInformationFromQrCode(qrCode.rawValue)) {
mIsRequestingBarcodeDetection = false;
vibrateForQrCodeDiscovery();
((Activity)mContext).runOnUiThread(new Runnable() {
#Override
public void run()
{
hideBarcodeDetection(true);
}
});
}
}
}
... //Cleanup and code beyond Qr related material
}
}
There are of course other calls available that can be taken advantage of. But there are really only a couple lines in there. The service for analyzing the frames with the library are not there by default on devices however. So, you should check whether or not the library is available (such as when internet is not available) before calculating as well. This is a slight nuisance of it. I had assumed it would be available as updates for devices going forward as part of the support library or Google Services going out to all devices. But it needs the communication first with an external service to use these library calls. Once it does this one time then that device is good from that moment on.
In my small example, I pop a toast up after a check and then back out of the activity and let the user check their connection. This can be done with a small amount of sample code as well.
if(!mBarcodeDetector.isOperational())
{
updateUserInstructions("The barcode library cannot be downloaded");
return false;
}
Edit (Update):
A considerable amount of time has passed since working with the latest Google Play Services Vision libraries available for barcode detection. While the limitation for needing to download the library over the wifi is indeed a limitation, it is a one time process. And lets be honest...
...our devices will have a connection. The library itself is downloaded in the background so you don't even notice it happening unless there is trouble downloading it and then you would have to report an appropriate corrective measure such as enabling a connection to the internet for it.
One additional tidbit is that it is a little tricky sometimes with how you integrate the library into your application. Using it as a library project worked on some devices and then failed on others. Adding the jar to the build path worked across a broader number of devices (it could be all, but it solved a problem). So as such, I would do it using the secondary method when including it in your projects for now.
Android QRCode Scanner Library
This may help you, this library doesn't require any download or use of any external application. We can directly integrate this into your app and use it for scanning a QR code.
https://github.com/dm77/barcodescanner
This wiki will help you to integrate with your app,
https://github.com/dm77/barcodescanner/blob/master/README.md
You can also check MobileVisionBarcodeScanner (note I'm the author of this package). It is powered by Google's mobile vision API. Also see the overview
here .
I used this library in my app. It also works with xing but you don't need any third party applications. Additional it's really easy to use.
https://github.com/journeyapps/zxing-android-embedded
Maybe you searched something like this.
You've already found the library you're looking for, I think. See the core/ module:
https://github.com/zxing/zxing/tree/master/core
You're just looking at the Intent-based integration, but, in fact the core scanning is its own stand-alone library that you can embed into your own app.
I think Intent-based integration is best in most cases, simply because it is so simple, and, most people don't have the time to reimplement their own scanning UI and such on top of the core. Most devices have Barcode Scanner installed already, so it doesn't usually need a download.
Still, take your pick. That's why there are at least two ways to use it.
Rather than QRCODE ZXing library integration You are able to open camera and scan QRCode from anywhere:
The code i found below will may be helps to you for scanning QRCode :
try {
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "QR_CODE_MODE"); // "PRODUCT_MODE for bar codes
startActivityForResult(intent, 0);
} catch (Exception e) {
Uri marketUri = Uri.parse("market://details?id=com.google.zxing.client.android");
Intent marketIntent = new Intent(Intent.ACTION_VIEW,marketUri);
startActivity(marketIntent);
}
Please remember that You must have a barcode scanner application by "Zxing" in Mobile Phone else it will firstly redirect to Google play store link for download it.

Fill pdf form in Android

I am trying to develop a paid app in which part of it involve filling out an already existing pdf form. I am looking for a way to do it in Android. I have searched stack overflow and I found a library to use like iText, but it doesn't meet my needs. My requirements are the following and I hope you guys can help me out
my app is paid app so I am looking for a library to allow me to use I for commercial purposes without limitation hidden in footnote of licenses
I need it to work in Android as I heard libraries like iText have issue in Android (don't know why although both are Java)
So any suggestions? I just need to view and edit/fill pdfs, that's all.
You could look at Docmosis which has a cloud service using templates and merging data to PDF. Some devs have found it a reasonable (
https://groups.google.com/forum/?fromgroups=#!topic/google-appengine/pcz5NSz_8Co) transition from Google's soon-to-be-decomissioned Document conversion Service.

math or LaTeX engine for Droid phones [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Are there math or LaTeX engines available for the Android phone? The flashcard app I like best (AnyMemo) doesn't seem to be able to integrate equations into the flashcards except as graphics, requiring a lot more work on the user's part, and I thought a third-party math typesetter would be a possibility.
(Edit 2011.04.24) More detail: From elsewhere, I've received the following remarks on some of the available options:
JScience: Only a parser. It is not useful for generating images.
jsmath: Does not display correctly in the Android browser.
JEuclid: Depends on AWT which Android does not have.
JMathTex: Depends on Swing, which Android does not have.
snuggletex: Depends on JEuclid (see above).
Perhaps the S.O. readership can think of another way?
Built on jsMath, MathJax is a wonderful browser rendering engine for LaTeX, MathML and AsciiMath, which works fine in the native Android Browser, and also in Firefox for Android. Unfortunately, though, none of these technologies (except maybe AsciiMath) is fully supported at this time. For example, only certain LaTeX commands are supported. You can also read the documentation on MathML support and AsciiMath support.
If you're comfortable with the command line, you can also try
TeX Live for Android, although it has been reported to not work with some devices.
TeXPortal, another work in progress effort to port the complete TeX Live to Android.
So, there are alternatives and everything has its ups and downs. I just hope Google converts Android to a full Unix system, it'll make things much easier for everyone.
If you just want to generate a PDF out of you LaTeX code I'd suggest the Android app VerbTeX which does exactly that. It uses the facilities available at Online LaTeX Editor to generate the PDF
See TeXPortal on Google Play for a usable app.
I am using TeXPortal. It can download missing package automatically and running
fast.

Porting iOS app to Android [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
we made a quit big iOS application with 2000+ objective c classes. I am wondering there is a best practice guide to port it to Android ? Currently I am looking at Visual Paradigm (UML) which reverse engineers objective c files to UML. Like Enterprise Architect it also allows me to generate code(headers + declaration) for another popular language like java or c++. Are there any other approaches yet ? Also, as our app is heavily using the UINavigation and UIView controllers, I am wondering there is similar model and implementation on Android.
Thanks so far, guenter
In all honesty, I think that what you are planing is just going to make for crappy code that will be insanely hard to maintain. I realize it sounds like a lot of work, but its gonna be easier in the long run, I would just "port" the concept of the app to android and write it from the ground up.
The Apportable SDK
It cross-compiles Objective-C applications to Android, without extensive changes to the original codebase. Instead of translating the code to Java, Apportable cross-compiles your code to run directly on the Android device’s processor, bypassing the Java runtime, resulting in speed and performance that rivals the iOS version.
The platform has been tested on Apportable’s library of over 150 devices and in the wild, where Apportable-powered apps have received 5-star reviews on thousands of devices.
check out the sdk here
AFAIK there is no automatic tool to convert Objective-C to Java. There is java2objc that does the reverse.
Here are some official tips for porting Objective-C to Java: http://www.nextcomputers.org/NeXTfiles/Software/WebObjects/Guides/PortingObjectiveCtoJava.pdf
I'm not an iOS expert, but AFAIK iOS does not have layout managers - it uses XIB/NIB to do layout (or dynamically in code, which is not recommended). On Android there are layout classes which are primarily used to support different resolutions. Also, layout is declared via XML files.
So it seems there is a lot of hand-coding in front of you. Since a project is quite large, I'd get a help of an expert that knows both Android and iPhone.
For going from C or C++ to Android you are probably best of using the NDK. The problem is that I don't think this is possible (at least, not directly?) for Objective C.
I think it might be best to try and go to C, and then use the NDK to make it into an app for Android. Going from your code, trough UML to JAVA sounds like a much harder option.
just to let you know how the story did end up, I kept using Sparx Enterprise Architect and have my design, architecture and documentation well under control, for all platforms finally except for JavaScript. Its a bit tedious when integrating new features but in an enterprise environment it saved me a lot of time. We are working on iOS, Desktop(Web2.0/HTML5), Android, Blackberry, Symbian and some router systems. To get rid of platform specific things, I introduced always an additional layer. Seems to work for our products so far.
Thanks to all again, g.
MyAppConverter service helps to convert native iOS mobile apps instantly to native Android app, it's not focused mainly on the look and feel, and UI interaction of your app. That means it don't replicate your application as it is. Instead, MyAppConverter make all changes to make a project suitable for the development of an Android application.
MyAppConverter currently support only iOS to Android conversion and objective-c to swift.

SVN and syntax highlighting on Android [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Anyone know of a Subversion client for Android OS? Same goes for a syntax highlighting text editor on there.
I have written a SVN Client for android. It is called Open Android SVN (OASVN)
Here is a link to it on the android play market : https://play.google.com/store/apps/details?id=com.valleytg.oasvn.android
Can do checkout, update, commit, cleanup, revert, export, and much more in the works.
Works with http, https, svn protocols and svn+ssh is experimental.
I will be adding merging and other features soon.
I don't know anything about its quality, but Subdroid is available in the Android market with both free and inexpensive (~1 euro) versions.
I was just thinking today that I'd like a text editor and an SVN client for Android! I couldn't find the latter, but I do know that http://svnkit.com/ would probably be a pretty good place to start.
There is an app called Touchqode which has syntax highlighting and ftp download. It comes with its own "programing optimized" keyboard. It seems pretty good for a beginning of one of the first android IDEs. I guess you can get some compilers for it too.
What I've done a few times is use a SSH client to log into my web server (but it could be your home or work machine), use SVN on there to check out the code, then use Touchqode's FTP function to work on the code from my web server. Not as elegant or convenient as using a real svn client right on Android, but it gets the job done.
From the author:
Make use of time while commuting or waiting. View and edit source code anywhere.
View and edit source code on Android phone. Touchqode is a true mobile code editor that comes with syntax highlighting, autocomplete and other features found in a desktop IDE. We support Java, HTML, JavaScript, Python, C++, C#, Ruby and PHP. Now with integrated FTP and SFTP client.
I just started testing IDEdroid and TextWarrior recently. My mini review so far for both below:
IDEdroid
Decent interface and Syntax highlighting, allows you to test code on the ideone.com web site.
TextWarrior
Pretty nice interface, Syntax highlighting for C, C++ and Java only though.
The only text editor I have found that has any kind of syntax highlighting is SilverEdit. It only does html, css and xml though, and seems generally buggy.
It's an odd request. Going to say it doesn't exist. You might be able to port Eclipse's native-java based SVN client but it would be a hack.
If the SVN server is hosted via HTTP, you could write some Delta-V\WebDav calls to access it without a lot of work.
if you root your phone and install debian on it
http://www.androidfanatic.com/community-forums.html?func=view&catid=9&id=2248
then you can easily install the debian client
I use the Android CodePad which has syntax highlighting to browse code. I find writing code on the android phone is too cumbersome in most cases.
AIDE is a new full Android IDE for developing Android apps. It doesn't have SVN support but it can edit, compile, and run Android applications directly on the device. This in combination with an SVN app would be extremely powerful.
https://play.google.com/store/apps/details?id=com.aide.ui

Categories

Resources