How to create a phone tracker in codename one - codenameone

Pls I Want to develop an app that can track the location of a stolen phone. I was able to fetch "Country, "Carrier, "MCC", "MNC". In my research is as if I will need Local Area Code (LAC)- To detect device in which region.
and Cell ID - Unique id of that region. pls how can I go about this? Or can anybody help with the coding. Thanks

Some of that data is available in the Display class. However, devices block the access to this information to protect users privacy from spyware. You would need complex permissions & authorization to access that sort of information from a system level.
That means you need to understand native code and even if you do this is impossible to implement on locked down platforms such as iOS.

Related

Prevent from duplicate installation in different devices

We provide a subscription to our app.
Are there any standard technics to prevent users from duplicate installations in different devices?
In app payment requires that you let a user restore his purchases on a different device. I'm not aware of a standard way to verify that the previous devices content was removed.
If you're asking about just copying the files then there's storage encryption which you can read about here. Notice that it is breakable if someone tries.
You can collect device information from each device and then just compare if the new device is trying to install the app with the same account as in another device.

How to access information from other sites based on specific parameters provided by a user to my website?

So I am currently working on this project and I am confused on how to tackle this issue I am having.
I am creating this website that will go behind the scenes and input the data the user is providing us with and checking to see availability on various websites. I am confused on how the logistics of this would work. Would it make more sense to use API's rather than create maybe a bot (I don't even know if this would work) or even if there was a way to code it in myself.
A similar platform to what the general idea behind what operations would be used is vaccines.gov where the system will display the availability of vaccines nearby (a value inputted by user is zipcode). I just need to be pushed in a general direction as I am unsure how to approach this.
Thank you!

How to make an option to IMEI in CN1?

I am clear that in ANDROID there are restrictions to obtain the IMEI, but I need to guarantee that the project I have is installed only on allowed cell phones. For this I think that a unique code is necessary that is generated from the cell phone (equal to the IMEI) and that is stored in parallel in the server's database to validate that it is correct.
Is there any way to simulate this condition from CN1?
Google play will block the installation of your app. If you still want to do it you can use:
String IMEI = Display.getInstance().getProperty("IMEI");
Notice that you would need to add the "read phone state" permission to the manifest for this to work.
I don't think this is a good idea though. How will you find the IMEI in the first place to perform the restriction?
Blocking installation isn't a practical option, you should block access so unauthorized users won't be able to launch the app and that's more portable too.
Thank you Mr. Shai, my project blocks access to unauthorized users, but there is the alternative of installing the application on another cell phone and that is what I want to avoid.
Something important, the following link talks about an alternative to have a unique code, but it is totally oriented to android and I do not handle it and I do not know how to implement it in CN1. I copy the link to see if its integration is possible.
Android 10: IMEI no longer available on API 29. Looking for alternatives

How to add first name and email before uploading a video?

Hi guys im brand new and not a developer but I need a way for users when they go to my site they can upload there video and there would be a option for them to add there first name and email so when the video is uploaded the database can keep all the data together.
Ideally I want this as easy as possible for the user and this would just go to our youtube channel or any video platform will work.Any advice would be great!
Please provide more information like what platform are you using ?.
There's more than one way to skin a cat.
The simple way to achieve with web technologies like (Php,node,jave) is maintain the basic user information into the sessions, and whenever it's necessary use this information.
You need to get some knowledge about the system you are using. You particularly need:
access to the server
to know the server type
access to the database
to know the database type
where the relevant files are
After you have gathered all these information, you at least know what you do not know. The next step is to gather information about how you can implement the feature you need. Look at it like at a puzzle with many small pieces. If you are patient-enough, at the end you will resolve the puzzle.

Touching two phones together to send data

I'm trying to develop an application like Bump to receive data from another device by touching them together. I could not find any tutorial on Google about this. Can somebody help me make an idea about how this works? What programming language should I use, how can I do it by using Bluetooth or/and Wifi, etc? I only need some info. I don't know where to start. Thank you!
If you want to create something like bump for iPhone, you could code it in Objective-C or swift. (Based on preference) For android you would code it in Java. To make this bump you need to create a trigger that detects a shake gesture on the device to trigger additional code. The additional code will take the location and the time of both devices in the bump and save it into a database. You need to check the location and the timestamp and compare those values. If is the same location and at the same time you know those are the two devices in the bump. After you know the devices involved you can send whatever information between those devices. Hope this helped.

Resources