[Q] Centralized db in android app - Java for Android App Development

Hi,
I'm developing an android app.How to use online centralized database in my app.procedures for connecting to it.Thanks in advance

I don't get what you mean completely . If you want to build a WebApp for instance a newsreader you should use WebApp methods . You can start here :
http://developer.android.com/guide/webapps/index.html
Also if you want to use a database in your app like a dictationary you should use a SQlite database . Actually you can use more kinds of db but this kind I think is better. If the second is true this can help you a lot :
http://www.vogella.com/articles/AndroidSQLite/article.html

This is about databases: http://www.vogella.com/articles/AndroidSQLite/article.html
EDIT: Oh I am sorry. I did not see that torpedo mahammadi has already posted this link. (Nevertheless vogella's tutorials are always great. :good

My app is not an online app..I just need the DB to be online..Hw can i achieve that..

nachiappan22 said:
My app is not an online app..I just need the DB to be online..Hw can i achieve that..
Click to expand...
Click to collapse
The app is no online app, but the database is online? What does that mean?

nikwen said:
The app is no online app, but the database is online? What does that mean?
Click to expand...
Click to collapse
He meant that the users data will be stored in an online database and not on users device. So he can access that data anytime.
Sent from my Micromax A116 using xda premium

I have created my Db in phpMyadmin..How can my app be connected with it..any tutorials?

nachiappan22 said:
I have created my Db in phpMyadmin..How can my app be connected with it..any tutorials?
Click to expand...
Click to collapse
It's stupid way to give user direct access to DB

I'm not giving user any access to the db...app doesn't involve any changes to b made by the user.

My thought on this would be to do it this way:
Create a php page to handle http requests that would access your db and give back a response.
Use the app on the phone to send the http request, requesting what ever you have stored in the db and wait for the response.

i have a mdb file..i need to import it into phpmyadmin as an sql db.So i converted that mdb into an sql file using Bullzip.I get the following error.
Error
SQL query:
# Dump File
#
# Database is ported from MS Access
#--------------------------------------------------------
# Program Version 5.1.232
CREATE DATABASE IF NOT EXISTS `movedb` ;
MySQL said: Documentation
#1044 - Access denied for user 'b22_13129197'@'%' to database 'movedb'
Help me to rectify it.

Looks like the user you are using for mysql doesn't have the correct permissions.

Related

Is There Any Windows app to decompile APK files ?

Is There Any Windows app to decompile APK files ?
apktool, apkmanager.
I think just renaming the file extension from .apk to .zip will do it for you.
1. Wrong section to post this. There is a Q/A section for a reason
2. Depends on level of modifying you want done
a) Image editing (unzip/rezip)
b) Xml/smali editing (smali/baksmali/apktool/apkmanager)
c) Read "close to original" java code (dex2jar -> jd-gui)
i need to find ads code from a app and remove it
dadyal said:
i need to find ads code from a app and remove it
Click to expand...
Click to collapse
That's not really good for the developer considering quite often its his only source of mobile income and only motivation to keep improving the application.
Anyway, there is already an app that does so called Adfree i believe.
app is of my own website news feed but person who made this put a admob ads on the end of it and i need to repalce it with my own as i am going to upload it to market
ur chance do that almost 0%, forget it, get the original source code
ur questions tell us you are not pro coder, only waste ur time
i need a code example of ad mob ads

[WIP] visualADB for Windows

Hi Guys,
I am kinda bored (and I hope it is the right forum here), so I decided to learn c# and make a GUI for adb on windows.
actual state of what is actually working:
- it recognizes if the phone is plugged in
- you can see /
- you can change to a dir, but the file listing of the dir above doesn't disappear.
- you can remount the device as r,w
- nothing more...
TODO:
- fix bugs
- add "push" button to upload files to device
- logcat button to view logcat
- an easteregg, cuz I want to be funny....
Screenshot: http://www0.xup.in/exec/ximg.php?fid=18077557
or for people who get virus messages @ xup.in : http://i.imgur.com/NvgWy.jpg
This thread should be abount ideas you have, about what I could include to that.
it's pretty useless until now... but I like to share.
have fun with it...
just paste the exe into /platform-tools
Windows only, you need .NET Framework 4...
btw: source will be given, when it's stable and I don't have to shame for the code, cause until now it's full of bad comments
t0desicy said:
(and I hope it is the right forum here)
Click to expand...
Click to collapse
Not the right section .
So where should I post it?
t0desicy said:
So where should I post it?
Click to expand...
Click to collapse
Ask a moderator to move it to the development section
Sent from my HTC Wildfire S using Tapatalk
eoghan2t7 said:
Ask a moderator to move it to the development section
Sent from my HTC Wildfire S using Tapatalk
Click to expand...
Click to collapse
t0desicy said:
So where should I post it?
Click to expand...
Click to collapse
I asked a mod to move it for you... so now it's in the right section .
I asked a mod to move it for you... so now it's in the right section .
Click to expand...
Click to collapse
thank you so now, anyone can tell me some idead to what I could add to the software?
t0desicy said:
thank you so now, anyone can tell me some idead to what I could add to the software?
Click to expand...
Click to collapse
Install apps, flash things (e.g. recovery).
ESET NOD32 Antivirus
Access denied
Details:
Web page: http://www0.xup.in/exec/ximg.php?fid=18077557
Comment: Access to the web page was blocked by ESET NOD32 Antivirus. The web page is on the list of websites with potentially dangerous contents.
Is imgur.com too hard to find these days?
BombaUcigasa said:
ESET NOD32 Antivirus
Access denied
Details:
Web page: http://www0.xup.in/exec/ximg.php?fid=18077557
Comment: Access to the web page was blocked by ESET NOD32 Antivirus. The web page is on the list of websites with potentially dangerous contents.
Is imgur.com too hard to find these days?
Click to expand...
Click to collapse
http://i.imgur.com/NvgWy.jpg
sorry, never had problems with xup.in, using it since ages...

