App Development, add web images through txt file - Android Q&A, Help & Troubleshooting

Hi
i want to include web images in my app but i dont want to have the url in the sourcecode, i want a txt file that is hosted on the server to tell the app where to find the images. Is that possible?

Yes, of couse... it's possible. There are a lot of ways to do but one that I'm thinking is:
The text file can be a .properties file of java in wich you set the ursl as follows:
url1=example.com/someimage1.png
url2=example.com/someimage2.png
url3=example.com/someimage3.png
...
And then you only have to download the file on the app launch and read the key value pairs using the Properties class of Java SE.

thanks a lot. i am still pretty much a noob in app development, i hope i am able to do that. =)

Related

[Q/Help] How do I mod sms handling?

I got a problem with the way sms's are handled by HTC Sense(Its the HTC Desire).
I receive a sms from work on a daily basis, and thy contain a "/" (Slash as in "WorkPlaceName A/S") in the "from/sender" field instead of a phone number.
The problem is that the phone receives it, but discards it again because of the slash.
All sense based ROM's I've tried have all had this problem, but the non-sense froyo(2.2) ROM's are fine.
Now I want to change the behavior my self, but I don't know where to look.
I was thinking the kernel or somewhere in the ROM?
But I'm not sure.
I'll appreciate any help.
Anyone can help on this?
Does anyone know how would know?
Have you tried using Handcent instead of the HTC app? Since HTC's apps are not open source, it might not be easy to modify them although you could try 'APK Manager'.
Also, I recommend reading this if you want to understand how apps interact with the OS in Android - http://developer.android.com/guide/topics/fundamentals.html
gnarlyc said:
Have you tried using Handcent instead of the HTC app? Since HTC's apps are not open source, it might not be easy to modify them although you could try 'APK Manager'.
Also, I recommend reading this if you want to understand how apps interact with the OS in Android - http://developer.android.com/guide/topics/fundamentals.html
Click to expand...
Click to collapse
Yes i did try Handcent, but as far as I can see the problem runs deeper then that.
I tried almost all sms apps on the marked, and the sms's keeps getting deleted.
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
hexskrew said:
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
Click to expand...
Click to collapse
APK Manager?
hexskrew said:
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
Click to expand...
Click to collapse
Thanks I'll try that.
But do you know the name of the HTC SMS apk?
I can only find MMS and mail.
Anyway I'll have a look at the MMS apk.

Android-How to direct download a file

Hello,
i am using APP Inventor, but it put my question as general from Android.
How can i directly download a file from WEB without the browser try to open it.
I i put a url like: privatesite.blablabla/image.jpg
he will put the image in the browser, because browser can load the file and show it on screen, but i want to download it without reading it.
I need that to put inside App inventor, but if it's possible to do it in HTML or other, that's ok, i think i can make app inventor run an external application.
Thank a lot
TiagoLoboDias said:
Hello,
i am using APP Inventor, but it put my question as general from Android.
How can i directly download a file from WEB without the browser try to open it.
I i put a url like: privatesite.blablabla/image.jpg
he will put the image in the browser, because browser can load the file and show it on screen, but i want to download it without reading it.
I need that to put inside App inventor, but if it's possible to do it in HTML or other, that's ok, i think i can make app inventor run an external application.
Thank a lot
Click to expand...
Click to collapse
Have you tried other browsers for example opera mobile?
Programmatically
TiagoLoboDias said:
Hello,
i am using APP Inventor, but it put my question as general from Android.
How can i directly download a file from WEB without the browser try to open it.
I i put a url like: privatesite.blablabla/image.jpg
he will put the image in the browser, because browser can load the file and show it on screen, but i want to download it without reading it.
I need that to put inside App inventor, but if it's possible to do it in HTML or other, that's ok, i think i can make app inventor run an external application.
Thank a lot
Click to expand...
Click to collapse
Well, you can do it programmatically, so maybe an app can do this, with a page in which you just put the url and it gives you the possibility to retrieve the file in your filesystem.
TiagoLoboDias said:
Hello,
...but it put my question as general from Android.
How can i directly download a file from WEB without the browser try to open it.
Click to expand...
Click to collapse
You might find a good way to solve it using cURL, which also has been ported to Android.

Need HELP Decompile nd Rebuilt an APK (chm reader) with an inbuilt .chm file (e-book)

Hello xda users
I NEED SOME HELP!!
i have an android app called "chm reader.apk" (attached) it is from the android market for free. it is a simple software which can read ".chm" files.
i used "APK Easy Manager" to decompile it. I have a ".chm" file on my computer which is actually an E-book. i want to rebuild the chm reader apk packing that file with it so that whenever a user installs the rebuild-ed chm reader on there android phones. he should be able to view that book by default.
can anyone plz help me to integarte it. anywhere. maybe as a help file anything. just want it to get integrated with the chm reader.
i wil be realy obliged if someone wud help. it wont be a difficult task for all the professional developers out there.
i have attached the chm reader with the post. it would be much more easy if someone just decompile it and integrate put a sample .chm file into the package and upload it. i then just have to download that file, decompile it. replace my own .chm file with the sample.chm and rebuild!
thanks.
I don't think it would be possible. Probably you're gonna have to call another activity and build another xml file. But the main thing is you can't view the source code to add another class.
Sent from my GT-S5360 using Tapatalk 2
anasdcool71 said:
I don't think it would be possible. Probably you're gonna have to call another activity and build another xml file. But the main thing is you can't view the source code to add another class.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
ok. thanks.
is there any way i can just pack that e-book with the apk. so that it wud act just like an add-on automaticaly copied to the user sd-card during installation? later the user can open that file via chm reader manually.

[Q] Quick way to register new file types?

Hi there!
Have searched all over and found zilch about NON PROGRAMATICALLY adding file types to Android that actually works.
Does anybody know about an app that can do it?
The most logical to me was that File Expert or ES version could do it, but couldn't find it. And some links said that Astros could do it, but haven't found the feature in their latest version at least.
I just want to be able to click on the file and have it open the app without having to open the app first.
For example if I have an attached file in another apps storage space (outside normal file space) I can't open the main app first. And I don't want to have to download/import the file. Takes too long.
Thanks!
BTW-The app in question is SimpleMind, which unfortunately haven't had the good grace to register their file type for their own creation..

Extract files from an encrypted app

Hi guys
_I have a problem with an app called
"Aplus centre"
_however, this app contains some pdf files that I really need
_those pdfs are downloaded every time i open the app and deleted after closing it
_I need help to get those pdf as files so i can print them
_app name: "Aplus centre"
_app link on play store: play.google.com/store/apps/details?id=application.acenter.alisaleh.gsoftcompany
hope an expert sees my question
peace
Use file explorer
Open the app so that the PDF files are downloaded. Then keep the app open, don't close it.
Go to your Android file explorer and go to Android>data.
In this look for the app name. Must be something like com. followed by app name or app developer or something related. Check in that folder.

Categories

Resources