I develop little since with React Native.
I tried to install the APK generated from my application on an Android phone, which works perfectly well. But as soon as I restart the phone, the application that I installed disappears.
It looks like it's automatically uninstalled from the phone.
I use Visual Studio code as the development environment.
That's the problem I encountered.
So, I need your help.
Thanks
Related
I want to run the app in my phone, im running the emulator and my phone, the problem is that it says that everything is fine but doesnt show the app, in the emulator is working fine, why is this happenig?
the emulator:
real phone:
why is this happening?
It looks like Expo is stuck on your Android phone. I'd try the common tricks - reboot phone, kill expo process and reload it, and lastly republish the App on Expo.
I know there are documents on this, but I have no clue how to get the app to actually show up on the phone. All I get after running is a Node.js window on my PC instead of phone.
I am using Expo for this purpose. There is a link to it https://expo.io/
It's pretty easy to set up and use.
When you run it from, for example, Visual Studio Code you can run it on your real device, just installing Expo app from AppStore/GooglePlay (Scan the QR code) as well as on PC in Android Studio etc.
Use expo
Expo enables you to run your react-native app on your local android or iOS simulator as well as physical devices.
In the past, the android simulator was painfully slow and I use the device only to debug the android applications.
What's the preferred development environment, simulator, or device for React native application?
Actually, emulator can be super fast given the fact that you can configure them as you want (Giving as many RAM as your computer has).
My job is to do mobile app with RN and I almost only user the emulator. For the feature that does not work on it (Opening file with app proposition, for example), I'm using a device.
I also stopped using the debug mode for Android because it is so slow! If you want to look at the console.log, you can open a terminal at the root of your project and run react-native log-android. It will allow to see the log without being force into debugging
i was thinking that we only have two android emulator and also iOS simulator used to develop react native app through their android studio and xcode sdk.
but CRNA(Create React Native App) users can not use both emulator and simulators.
They can only run the app using a mobile device through Expo app.
Is there any simulator in expo for CRNA user ?
please suggest any idea to use simulator
thanks in advance
They make running the app on actual devices super easy and obvious, and I totally understand why you'd think it's not possible to run the app in the simulators as well. But, in fact, you can.
Expo recommends using the Android Emulator in Genymotion
And if you open the project in the Expo IDE, you should see this option...
I'm newbie in Titanium Studio and I have some weird questions:
- When I choose a new Mobile Project and trying to Run under the Android SDK Emulator,
I able to see the phone screen but when I'm going in the emulator to the apps list, I cant see the application I just created...
any ideas?
thanks.
When you hit Run it is automatically installed in your device/emulator.
Be sure it was successfully installed in your emulator first, please see:
Android troubleshooting
The initial launch of the Android emulator can be quite slow and Studio may timeout before it can install and launch the application. If this happens just click Run in Studio again. Subsequent launches should not time out on the same virtual device.
http://docs.appcelerator.com/titanium/latest/#!/guide/Creating_Your_First_Titanium_Apps-section-37541502_CreatingYourFirstTitaniumApps-AddaTableView