Need help with adding two android projects into one project

Hi I have 2 android projects in eclipse a subnet calculator and a data tester The problem is that they are in two different projects! I want to add the data tester one into the subnet calculator! The question is how do I do this?
I have tried almost everything I can think of!!
Please help!!
Thanks in advance!!
Rapsong11
That can be done only manually afaik. From where you want to move from one project to another you'll have manually create intents of fragment calls or whatever is needed. Copy-paste the needed classes to newly created packages etc, update your manifest, copy-paste layoutfiles etc etc. I know, quite some work but there is no automated process for this.
Zatta said:
That can be done only manually afaik. From where you want to move from one project to another you'll have manually create intents of fragment calls or whatever is needed. Copy-paste the needed classes to newly created packages etc, update your manifest, copy-paste layoutfiles etc etc. I know, quite some work but there is no automated process for this.
Click to expand...
Click to collapse
Thanks for the reply!! would you mind showing me how to do this? via team viewer?
please let me know
Rapsong11
rapsong11 said:
Thanks for the reply!! would you mind showing me how to do this? via team viewer?
please let me know
Rapsong11
Click to expand...
Click to collapse
He means copy the src of project1 to src of project2
res/ of project1 to res of project2
Donot overwrite
For files with same name copy the contents manually
Sent from my GT-S5302 using Tapatalk 2
rapsong11 said:
Thanks for the reply!! would you mind showing me how to do this? via team viewer?
please let me know
Rapsong11
Click to expand...
Click to collapse
I'm not in the situation I can do it. But also I don't want to do it and you shouldn't want to do that either.
I got everything over no errors and when you are at the main menu I have two buttons one that says subnet calculator and one that says network tester when you click the network tester button it works when you click the subnet calculator button the app crashes what am I doing wrong please let me know
Sent from my Nexus 4 using xda app-developers app
Nevermind I figured it out
Sent from my Nexus 4 using xda app-developers app
The best way to do this is to use maven projects instead standard android projects. Both projects can be children projects of superpom (maven parent project). Search for maven-android-plugins for more details.
Cheers
Sent from my SK17i using xda app-developers app

apk reverse engineering

Hello and congratulations for the forum.
I'm trying to recognize malware starting from static code android in particular in permissions.
When I try to decompile apps like WhatsApp unfortunately many strings are obscured, particularly getSystemService method arguments.
How can I do to make them readable?
thanks for your attention
How do you decompile?
Sent from my GT-S5360 using xda app-developers app
I use dex2jar to get source java code
It's illegal to do so
I am a researcher
How antivirus are developed without knowing virus signature?
We call it "Ethical hacking". Eg: SQL injection technique to assess security vulnerabilities of web app.
Sent from my GT-S5360 using xda app-developers app
there is not a way to decrypt string value in the source code please? Yes, this is for ethical hacking, of course
I want to catch whatsapp notification to analyze the text of the message in real time, for insert a routine I want to catch this event and I want decompile code
Franceso thought you would that little thanks button for supporting your views
Sent from my GT-S5360 using xda app-developers app
sure,
you can help me please?
This should be your answer:
dsgwords.blogspot.com/2013/03/android-runtime-class-loading.html?m=1#!/2013/03/android-runtime-class-loading.html
Also try decrypting input.jar in andriod services framework path
Sent from my GT-S5360 using xda app-developers app
practically to get the file. dex should I do
/ dx - dex - output = output.jar input.jar
and then use dex2jar and decompiler?
this way I can see all encrypted strings of WhatsApp?
Many thanks
This is what I wanted to do:
decompile WhatsApp
find the code snippet to send notification
before sending the notification to send the contents of the message to my program
and then send the notification normally
Do you think it possible?
When decompilo WhatsApp many strings are encoded in copdice source, this is my problem.
This in an example:
String[] arrayOfString = new String[2];
char[] arrayOfChar1 = "3&j&>;, =?&-` 3+z=><f]\027\003\027\[email protected]\013\036\034".toCharArray();
many many thanks
Good question. I have not tried decompile procedure. I wil refer my friend.
I suggest one thing. You compile a java piece of string code. Also a string array. Decompile and see. Then make apk. Decompile and see. You get difference then we see if we can apply any charcode standards like ascii.
Sent from my GT-S5360 using xda app-developers app
Please try below post friend
Did you try this:
http://androidorigin.blogspot.in/2011/02/dex-format-to-jar-format.html
Open Source
http://code.google.com/p/dex2jar/
http://code.google.com/p/smali/
and an example
http://code.google.com/p/smali/source/browse/examples/HelloWorld/HelloWorld.smali
Also I found string encrypters being used in java programs to defeat decompile or disassemble. Need to find out if whatsapp use any such algorithm like SHA. I leave it to you just research some more.
When I get time I will try for myself and let you know. Have official work thanks buddy.
(Mods please let me know instructions on posting outside urls or the rules pertaining to it.)
PS: Remember to use same java compiler version that used to compile whatsapp. After you get jar, you can check which version created edit.
To know go to:
jar file > Open with Winzip or WinRar (Any archiver Winrar preferred. Do not double click it will execute) -> META-INF directory -> MANIFEST.MF
You should see something like this
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_08-b03 (Sun Microsystems Inc.)
Hope that helps.
Use dex2jar to convert the APK into a standard JAR file and then JD-GUI to view the source code. However if the application was compiled with proguard obfuscation then you will have a very hard time to understand the code.

