Skip to content

Tag: android

Convert .Java file to .Smali file

I reverse-engineered an Android application with APKTool and got .Smali files as source code output. I converted the .Smali files with an application to .Java files. I was able to successfully edit the .Java files but now I want to convert them back to .Smali so I can recompile the application with the new .S…

Convert RGB to HSV in android

I want to get the ARGB values from a pixel and convert to HSV and then set the pixel with the new values. I don’t fully understand how to do that. Can anyone help me? Answer Let’s say you have a Bitmap object and x and y co-ordinates. You can get the color from the bitmap as a 32-bit value

Check internet status from the main activity

I’m new student on android development, so I don’t have the enough experience for coding, so I need the help from you… I create a java class on android studio to check if there is an internet connection or not : So, I have two questions : 1- is this the right code or I’m missing someth…