Detect day changed - Android Software Development

I want to create a widget which display a text message depending on the date.My problem is that i do not know how to detect when the system changes date.Any help?

stratus said:
I want to create a widget which display a text message depending on the date.My problem is that i do not know how to detect when the system changes date.Any help?
Click to expand...
Click to collapse
Do you try to use Java Calendar class or Gregorian Calendar class or System.currentTimeinMillis() function

I think to try these classes but i don not want to check every minute to see if system change the date.I am thinking of using the ACTION_DATE_CHANGED but i do not have any idea how to use it.

stratus said:
I think to try these classes but i don not want to check every minute to see if system change the date.I am thinking of using the ACTION_DATE_CHANGED but i do not have any idea how to use it.
Click to expand...
Click to collapse
Ok, on that way you implement a Broadcast Receiver to receive the Action

Related

Now that we have GPS, can someone help me to...

Hey, Everyone,
W/ the advent of havin' GPS on our Titans, I was wonderin' if anyone knew of any anti-theft software. I already have Sprite Terminator, but if the tele's hard-reset, that's purrty much k'poot, y'know? So, I need somethin' that req's a pwd to be hard-reset, but would also allow me to send SMS to the tele' to send its GPS co-ord's, lock device, and/or wipe storage. Sprite Terminator lets me do all, but pwd-protect hard-resets. Also, I use GPS Test v.1.04 to effectively activate GPS (COM4, 4800 Baud, etc.) upon startup, but it opens maximized, and it can just be exited to disable GPS. Does anyone know how to:
1. Open GPS Test @ startup min'd, and
2. Hide GPS Test from task managers (by this I mean memory.exe and QuickMenu (v.2.7, & my task manager of choice)? (I also use CeleTask, so any help w/ hiding GPS Test in "Running Tasks", and Sprite Terminator (SGStartup.exe) from "Running Processes", would be GREATLY appreciated.
Thanks, and 'hope the RE:s to this post help everyone.
kain144000 said:
1. Open GPS Test @ startup [minimized]...
Click to expand...
Click to collapse
Upon noticing I hadn't gotten any RE:'s yet, I'd realized I could probably just run a MortScript (although, 'not too familiar w/ it) for this operation, right?
::bump::
C'mon, is there really no one interested in this? Wouldn't y'wanna find your tele' if lost, or worse, stolen? ::gasp::
i would love some software like this as well...
much easier then calling your phone when you lose it
and if you ever get in an avalanche or something people can find you easier.
have u tried astrogpslauncher??? its a small proggy...and u can make shortcuts to startup menu...im gonna try and will report back
rbadh91 said:
have u tried astrogpslauncher??? its a small proggy...and u can make shortcuts to startup menu...im gonna try and will report back
Click to expand...
Click to collapse
I don't think you read the thread, AstroGPSLauncher cannot be used to access the 6800 remotely. It is a great prog, but only for opening the GPS and keeping it open while you are looking out. It does not transmit a signal that can be tracked.
serfboreds said:
I don't think you read the thread, AstroGPSLauncher cannot be used to access the 6800 remotely. It is a great prog, but only for opening the GPS and keeping it open while you are looking out. It does not transmit a signal that can be tracked.
Click to expand...
Click to collapse
i know AstroGPSLauncher CANNOT be used remotely...but if it enables the GPS...then the Terminator can send the location etc....btw i still didnt get the terminator trial email so im still waiting for it.
i brought AstroGPSLauncher into the picture because...
Its small - minimal memory/CPU usage
Its always minimized - It always launches in the background...does not let the user know its running
Shortcuts - A user can create a path/shortcut that it will launch itself plus anything else; ie: terminator
True about AstroGPS, I hadn't heard of Terminator; will test. Thanks rbadh91.
tried it
serfboreds said:
True about AstroGPS, I hadn't heard of Terminator; will test. Thanks rbadh91.
Click to expand...
Click to collapse
ok it wont work...the phone would technically freeze every time it went into standby when running astrogpslauncher.
unless the terminator program can launch an app when you send a txt msg like it deletes everything upon recieving a certain txt msg
if possible we could send a txt msg and it would launch astrogps...as we all know astrogpslauncher is a small app that runs in the background and not visible to most task managers and does not put strain on the cpu or memory so less chances of phone freezing
it would be doable IF and only IF the program is capable of launching another program
::sigh:: Perhaps you're all missing my point of this thread. I already know that the GPS doesn't stay on while the device is suspended, and initiating the GPS isn't the prob. The prob is that Sprite Terminator doesn't have a hard reset pwd, so you can just hard reset the phone upon finding/stealing it, and then it can't be traced. I initiate my GPS upon startup by copying the GPSTest.lnk to /Windows/StartUp, so my GPS is actually always on, running in the background as long as the device is awake. The prob w/ this is that since I need the GPS initiated in order to track the phone, what am I to do if a thief simply closes the program, in other words, turning off the GPS? That's why I'd like to hide it from task managers. Also, the Sprite Terminator process can be killed (which actually intercepts txts formatted a certain way). In other words, if an idiot steals my tele', chances are I can trace it so I can &(#^in' KILL 'EM for the audacity of disturbing my peace, but if another 933k comes across the tele', he'd just say, "Oh, let me kill this SGStartup.exe process...nah, I'd better just hard reset the phone to be safe," y'dig?
tie the phone to your arm so they can't steal it and you can't lose it.
No, really, though. My thoughts are cooking a gps launching utility into a ROM with it set to auto run (much like astrogps, minimized/invisible). Even if they hard reset it should still have that program on it, set to autorun on startup. So unless they actually KNOW what they're doing, you should be okay.
What? you have gps on the titan?? internally? how?
Psionfenix said:
tie the phone to your arm so they can't steal it and you can't lose it.
No, really, though. My thoughts are cooking a gps launching utility into a ROM with it set to auto run (much like astrogps, minimized/invisible). Even if they hard reset it should still have that program on it, set to autorun on startup. So unless they actually KNOW what they're doing, you should be okay.
Click to expand...
Click to collapse
i agree 100% with that theory...well i've been cooking roms lately and i am currently testing this hard reset thing...so taking what both of you (kain144000 & Psionfenix) are saying and putting it into one solution.
so if we cook the gpslink which kain144000 said into the rom, so whenever someone did a hard reset it would still be there...you can rename the process so it shows as "ppc.exe" or "service.exe" insted of "GPS.EXE"
Now that we have solved the issue of having the GPS running there when we hardreset; the next part is to track it; as for that part im still waiting for the terminator trial so i can cook that into the rom and test it
the terminator trial can be download on their website. if you go to support then terminator theres a download link. for some reason they don't sent the emails. i'm going to try to use the gps test
There was some software I used on the Treo 650 that would intercept a text message containing a specific string and do a variety of different things based on how it was configured. It could lock the device, wipe it, wipe the SD card, and so on.
A perfect program would do something similar, except have the ability to launch AstroGPSLauncher, and some kind of other program like Franson BuddyTracker which will broadcast the current location on a website.
There's a program or whatever depending on what service you have, family finder or something like that, so you can use that to track them.
Get close to where they are, call them up and watch them answer the phone, then bust their skull in for stealing.
For GSM Phones, Not exactly a GPS based system.
http://www.bak2u.com/phonebak.php
http://free.3dtracking.net/home.aspx
http://www.wimp-software.co.uk/
http://www.mologogo.com/
Just a few available...Some of those use SMS to send location secretly other are simple friend finders.
But you know if you should ever have your phone stolen your carrier can track it immediatly and alert authorities even without GPS enabled...
Unless you plan on confronting the theif yourself (not really wise) your better off going that route.
But this might be good if you lost your phone and don't remember where....
Asphyx said:
http://www.bak2u.com/phonebak.php
Click to expand...
Click to collapse
from what i see thats only for GSM phones and it only uses SIM card to figure out its lost or stolen
Try the 3d tracking link...
Guess what I found...
http://www.wimp-software.co.uk/
With mobile phone crime an ever increasing problem, W.I.M.P. offers an advanced phone tracking security system. In the event of your phone being lost or stolen, you can simply send a specially formated SMS text message to the phone and the W.I.M.P software will silently intercept it. W.I.M.P. will then send back a message containing the phone's GPS location in a format which can be entered into any common mapping application.
Click to expand...
Click to collapse
The only question is whether or not we can get the internal GPS turned on when that text message is intercepted. I just sent off an email to their support email:
The Mogul has internal GPS which is not active all the time, but has
to be turned on. Currently this is done automatically by certain
programs like Google Maps or Live Search when the GPS option is
selected, but other programs like TomTom or iGuidance do not turn the
GPS on automatically and need to use a launcher like AstroGPSLauncher.
Is WIMP able to turn on the GPS like the other programs or, if not,
can the launcher be executed when the special text message is
intercepted?
Click to expand...
Click to collapse
Will post back when I receive a reply.

Latest PhoneAlarm beta gives email notification for emails

yup..that's correct, I have my little notification LED flashing when I have an email now..
you need PhoneAlarm (which I simple cannot live without and is ALWAYS the very first thing I install on my device)
so..I'm sure this tweak will be appearing in cooked roms soon
Hooooray for Penguin (the developer) for jumping on this!
twisted-pixel said:
yup..that's correct, I have my little notification LED flashing when I have an email now..
you need PhoneAlarm (which I simple cannot live without and is ALWAYS the very first thing I install on my device)
so..I'm sure this tweak will be appearing in cooked roms soon
Click to expand...
Click to collapse
How does this integrate with the HTC Sense user interface?
thegios said:
How does this integrate with the HTC Sense user interface?
Click to expand...
Click to collapse
you have to run it in Host mode
I don't use Sense, so can't say how well it works though.
twisted-pixel said:
you have to run it in Host mode
I don't use Sense, so can't say how well it works though.
Click to expand...
Click to collapse
Host mode works great. To further enhance this, there is now a tweak on his forum to allow you to replace the network operators name with the current profile. Clicking on this will launch PA Host.
QUESTION:
Have you had to set "use broker" for alarms to get the email notification to work. Without this option set, i only get the notification when i wake up the device. I'm guessing its due to using a custom rom (pandora 1.3). Using the broker option does solve the issue.
twisted-pixel said:
you have to run it in Host mode
Click to expand...
Click to collapse
is this an option of the application?
thegios said:
is this an option of the application?
Click to expand...
Click to collapse
more like a stand alone way of running the app
thegios said:
is this an option of the application?
Click to expand...
Click to collapse
yes. Host mode is used when you do not have the today screen active - ie when running manila. Host mode will be enabled by default on the HD2 and an icon will appear in the top bar. This can be hidden and a shortcut used to open phonealarm if you prefer.
Its a great app with many options including data counter, call costs, automatic profile changes etc etc
ardsar said:
yes. Host mode is used when you do not have the today screen active - ie when running manila. Host mode will be enabled by default on the HD2 and an icon will appear in the top bar. This can be hidden and a shortcut used to open phonealarm if you prefer.
Its a great app with many options including data counter, call costs, automatic profile changes etc etc
Click to expand...
Click to collapse
Thanks, one more: will it work INSTEAD OF the WM alarms function or will it have it's own handler?
I mean: if I set an alarms in this app, will it be set also in the WM alarms or does the app handle alarms in a completely different way (and this latter case, should I disable WM default alarms?)
I was very interested in this app until I saw the price. Why is so much stuff so expensive for windows phones? I had the iphone before and hardly had to pay for anything I wanted, and if I did it would be less then £1.00
snerkler said:
I was very interested in this app until I saw the price. Why is so much stuff so expensive for windows phones? I had the iphone before and hardly had to pay for anything I wanted, and if I did it would be less then £1.00
Click to expand...
Click to collapse
then go back to iphone...
thegios said:
then go back to iphone...
Click to expand...
Click to collapse
I wasn't dissing the HD2, it was just a genuine question as to why everything costs so much on windows phones as I don't understand? If one platform can give so much for free, or very cheap why not another? Is it people trying to cash in, or is it down to something like the costs to develop the programs?
snerkler said:
I wasn't dissing the HD2, it was just a genuine question as to why everything costs so much on windows phones as I don't understand? If one platform can give so much for free, or very cheap why not another? Is it people trying to cash in, or is it down to something like the costs to develop the programs?
Click to expand...
Click to collapse
my guess: iphone apps are an hipe now so there are a lot more ppl downloading apps from apple store rather then wm apps, so developers can make more money by quantity rather than price...
In addition apple store cuts down a lot advertising costs as all iphone apps are in one single place, so developer does not need an extra effort (read: money) to advertise his app on too many websites/forums/etc)
thegios said:
my guess: iphone apps are an hipe now so there are a lot more ppl downloading apps from apple store rather then wm apps, so developers can make more money by quantity rather than price...
In addition apple store cuts down a lot advertising costs as all iphone apps are in one single place, so developer does not need an extra effort (read: money) to advertise his app on too many websites/forums/etc)
Click to expand...
Click to collapse
Ok, that makes sense. If that is the case then having a dedicated 'app' store should help bring the costs down. One day hopefully
thegios said:
Thanks, one more: will it work INSTEAD OF the WM alarms function or will it have it's own handler?
I mean: if I set an alarms in this app, will it be set also in the WM alarms or does the app handle alarms in a completely different way (and this latter case, should I disable WM default alarms?)
Click to expand...
Click to collapse
It is totally customisable. For instance you can select whether you want phonealarm to control email, sms, mms, im, missed calls etc notifcations or leave it to WM. Also it gives you the ability to set repeat alarms, again completely customisable for each alert. The alarm function is not tied to WM and therefore resolves many issues that others have faced.
There is a trial that can be downloaded - fully working for 14 days. Suggest you give it a test drive. It will take some time to become familiar with the many options. There are skins that can be used to make it look more flash - all the info is on the forum. The support from Bruce is excellent. I had an issue this morning with the latest beta and within 1 hour i had a fix for it!.
ardsar said:
It is totally customisable. For instance you can select whether you want phonealarm to control email, sms, mms, im, missed calls etc notifcations or leave it to WM. Also it gives you the ability to set repeat alarms, again completely customisable for each alert. The alarm function is not tied to WM and therefore resolves many issues that others have faced.
There is a trial that can be downloaded - fully working for 14 days. Suggest you give it a test drive. It will take some time to become familiar with the many options. There are skins that can be used to make it look more flash - all the info is on the forum. The support from Bruce is excellent. I had an issue this morning with the latest beta and within 1 hour i had a fix for it!.
Click to expand...
Click to collapse
I've read on a couple of forums that latest versions crash HD2: is this correct?
snerkler said:
Ok, that makes sense. If that is the case then having a dedicated 'app' store should help bring the costs down. One day hopefully
Click to expand...
Click to collapse
there is, but is simply sucks...
try OpnMarket
http://www.freewarepocketpc.net/ppc-download-opnmarket.html
similar to apple store for only freeware apps
For those who are interested in similar product, can try PhoneWeaver from SBSH or Phone Suite (or something like that) from SPB..
thegios said:
I've read on a couple of forums that latest versions crash HD2: is this correct?
Click to expand...
Click to collapse
I've never had any issues on my HD2.
Phone weaver doesn't have as many functions like call costs, data counter etc. i also found the profile options to be more limiting. Phonealarm gives u more for your money. However this is my opinion and others will have different views. try them and see ....
ardsar said:
...The alarm function is not tied to WM and therefore resolves many issues that others have faced.
Click to expand...
Click to collapse
Does this mean that if I set an alarm with PhoneAlarm at lets'say 8:30 on the manila main page the alarms box (on the right of to the date box, just below the clock/weather box) will display OFF instead of 8:30?

