I recall seeing a diagram that shows how all the stock apps on the NST exchange intents for various actions. I can't seem to dig it up via the forum search, or with google. I believe it had a box for each app, and arrows connecting them with the name of an intent, and what that intent was used for. Am I remembering this correctly? Does anyone have that floating around?
EDIT: Found it here.
Related
I have a problem. I want to create a screen where a map (a picture) will be displayed, with some interaction (dragging, zoom, etc).
I started with creating an ImageView, but I found out that those gestures are still quite complicated to implement (couldn't find a single example that I could work with). Then, someone suggested me that I could use a WebView instead, as it would act as a workaround to those gesture issues. Indeed, switching to WebView did solve some of my problems.
However, I do have a new problem derived from this. As of now, to display the image, the terminal requires an internet connection; I've found out how to load files locally, but only if they're on the terminal itself (as in if the file is on the sdcard). Is there any way to access the image without having to store it separately from the program? Like when accessing the drawables?
Sorry if this a basic question, I'm pretty much starting and the amount of tutorials/information available is either dated or confusing. Btw, I'm developing on Froyo.
Hey guys,
In an effort to 'hack' the Sense homescreen to use a custom launch/shortcut bar, I am creating an app that needs to know if the homescreen is currently visible. With this, I need some help.
I've been looking at four possibilities to do this:
1. constantly poll the window manager for the current activity. This works, however my battery doesn't like this and it's generally bad practice.
2. Use a widget to tell the service wether it's active. Too bad, Android doesn't seem to provide some kind of event to a widget when the homescreen is opened. Strange though, as you'd say this would be very useful when updating widgets. Am I overlooking something?
3. Watch the logcat or message broadcast. This works nicely to intercept a user moving away from the homescreen at it will output this when switching activities:
08-22 12:25:28.891: VERBOSE/HtcAppUsageStats(255): (launch app, package): (People, com.android.htccontacts)
I think I could intercept that, but then there's another problem. Pressing home broadcasts this message for com.htc.launcher, however using the back key (or even software options) to move back to the homescreen do not invoke this.
4. Intercept hardware presses. This seems rather hard when you don't want to actually do something with the presses. This combined with the above method would give me a decent way to see if the homescreen is active.
But all of those methods just don't work the way I want them to. Anyone got a clue on how to accomplish this? I don't mind if I require root access or some dirty programming, by the way. After all, it's some sort of a hack.
A push in the right direction would be very welcome
Quick kick. No one knows a solution for this?
Sent from my HTC Sensation Z710e using XDA App
If this is just for sense, have you checked the openSense sdk?
From something awesome
I haven't really looked into this, I also have no experience with widgets, but using my general knowledge in how Android works, concerning 2), does the widget not receive a visibility change? I know for LiveWallpapers there is a void VisibilityChanged(boolean visible) method that allows it to update when visible. Do Widgets not have this?
killersnowman said:
If this is just for sense, have you checked the openSense sdk?
From something awesome
Click to expand...
Click to collapse
Couldn't find the documentation of it. But it must be somewhere, this is indeed another option to look into.
Metastable said:
I haven't really looked into this, I also have no experience with widgets, but using my general knowledge in how Android works, concerning 2), does the widget not receive a visibility change? I know for LiveWallpapers there is a void VisibilityChanged(boolean visible) method that allows it to update when visible. Do Widgets not have this?
Click to expand...
Click to collapse
I've tried all the event listeners I could find in the reference. I don't remember the VisibilityChanged method thou, will look into that tonight. Otherwise I might be able to build a Live Wallpaper and hook it to a service.. Interesting
Thanks both!
I am currently developing an android app that must launch other applications (YouTube, etc) to perform search queries. I have succeeded in sending search queries to other applications via the following code:
Code:
searchIntent = new Intent(Intent.ACTION_SEARCH);
searchIntent.putExtra("query", searchPhrase);
searchIntent.setPackage(packageName); //Youtube package name, etc
startActivity(searchIntent);
Unfortunately, when the queried app is left running and another query is performed, it simply relaunches with the original query, failing to perform another search.
For example: I launch a search intent for YouTube with the name "puppies." I then background that instance of YouTube and launch another search intent with the name "kittens." Upon launching that second intent, the same instance of YouTube launches and continues to show "puppies" in the search bar.
I have tried using various flags (FLAG_ACTIVITY_NEW TASK, FLAG_ACTIVITY_CLEAR_TOP, and others) to no avail to solve this problem.
Does anyone know how I may go about resetting the search query in the launched activity so that a second search can be performed without having to kill the activity instance (back button or otherwise)?
Thanks in advance for your assistance!
Bump. Hopefully someone can provide some guidance!
Even at this point, a solution would still be appreciated!
Hello fellow Nookers,
I've been lurking around here for the past couple of years, only to join about 8mo ago. I find the amount of knowledge and willingness to help at XDA fascinating. There are clearly A LOT of intelligent people here that could probably solve many of the worlds problems, if collectively asked. So, a big virtual thumbs up to all of you.
Well, enough of the mushy stuff. I'm here for a reason right? I have quite a few general questions regarding things such as... a rooted nook, Google Play, .apk files, transferring .apk files, searchmarket, etc.. Rather than start separate threads, or jump on many existing threads, I figured it might be easier to list them in one thread.
So, here we go.
Above all other questions below, here is what I am ultimately after...
I am looking to download .apk game files from Google Play so that I can transfer/install them on my Kindle Fire HD. So why not root the KF? I have read posts that rooting a KF using Amazon Prime will render Prime useless. I need my Prime for watching movies/shows. The games I want from GP are not available on the less-than-stellar Amazon App Store. I value my KF device more than my outdated NST, which is why I have no issues rooting the NST.
Now for the questions...
(1) I've followed the [Root] NookManager post here at XDA ( http://forum.xda-developers.com/showthread.php?t=2040351 ) and successfully rooted my NST running 1.2.1. Per the post, there were quite a few steps not mentioned according to this nook devs page ( http://nookdevs.com/Nook_Simple_Touch/Rooting ). [Q] Are the below areas from nook devs not necessary when following the [Root] NookManager post?
After you have burned the uSD card
#3
At the Android Welcome Screen skip "Sign In"
Enable Location Services when given the option.
Connect to Wifi and launch Youtube from ADW App Drawer.
Click the Menu button (On top at the right, next to the time.).
Select "My Channel" and Login using your Gmail Account (ensure the [email protected] format to link)
Exit Youtube and Launch Gmail.
Sync your Gmail Account and Exit. (If it fails to sync that is fine - it will do so later on if you give it a few minutes)
Open up Market and Accept Terms and Service.​
(2) Before rooting, I changed the email address on B&N associated with the NST. The email with B&N matches the email I use for GP. However, the email on the NST, in account settings, is the previous email address. [Q] Is this an issue?
(3) When accessing GP on NST via the Browser App in ReLaunch, there are many games I cannot download. I get the message "This app is incompatible with your device". I've read a few posts online (outside of XDA) showing ways to spoof an older Android device to a current Android device. But, as with most things, it came with warnings and only working for devices running firmware higher than 1.2.1. [Q] Assuming this would trick GP into thinking I have a newer Android, is there a known way to accomplish spoofing a 1.2.1 device?
(4) Something worth pointing out... when accessing GP, and navigating to Settings/My Devices, "phone" is listed. However, when I go to Settings/Android Device Manager on GP, it states No Active Device Listed. [Q] Should there be a device in the Android Device Manager? If so, how to accomplish this?
(5) As it has been widely reported, the search feature on GP doesn't work when on the NST. For the record, I have noticed while in Settings, the search feature does in fact work. So, it has been suggested to use SearchMarket (which I have installed). However, this app seams to have its limitations. When I search for a game on SM, that I know is on GP, SM is not finding it. Also, the Market App within ReLaunch cannot find the game either. [Q] Is SM searching Market, and is Market different than GP?
(6) These next questions relate to downloading, rather than installing, apk files to the NST. Since my goal is to obtain apps from GP, that are not available via AAS, so I can install them on the KF, [Q] how can I have them sent to the mSD Card? [Q] Aside from using download/torrent sites to obtain .apk files, are there any "legal", safer, ways other than GP?
Well, I think that about covers it. I may regret saying this, but all of this came about because of one game... Blackout: Bring The Color Back. I am soooo hooked on that game. I first played it at Dave & Busters, and was hooked within minutes. I think I sat there playing it for a good 45 minutes. Then I found it on Apple's App Store. Now, I need it on the KF. If I could download this one game from GP, I would be ecstatic. LOL... can't believe I admitted that.
Thanks in advance.
Too detailed? I can dumb it down, if you think it'll help.
diditall4danook said:
(1) I've followed the [Root] NookManager post here at XDA ( http://forum.xda-developers.com/showthread.php?t=2040351 ) and successfully rooted my NST running 1.2.1. Per the post, there were quite a few steps not mentioned according to this nook devs page ( http://nookdevs.com/Nook_Simple_Touch/Rooting ). [Q] Are the below areas from nook devs not necessary when following the [Root] NookManager post?
Click to expand...
Click to collapse
At the end of that guide did you follow and install the NTGAppsAttack package ?
If you read that guide it tells you the steps you read on nookdevs are some of the steps to sign in for first time to google.
I used NTGAppsAttack last night just fine. It is a little time sensitive so follow the intructions directly after installing.
Google recognized my NSTG instantly. The youtube trick is basically one of the methods to make google play acknowledge your device.
diditall4danook said:
(2) Before rooting, I changed the email address on B&N associated with the NST. The email with B&N matches the email I use for GP. However, the email on the NST, in account settings, is the previous email address. [Q] Is this an issue?
Click to expand...
Click to collapse
Maybe. Try suggested above and if does not work after a day go backup to your backup de-register nook and try again with other email.
diditall4danook said:
(3) When accessing GP on NST via the Browser App in ReLaunch, there are many games I cannot download. I get the message "This app is incompatible with your device". I've read a few posts online (outside of XDA) showing ways to spoof an older Android device to a current Android device. But, as with most things, it came with warnings and only working for devices running firmware higher than 1.2.1. [Q] Assuming this would trick GP into thinking I have a newer Android, is there a known way to accomplish spoofing a 1.2.1 device?
Click to expand...
Click to collapse
NST is a android 2.1 device also known as Eclair.
Its an old version very old. Even those games you can run on the nook with norefresh/fastmode you will still sometime need to get hold of an older version thats supports 2.1.
Try Simon Tatham's Puzzles (the B n W at least)
diditall4danook said:
(4) Something worth pointing out... when accessing GP, and navigating to Settings/My Devices, "phone" is listed. However, when I go to Settings/Android Device Manager on GP, it states No Active Device Listed. [Q] Should there be a device in the Android Device Manager? If so, how to accomplish this?
Click to expand...
Click to collapse
Step one go to "Cog"->"Settings" on google play website. On right hand side click on EDIT on phone line and rename "phone" to be something better like "NST_1". Believe me you will regret not doing so when you have more than one!
Android Device manager requires a very up to date version GAPPS to work.
You want it to location your nook or blank it?
diditall4danook said:
(5) As it has been widely reported, the search feature on GP doesn't work when on the NST. For the record, I have noticed while in Settings, the search feature does in fact work. So, it has been suggested to use SearchMarket (which I have installed). However, this app seams to have its limitations. When I search for a game on SM, that I know is on GP, SM is not finding it. Also, the Market App within ReLaunch cannot find the game either. [Q] Is SM searching Market, and is Market different than GP?
Click to expand...
Click to collapse
If your GAPPS updated itself then yes search may work. Searchmarket i expect does have different result ordering or interprets keywords slightly different or simply hides incompatible apps from you. Does it matter? You can use web version and install to device if your desperate.
diditall4danook said:
(6) These next questions relate to downloading, rather than installing, apk files to the NST. Since my goal is to obtain apps from GP, that are not available via AAS, so I can install them on the KF, [Q] how can I have them sent to the mSD Card? [Q] Aside from using download/torrent sites to obtain .apk files, are there any "legal", safer, ways other than GP?
Click to expand...
Click to collapse
No idea what AAS and KF mean. Personally I use titainium backup or esfile explorer to save my apks. You can get them on your NST using dropbox or over windows shares (samba) using esfileexplorer. If you get hold of version 1.6X of esfileexplorer it has option for white background still (might have brought it back in later versions). One advantage of saving your apks you can keep the version that does what you want not be forced to update to something breaks what you want like esfileexplorer.
Hmm KF = KindleFire?
So I was thinking of writing a replacement home for my nook touch, as I have a little bit of android development experience under my belt from my previous smartphone. I like the design of the stock home screen, because i mostly use my nook for reading. I never use the B&N store to get books though, so the "popular books" (top 5 of the BN top 100 or whatever) and "new" book sections mean nothing to me...
I'd replace the "new book" part with a random book from the library (in a "pick from a hat" fashion) each time the home is viewed, and replace the "popular books" area with books from a "to read" list the user can determine.
Is this something anyone else would be interested in too, and is there somewhere I can find nook-specific stuff for programming it? (the B&N development page is offline as of discontinuation of the nook color)
tinferbrains said:
So I was thinking of writing a replacement home for my nook touch, as I have a little bit of android development experience under my belt from my previous smartphone. I like the design of the stock home screen, because i mostly use my nook for reading. I never use the B&N store to get books though, so the "popular books" (top 5 of the BN top 100 or whatever) and "new" book sections mean nothing to me...
I'd replace the "new book" part with a random book from the library (in a "pick from a hat" fashion) each time the home is viewed, and replace the "popular books" area with books from a "to read" list the user can determine.
Is this something anyone else would be interested in too, and is there somewhere I can find nook-specific stuff for programming it? (the B&N development page is offline as of discontinuation of the nook color)
Click to expand...
Click to collapse
I'm intrigued by this idea. Right now I only see the B&N home screen when I reboot unless I do a long-press of the "n" button. I can foresee the day when those two areas you mention will both be out of luck. In fact, I can foresee the day when just about any app that will run on the NST, but needs to access information from a remote server, will no longer be able to do so.
I have a different suggestion for the "new reads" section. It's probably impractical but what about displaying meta data for the current book there? Of course, the print would have to be on the small side--maybe you'd need to be able to scroll. I've always missed the ability to display this info in the library for side-loaded books (by double-tap). Books from Calibre can have the data as part of the epub file already, there's just no way to access it.
For me, the "what to read next" section could just be a random selection of what's in the library. Or maybe that's a better place for the meta data display.
Just some thoughts. Sounds like an interesting project.
Edit: the more I thought about it, the sillier my suggestion seemed! Your idea is best. I look forward to seeing how it develops.
nmyshkin said:
I'm intrigued by this idea. Right now I only see the B&N home screen when I reboot unless I do a long-press of the "n" button. I can foresee the day when those two areas you mention will both be out of luck. In fact, I can foresee the day when just about any app that will run on the NST, but needs to access information from a remote server, will no longer be able to do so.
I have a different suggestion for the "new reads" section. It's probably impractical but what about displaying meta data for the current book there? Of course, the print would have to be on the small side--maybe you'd need to be able to scroll. I've always missed the ability to display this info in the library for side-loaded books (by double-tap). Books from Calibre can have the data as part of the epub file already, there's just no way to access it.
For me, the "what to read next" section could just be a random selection of what's in the library. Or maybe that's a better place for the meta data display.
Just some thoughts. Sounds like an interesting project.
Edit: the more I thought about it, the sillier my suggestion seemed! Your idea is best. I look forward to seeing how it develops.
Click to expand...
Click to collapse
I like your ideas. Pulling the metadata into the new reads spot might be cool, and random books may be easier than the user-determined list... who knows?