I have been looking at the android source and developing some apps. However for my next app, I need information about the cell phone. Similar to what you see when you go into "Field Test" mode. However I have not been successful to get RadioInfo.java to work. Is there a way to hack RadioInfo.java so that I can use it in my app OR is there a way to get the data that is displayed in "Field Test" Mode. I have looked at the telephony api include the telephony.internal but so far they do not provide as much grained information as I would want.
I have been asking around on the net but so far I can't find this information.
You will not get very far I am afraid as the underlying file is attempting to interact with the baseband chip through an internal api that you will not get access to for an application.
Related
Is it possible to debug an app via the plugin (Google Assistant test) or can someone tell me how to do it via Android Studio. Normal apps can be debugged, but what about the integration of Google Assistant.
The current version must always be uploaded to the Play console, even though I'm only testing. In addition, the version number must always be changed. Is there an easier way?
About the app: I really just want to start an action with a shortcut.xml that is given a few parameters that are evaluated in the app. (Ok Google, set the clock in the kitchen to 3 o'clock, in myapp) Everything else is handled internally, so as simple as possible. No ad or anything. I can't get it. The examples are all too complex. Can anyone help me?
I am building an app which runs in the background and I want to display a short text but only when for example the user is checking images on Instagram. So I need to check if Instagram is in use and then put the message in some kind of if statement.
How do I check if a specific app is currently used in the foreground? I searched around but can only find old posts with codes that are not supported anymore.
I am new to building apps so can someone please explain me how to accomplish this?
I have few questions regarding development of desktop application and I can only access internet for first login where user will authenticate himself. I have an idea that I'll bring in the key used to encrypt videos from online server and save it to local db so key isn't in the code for anyone to inspect.
Is it a good method? As app will be running offline and I don't want anyone to access my videos.
I will have to decrypt one video and play it unless there is some method that decrypt and play on the fly like libmedia does it in android. I have no preference whether I have to develop it in Java or C#. Which language provides better obfuscation keeping in mind that I only need it for windows OS.
Thank you
It sounds like your are trying to develop a sort of light weight DRM solution - unfortunately, this is going to probably be lightweight in the protection it offers also.
For example, if you store the key in the DB it will still be relatively easy for someone to get to it using a regular DB viewing tool.
DRM is not really about making it impossible to copy content - more about making it hard enough to do that it is 'not worth it'.
Depending on how 'secret' or valuable your videos are your approach may be fine - i.e. you may make it enough work to find the key etc that uses won't bother. If your videos were regular studio produced content then they would probably not be happy with this level of protection.
If you do need stronger protection then regular DRM from MS, Adobe and Google etc is available through many of the standard video hosting providers (Brightcove, Ooyla, Kaltura etc) and the DRM they use will support offline playback, which I think is the requirement you have.
They will also all allow decryption and playback 'on the fly' - i.e. you don't have to decrypt the whole video before you play it back (in fact they would typically not do the whole video decryption first anyway as you would then have the whole content in clear stream making it easier to copy).
I have very old Siemens CX70 in working state and just don't want to throw it out. My idea is to use its math power and peripherals (GSM module, USB, Camera and screen) to build some simple applications for home use (multichannel termometer, timer and cheap security system - for examples).
I know I should use Java ME and IDE (I love Netbeans, for example). Can you tell me what I need more to start developing? I know Java well, I just need to make an environment to developing, debug and deploy. Mobile library documentation will be very helpful too.
Thanks.
There are so many online tutorials about this topic that the only right thing to do is to refer you to google.com
Search after "getting started with j2me".
However, there's something else you should know upfront before getting too excited.
The security model in JavaME will prevent you from doing much useful stuff, in relation to some of the things you mention.
Every time you try to access certain things in the phone, like e.g. the camera, or send SMS, or read/write a file on SD card, etc etc - the phone will show a popup "This app is trying to access camera. Allow this?". And the app will only continue after a manual click on Yes.
As you can imagine, this of course renders a lot of ideas useless.
In order to prevent these popups, you can sign your app with a certificate you buy from Thawte or Verisign. But as that'll cost you $300 a year, it's not the way most sparetime hobby developers chooses.
Personally, I found another way, but it requires you to use a phone from Sony Ericsson.
Because the old Sony Ericsson phones can be patched in order to remove the Java security. After doing this on one of my old phones, I've been having fun making apps like the ones you mention. For example, an app that keeps an eye on my home when we're out, by taking a picture every second. If it detects a difference in the picture, it sends me an MMS with the picture. :-)
I have searched a long time for patching options for other brands, but I just can't find anything useful. Nokia should supposedly also be patchable, but I just can't find anything useful about it.
So in short: If you'd like to make some sparetime hobby apps on a phone like that, you should either find a Sony Ericsson phone and patch it - or go dig up an old used Android device.
Good luck.
My problem is simple and I believe I am just missing something minor, but I can not figure out what it is.
I know how to use GraphicsEnvironment, GraphicsConfiguration, and GraphicsDevice. I know how to get all the showing devices etc., etc.. And I know how to display to a specific device.
The only thing I can't figure out is if the user's desktop is extended, duplicated, or showing to an individual monitor?
The GraphicsDevice is not necessarily equivalent to a hardware device, but to a 'display' that can be used by the Java application. So, when the user's desktop is duplicated or showing an individual monitor, even if there's a second monitor (hardware) connected or not, getScreenDevices (from GraphicsEnvironment) shows only one GraphicsDevice. Thus, I believe that you won't be able to identify these settings using this Java API.
Your solution probably will require JNI code. The project Lightweight Java Game Library has something like that, take a look at the Display class.