[Q] Problems making a 'Tasker' profile launch/activate?

Decided to try this app out due to reports of it being able to help battery life in android by controlling various functions of the hd2.
I'm trying out a simple test profile as described on a link I found via google, which is simply to enable wifi when the browser is launched.
I've set up the profile, the contexts and actions but cannot get them to work and I'm not sure why.
For instance, when I press the test button on the tasks screen, I get a message appearing to say "Wifi on" as intended, a vibrate, and when I later check in wifi settings it says it's scanning for a network so has clearly been enabled. That's great, but then when I click on Apply and close the Tasker app, nothing happens when I launch my browser.
Likewise I set one up just as a test for bluetooth, a message, and a vibrate to come on when I launch the camera. Again, when I press 'Test' on the action screen for this profile it all works fine, but when I try it for real by opening the camera app, nothing happens.
I'm assuming I've missed out one obvious step somewhere but for the life of me I can't see what, even though it must be staring right at me. I've set a message up as the first action in both cases so it's not just that they can't connect to wifi/bt etc.
Can someone help point me at what I'm doing wrong, or haven't done please? I hope this is in the right sub forum as well - apologies if not.
Many thanks
Are you talking about WM? If yes, you are in the wrong sub forum
Probably best to post the profile, the contexts and actions.
Tasker runs just fine on my HD2, so I'm guessing there is a problem with the script.
No it's Android, don't even know if there is a wm version!
KPN - Can I just export the scripts or something? Can't see a setting for that (sorry!) just an import option for profiles. Or do I need to install some screen grab app and just show the screens?
I just know this is going to turn out embarrassing when I get the solution!
I've tried a few different profiles now though, even one that does nothing except pop a message up when I open a browser. Same thing - works fine when I press the test button on the tasks screen, but does nothing outside the app itself.
KPN is my network provider
as described on a link I found via google
Click to expand...
Click to collapse
maybe post the link?
otaku888 - Sorry, I was distracted by my mrs while I wrote that! Duh.
The first one I tried was via a link to the Tasker website where it describes the following:
Example Profile
Contexts:
(Application) Browser
(Time) 9:00 - 17:00
Enter Task:
(Setting) WiFi On
Flash: "Happy Browsing"
Exit Task:
Flash "Goodbye"
When the application Browser is started betweeen 9:00 and 17:00 WiFi is automatically enabled and "Happy Browsing" flashes up briefly.
Click to expand...
Click to collapse
Now I tried that, and have since tried even simpler ones but no joy other than with the test button.
I see I can download ready made profiles from the app itself, so I might get and test one to see if A) they work for me and B) they can highlight what is wrong with my ones.
Cheers!
All sorted now, thanks for the assistance.
Cret said:
All sorted now, thanks for the assistance.
Click to expand...
Click to collapse
you managed to get it working?
I have the same problems with application contexts - no good (on desire hd)

