Android Things : DatePickerDialog and TimePickerDialog not shown - android-datepicker

I try to show DatePickerDialog and TimePickerDialog in Android Things app but instead of dialogs, i obtain black screen. (When i tap on this black screen, i go back to the calling activity)
I can see the following message in Android Monitor :
I/Choreographer: Skipped 45 frames! The application may be doing too much work on its main thread.
(Number of frames varies)
Did somebody encounter this problem ? Are DatePickerDialog and TimePickerDialog supported on Android Things ? What am i doing wrong or missing ?
(I use Android Things 0.5.0-devpreview on RPi3)
Example code :
https://gist.github.com/aberteau/64343514b456693568f4003ea7682cb6
Thanks you in advance for your help.

Problem solved in 0.5.1-devpreview.

Related

Android Emulator is not working properly. The screen goes blur sometimes. Why?

Android emulator has not been working properly for the past 1 month. Can someone please suggest what might be the issue. It works for some time and again becomes as shown above. Even sometimes gets stuck.
I believe thats not a problem of react native here, try reporting this to google team.
ALso you can check by. creating a kotlin starter project, which will be available by clicking new android project in andorid studio and try checking there if the problem persist, if its still there, report the isseu with google team.

How to detect a screenshot in a RN application?

I'm having some problem about a screenshot-detector in an application.
I'm using EXPO, but I've no idea about how can I detect a screenshot.
Suppose that I've a profile screen. Each user has a profile page, I want to detect when another user does a screenshot on the screen.
My problem is: how can I detect this? I readed about the gesture here, but it didn't help me. With the gestures I can detect, instead, the scroll in a page, the location x and location y.
I readed also this answer, but about the event touchesCancelled:withEvent:touchesCancelled:withEvent: I have not found anything in React Native docs (and also EXPO docs).
So: which is the idea behind a screenshot detector? Thanks for your help!
You can't do it without detaching EXPO. There is already a feature request for that.
If you decide to detach EXPO, react-native-screenshot-detector might be helpful. The solution is very similar to the one from the linked question.
Currently with expo there is no way to do that, But if you detach you can use this package it supports android&ios screenshot detecting react-native-detector

React Native TouchableNativeFeedback

Using React-Native has a long press error
Using TouchableHighlight And TouchableNativeFeedback
Attempted to transition from state RESPONDER_INACTIVE_PRESS_IN to RESPONDER_ACTIVE_LONG_PRESS_IN
My code
This issue usually only appears in android when you are debugging.
This issue https://github.com/facebook/react-native/issues/5823 goes into further detail.
Try turning debugging off and see if you still get the error.
Aligning the clocks on your phone and computer may solve this problem. My experience is that the two clocks do not need to be exact match, just make sure they are not off by more than a few seconds. You can easily achieve this by adjusting one clock manually.
Yes the same issue I faced it, after a much more research I found its's solution that instead of using TouchableHighlight, you can use TouchableOpacity component .
For detail refer this link -
http://androidseekho.com/others/reactnative/how-to-solve-touchable-longpressdelaytimeout-problem-in-react-native/

AIR Native Extension for accessing native UI controls on IOS

Does anyone have a clear idea about or a sample of air native extension that helps me use alert view of apple touch devices.
I tried a lot for the same but ended up getting no success.
Thanks in advance.
I am not tried this library anyhow please try with NativeAlert.
(OR)
This for alternative for access native UI.
You can try with ios-theme-for-flex-mobile-projects link.
This link shows like iOS Alert view.
Please find mobiletheme_ios_usage.fxp link you can download that project then workout.You can see iOS alert view(Not Native UI).

navigation flow of kitchensink example in Sencha touch

i'm new to sencha touch.i deployed the kitchensink example application successfully.i want to know the navigation flow(from which file to which file) of kitchensink example .can anyone help me? and i didn't found the launch() in app.js.
thanks in advance.
The Kitchen Sink is using profiles. It means that the app will be displayed differently depending on what kind of device it is displayed on.
You'll find a launch function in app/profile/Base.js which will be called anyway and then you'll also find two other launch functions in both app/profile/Phone.js and app/profile/Tablet.js. The former will be called if you launch the app from a phone and the latter from a tablet.
From there it should be pretty straightforward.
Hope this helps