Question regarding using React Native. Is it possible to develop an app where it will record a video only without a camera view? Basically, an app that is just a video recorder without a monitor to see what the camera is seeing. If yes, I would appreciate if you can share a little bit of an idea on how to go about it.
Hiding it from the phone's viewing area whether by position, or giving it a width or height of 0, or making it transparent are not the kind of solutions that I'm looking for.
If you are expecting a module from RN in JavaScript that would allow you to do that, then I believe that module is not around. At least in the official framework.
What you could do, is to create a NativeModule. RN allows you to actually execute native code from Android and iOS and then communicate through a bridge.
You can see how to create this modules here: https://facebook.github.io/react-native/docs/native-modules-ios.html
Related
I am trying to implement a custom keyboard with react native. Can anyone provide me with any good packages or guide me in the right direction.
That's not going to work. There's several problems with this.
1)You need to have an InputMethodService. That means at best you could write a native app that has a ReactNative view.
2)Several of the IMS functions need to return a synchronous value. ReatNative works by running Javascript asynchronously on its own thread. There is no way to make this work.
3)Unless all your logic is in the native code, you'd need to be able to call react native when calls are made to the IMS. But that isn't possible in React Native as of last time I looked- RN can call out to native code, but there's no way to pass a function call through to react native.
The absolute best you could do is an RN view and all the logic in native code. Which would be painful and harder to do than pure native.
Then on top of all this- performance raises its head. Keyboard apps need to launch and display quickly, and preferably use as little memory and CPU as possible. Launch times and resource usage of RN apps are very high. It's a bad fit even if it was possible.
I want to implement a native android camera preview (using c++) and display this preview on a flutter application.
I couldn't find any direct possible way to do so - up to this point the only solution I could find (which I still am not sure if it will work and think it might be too complex) is the following:
Implement a native stream using ACameraCaptureSession_setRepeatingRequest and ACameraDevice_createCaptureRequest, pass it to Java, and convert it to an android view, and then using Flutter's PlatformView.
As I mentioned, I'm not sure it will work, and even if it does, I wonder if there is some simpler way to do it.
I'm about to make an app, I need to know if the person is running using the the front camera, so I need to know where are their eyes and the mouth.
The problem is that I've been searching but I don't find anything like that on Titanium just for pictures and I have to do it in real time.
is this possible on Titanium?, or I have to do it native?
sorry for my bad english
Update:
The app is for IOS and Android
For iOS you can use the following Titanium module which wraps the CIDetector framework:
http://gitt.io/component/by.farwayer.facerecognizer
We are working on a Mobile Application which has to be developed on IOS and Android Platforms. Most of the application is straight forward which is display content from a back end CMS system for which we are considering using PhoneGap. The application has one module in which the user can browse through a virtual house and be able to modify colors / replace a particular item like a chair etc. This can be easily done using Unity3d which we have in place. Using Unity3d for the whole application is probably going to be an overkill and there will be a lot of effort required on the Application Front or if we go the PhoneGap route managing the 3d thing is going to be a challenge.
The question I have is if there is any way we can export the Unity Scene and use it in a PhoneGap build since we will get best of both packages? If not that what are the options to get Unity3d working (UI and Services for Application) for doing an Application or doing some stuff with PhoneGap which helps to get the 3d part sorted.
Thanks in advance.
Figured out he solution.
Using Phonegap completely. For the 3d Module using Panorama image and displaying it using https://github.com/nicekei/jQuery-html5-canvas-panorama-plugin for interactivity. There are many other plugins available for jquery and mobile friendly. I choose to use the above one. You can find more on http://www.jquery4u.com/plugins/10-jquery-panorama-image-display-plugins/. For walk through using annotations to link it to another page which will give a 3D Panorama for that room.
You can render stills from a 3d software and stitching them using any Panoramic stitcher Photoshop also does the job. Hope it helps.
I am about to decide which way to push our smartphone development.
I have read numerous articles about these technologies. I have also created test apps, but wanted to be 100% sure that I get this right.
I am not able to create EXACTLY the same look and feel like native app in PhoneGap because it runs in WebView Controler. And the webish look and feel is as far as I will get with this tech. correct?
(In the example app I have created with PG, the look might be similar, but there is a delay when i click on buttons and the animation is not so fluent as in native apps)
Latest Titanium seems to have changed its approach to WebView, to remedy that lack of look and feel of native apps. My question is (I havent tested this myself). Can I create EXACTLY the same look and feel of an native app with Titanium?
EXACTLY is the key word. I mean can a person tell a difference if app was created with Titanium? because I can definitely tell that app was created with PG.
Final goal is the UX, ppl sense this things, and on smartphones anything that is webish and is suppose to be appish is a bad UX i believe.
Thanks
Compared to PG Titanium is more Native like UI experience but it's kinda problematic for Android.Since it's originally intended for IOS.
Titanium for Android is pretty buggy and can mess you up and the thing that you have to come up with workarounds and if you cant find any then you are stuck.
But if you are okay with that and i can easily advise that Titanium is way to go though it's nearly native (not exactly) which close to exactly.I dont think an average user would understand Titanium .
2) yes, since titanium uses the original UI. your javascript code is wrapped to native Objective c code that creates native elements. only constraint is that your are not as flexible as with real native code written by yourself. but you can write native modules and add them to your projekt. so you're able to expand your project with custom UI too.