EPG (electronic program guide for TV) App

Hello,
I am developping an application for EPG, but I have a big problem.
The application is very slow cause the construction of the Fragment view after commit() it takes a lot of time.
Operations:
- download of the xml file from an URL
- parsing all data
- saving data into a local db
- reading data to build the fragment view
The fragment has the following layout:
- 2 ScrollViews (1 horizontal and 1 vertical)
- 1 LinearLayout Vertical
- 1 LinearLayout Horizontal for every channel
- 1 or more inflated RelativeLayouts for every Program
- TextViews for program details (title, hour, rating....)
Here an image to explain the sctructure:
s22.postimg.org/v5buk76q9/EPG_Layout.png
All this make the app not usable and it crashes.
Does anyone have a solution for this?
THank you very much
Download and save your file in another thread or use AsyncTask and update local version. Display only the local version in your View.
Regards
EmptinessFiller said:
Download and save your file in another thread or use AsyncTask and update local version. Display only the local version in your View.
Regards
Click to expand...
Click to collapse
Thank you. The problem is in the creation of the view. Not in the downloading... but what do you mean with update local version and display only local version? I'm using a local database where I store parsed data.
sheikko said:
Thank you. The problem is in the creation of the view. Not in the downloading... but what do you mean with update local version and display only local version? I'm using a local database where I store parsed data.
Click to expand...
Click to collapse
He means that you show placeholders on first start, and begin to download the images with an AsyncTask or a worker thread, make sure to read this guide on processes and threads, especially the Threads section!
You place your downloaded images somewhere on the device in your database and use those whenever they are available on future runs of your app. That way you don't need an internet connection everytime.
SimplicityApks said:
He means that you show placeholders on first start, and begin to download the images with an ..., especially the Threads section!
You place your downloaded images somewhere on the device in your database and use those whenever they are available on future runs of your app. That way you don't need an internet connection everytime.
Click to expand...
Click to collapse
I'm downloading the entire programmation for 8 days and I'm saving it in the db. This work takes about 1:30 minute, but only the first time I run the app after the installation. To have the view of the EPG working I have to wait about 30 seconds, and this occur every time I quit to app or I modify some parameters for example the Favorite Channels.
Do you think your solution can help me?
What do you exactly do, when you have to build your view content? Can you store information in local fields (RAM of your phone) so that you do not have to reload them from your db each time?
How big are your pictures?
LG
sheikko said:
I'm downloading the entire programmation for 8 days and I'm saving it in the db. This work takes about 1:30 minute, but only the first time I run the app after the installation. To have the view of the EPG working I have to wait about 30 seconds, and this occur every time I quit to app or I modify some parameters for example the Favorite Channels.
Do you think your solution can help me?
Click to expand...
Click to collapse
I don't know what you're downloading here and wether you own the server counterpart or not, but at the first glance that is waaaayyy too much data you are using here...
You need to modifiy or restrict the amount of data you download from that server, if you can modify it there (If you use images crop them down in there already) it would be best, otherwise you might want to mirror it on your own server.
And what's your app showing when no data is available? You can still show the base navigation and use ProgressBars to indicate you are loading...
SimplicityApks said:
I don't know what you're downloading here and wether you own the server counterpart or not, but at the first glance that is waaaayyy too much data you are using here...
You need to modifiy or restrict the amount of data you download from that server, if you can modify it there (If you use images crop them down in there already) it would be best, otherwise you might want to mirror it on your own server.
And what's your app showing when no data is available? You can still show the base navigation and use ProgressBars to indicate you are loading...
Click to expand...
Click to collapse
Thank you,
To improve performance I saved icons (channels, rating) locally in drawable resources and I download only text info. But because the are 8 days of tv scheduling and a lot of channels this download take a lot of time.
I can't modify o restrict the amount of data, but i can select how data I can download (i.e. 3 days....) but I have to download all.
Also when I modify (add/remove) favorite channels I have to wait about 10 seconds and this is frustrating.
Maybe the problem is that I'm working directly on the database. I have to work on some layers above do DB or there is another solution?
Sorry but I'm new to Android
Thank you
sheikko said:
Thank you,
To improve performance I saved icons (channels, rating) locally in drawable resources and I download only text info. But because the are 8 days of tv scheduling and a lot of channels this download take a lot of time.
I can't modify o restrict the amount of data, but i can select how data I can download (i.e. 3 days....) but I have to download all.
Also when I modify (add/remove) favorite channels I have to wait about 10 seconds and this is frustrating.
Maybe the problem is that I'm working directly on the database. I have to work on some layers above do DB or there is another solution?
Sorry but I'm new to Android
Thank you
Click to expand...
Click to collapse
And I'm new to EPG xD. Do you have to download all the channels or can pick e.g. just the favorites? And what is the size of your local db on the device?
Well then the only thing I could tell that either you have a serious performance bug in your code or you need to find a way to get less data or load it faster. I don't know if mirroring it on your own server is possible but there might be some free servers providing it.
SimplicityApks said:
And I'm new to EPG xD. Do you have to download all the channels or can pick e.g. just the favorites? And what is the size of your local db on the device?
Well then the only thing I could tell that either you have a serious performance bug in your code or you need to find a way to get less data or load it faster. I don't know if mirroring it on your own server is possible but there might be some free servers providing it.
Click to expand...
Click to collapse
I can pick only some days and I can select wich days to download.
Now I'm downloading only 3 days and the size of the db is about 4 MB
May be I have a bug
How I can get them faster?
Can't mirror or move content.
thank you
sheikko said:
I can pick only some days and I can select wich days to download.
Now I'm downloading only 3 days and the size of the db is about 4 MB
May be I have a bug
How I can get them faster?
Can't mirror or move content.
thank you
Click to expand...
Click to collapse
4megs seems to be alright on the first look... Maybe you really have a bug or you are loading it on the UI Thread. You need to use asynchronous loading or the db is too slow. Maybe disable any loading in the app and see if you get any improvements, if you don't, you have a bug in your layout/app