Can someone confirm that AdHell works on Android Pie?

Hi guys,
I just received the Android Pie update notification. Before I accept it I want to be sure that AdHell works with it.
Thanks
Yeah
Adhell3 working perfect
Yes, just make sure you have the latest version of it and you should be fine.
Using latest adhell3 from github, working perfect on pie.
Can anyone help me get adhell back working? I had to renew my key now its asking for elm key, how do I generate a new one?
NvWatts said:
Can anyone help me get adhell back working? I had to renew my key now its asking for elm key, how do I generate a new one?
Click to expand...
Click to collapse
Check the first post in this thread at reddit -
https://www.reddit.com/r/Adhell/comments/av97nk/ah3_v311_lives_on/
liamR said:
Check the first post in this thread at reddit -
https://www.reddit.com/r/Adhell/comments/av97nk/ah3_v311_lives_on/
Click to expand...
Click to collapse
I get error code 102
Check the license type and that Reddit post.
rhadoo_ds said:
Check the license type and that Reddit post.
Click to expand...
Click to collapse
Where can I get the XML file edit to change name bc apK editor didnt work for me?
NvWatts said:
Where can I get the XML file edit to change name bc apK editor didnt work for me?
Click to expand...
Click to collapse
You need APK Editor Pro. Use it to edit the package name (3,8,9 letters) line 6 in AndroidManifest.xml (XML File Edit). Don't forget to save the edited file and then generate new apk.
I have tried to update the adhell code from github ... and it messed up the entire build process ... the dev swithched to knox 3.3, and i guess that might cause my issue ..
having same issues either it gives me a 201 error even after multiple code recreations anddifferent versions. or it just closes and reasks for klm and we repeat tried creating own...still no go......any help....i had and forgot to just renew, so i accidently got rid of to recreate new...ooopps on my end and now i am here.......helllppp lol
I use apk easy tool for pc to decompile citizen v apk and modify the app name then compile and works great. I was having issues with apk editor pro on phone.
Just installed using this guide: https://is.gd/note9adhell
Pay attention that for Note 9, you need to edit the package name by editing AndroidManifest.xml, and not by using Basic Edit.
I used Basic Edit and it caused parse error.
So why do you guys all go through the process of compiling the app and all that other stuff when you can simply download the APK and install it.l, then enter your license key? I've been doing it that way for over 6 months, always worked perfectly. But today I downloaded the latest 3.1.1.290 and for some reason it won't accept my license key, it's always worked fine, I did start a thread about it and then found this so thought I'd post here too, see if anyone can help.
beta546 said:
So why do you guys all go through the process of compiling the app and all that other stuff when you can simply download the APK and install it.l, then enter your license key? I've been doing it that way for over 6 months, always worked perfectly. But today I downloaded the latest 3.1.1.290 and for some reason it won't accept my license key, it's always worked fine, I did start a thread about it and then found this so thought I'd post here too, see if anyone can help.
Click to expand...
Click to collapse
Probably because the dev doesn't recommend it and that's how other adblockers got black listed from Knox access. You don't even have to compile it.
You can use the app editor pro and edit the manifest.
Yours isn't working because you didn't modify probably....
I see quite a bit of misinformation in this and similar threads. Please keep in mind that AdHell3 is NOT supported on XDA. For official and up-to-date information about the AdHell3 project, please visit:
Main repo: https://gitlab.com/fusionjack/adhell3
Scripts for compiling: https://gitlab.com/fusionjack/adhell3-scripts
Get your EDU ELM key from: https://seap.samsung.com/license-keys/generate/edu
Official Support Discord Channel: https://discord.gg/hfreZum
Dependable(?) precompiled APKs: https://www.mediafire.com/folder/sb37c6gmhqgbn

Categories

Resources