[Q] Editing an app

Hello,
I'm editing an app using APKGUI, mostly to modify the look to conform more to holo style. I would, however, like to modify it a little. It is a messaging app and i want to put pictures of those who sent the message next to the message (line in hangouts) but I can't get it to work by editing the XML. Is there any way to do this through APKGUI modifications or not?
Thanks.
Nickcu13 said:
Hello,
I'm editing an app using APKGUI, mostly to modify the look to conform more to holo style. I would, however, like to modify it a little. It is a messaging app and i want to put pictures of those who sent the message next to the message (line in hangouts) but I can't get it to work by editing the XML. Is there any way to do this through APKGUI modifications or not?
Thanks.
Click to expand...
Click to collapse
depends on the app but I would suspect not as you would need code to resolve from a content provider to then populate the item (ImageView) in the row. So that would be in the adapter code powering the listView in the app
deanwray said:
depends on the app but I would suspect not as you would need code to resolve from a content provider to then populate the item (ImageView) in the row. So that would be in the adapter code powering the listView in the app
Click to expand...
Click to collapse
is there any way to get into the code?
Nickcu13 said:
is there any way to get into the code?
Click to expand...
Click to collapse
yeah if it's not too obfuscated when decompiled and you know how to query a content provider and load images, maybe not doing said actions on the ui thread but on another thread.. use smart messenger instead when I'm done you will be able to create a UI to your own needs </shamelessplug>
deanwray said:
yeah if it's not too obfuscated when decompiled and you know how to query a content provider and load images, maybe not doing said actions on the ui thread but on another thread.. use smart messenger instead when I'm done you will be able to create a UI to your own needs </shamelessplug>
Click to expand...
Click to collapse
basically all i need to do is get to the coding of one section where the profile image is displayed, and copy the query into the new section. but i don't know how to do that or where to find it in the decompiled part. It's not a normal messaging app, it's more of a people discovery app with messaging haha.
Nickcu13 said:
basically all i need to do is get to the coding of one section where the profile image is displayed, and copy the query into the new section. but i don't know how to do that or where to find it in the decompiled part. It's not a normal messaging app, it's more of a people discovery app with messaging haha.
Click to expand...
Click to collapse
it is not really a copy paste and work job Or that would be like, 0.0001% probability of working
deanwray said:
it is not really a copy paste and work job Or that would be like, 0.0001% probability of working
Click to expand...
Click to collapse
and why is that?
Nickcu13 said:
and why is that?
Click to expand...
Click to collapse
cause you would possibly need the following, get the contact id from the row from xxx variable/data, construct the now unique uri to pass to a content resolver to lookup the image uri and or path, then get an instance of the row imageView (or whatever view was going to hold the image) then pass that to a loader/async/new thread along with the uri for that then to load in the background, then check that when loaded the imageView instance is still the same (due to the way android recycles views) before setting it back on the main ui thread.
So a recap on the variable/s
imageView
contact id source (of that row)
the instance and data tracking in a thread
so these things are not something you can find in one app or even from the same app and "paste" into another section.
hope that, well, makes enough sense to know it's not a copy paste thing
deanwray said:
cause you would possibly need the following, get the contact id from the row from xxx variable/data, construct the now unique uri to pass to a content resolver to lookup the image uri and or path, then get an instance of the row imageView (or whatever view was going to hold the image) then pass that to a loader/async/new thread along with the uri for that then to load in the background, then check that when loaded the imageView instance is still the same (due to the way android recycles views) before setting it back on the main ui thread.
So a recap on the variable/s
imageView
contact id source (of that row)
the instance and data tracking in a thread
so these things are not something you can find in one app or even from the same app and "paste" into another section.
hope that, well, makes enough sense to know it's not a copy paste thing
Click to expand...
Click to collapse
so if it does all that once, all i need to to is copy and paste it, then change the variables to be unique.
Nickcu13 said:
so if it does all that once, all i need to to is copy and paste it, then change the variables to be unique.
Click to expand...
Click to collapse
well no, each one of those happens for every row, also you would have to "find" the data and instances to make it happen. example would be simply finding the resource ident (integer) for the imageView and grabbing an instance of it. findViewById(R.id.someIDofImageView) but then to avoid constant findViewById lookups on recycled views you would use a viewholder pattern, that then you would create a new object class that would hold this (cause lookups for the same ident on the same row many times when scrolling would not be great)... and more stuff, and thats just for the imageView instance part... clearer ?
I guess my point would be it's more involved that you perhaps think it is. Specially if you know little or no android/java
deanwray said:
I guess my point would be it's more involved that you perhaps think it is. Specially if you know little or no android/java
Click to expand...
Click to collapse
Another thing not to forget is the APK signature. If you unpack, edit and repack an APK you must sign it, othewise the installation will fail.

Categories

Resources