Checking Code Flow Of NFC In Android-ICS?
Dec 13, 2011
Actually I am checking the code flow of NFC in Android-ICS.But i got stuck because of some files are not present in ICS.
Like :
GB code -> WriteTagActivity (to write into a TAG)
ICS code -> no files.
Some more files are also missing in NFC and TAG.
View 2 Replies
Mar 2, 2012
My device is LG KU3700 (Lg optimus one p500)
When I try to USSD (checking my balance etc.) it shows MMI code canceled.
I did Upgrade my firmware 2.2.2 into 2.3.4 but it wasn't solve.
View 1 Replies
View Related
Feb 9, 2010
In android, can you please tell me if there is a way to layout text around an image? Like this: ------ text text text | | text text text ----- text text text text text text text text text text text?
View 3 Replies
View Related
Jan 11, 2010
the app I'm trying to implement allows the user to select a sound file (MP3 or WAV) to play at a specific date and time showing a dialog with a progress bar and an OK/Cancel button allowing the user to stop the playing of the sound file. I want it to behave something like the countdown apps I've seen or even the built-in alarm clock app. As I'm implementing this simple (I thought!) app, I'm trying to better understand the platform and make the application conform to the Android way.
As I've been writing the app, I learn more about how things are supposed to work on the Android platform. And here's where I'm getting a bit confused. During my attempts to get the alarm to fire and display, I'm learning that properly formed Android applications are not supposed to show dialogs as a result of a background service or broadcast receiver being invoked through Android's alarm service. Instead, I think, the app is supposed to use a notification on the status bar to alert the user. The user then has the option to look at the notification to see what the app is trying to tell them..............
View 1 Replies
View Related
Feb 3, 2010
I think that I've found the problem I am having with AccountManager that I described in an earlier thread that got no responses on the board.
I think it is a problem with the way that the Activity Stack is working during the OAUTH workflow. Here's the workflow as I see it. I found this problem by separating out my Activity, which I'll call M, from the oauth Activity, which I'll call O. In the course of authentication, the web browser is invoked and let's call that B.
When a user needs to start over with authentication, my application, through Activity M, starts Activity O. That, in turn, generates some magic URL that is sent to the web browser. So the browser is fired up and information was sent to the OAUTH provider to do a redirect back through the browser back to Activity O.
So, this how the OAUTH workflow looks up to the browser: M -> O -> B
At this point the user logs in and hits the Accept button and the browser then invokes my BROWSABLE activity, which, again, is O. I had thought this would unwind the above stack, but it seems that above situation disappears and what I have after the user hits Accept in the browser is this: B -> O
What I did to work around that is that I put a startActity(M) in O and that seems to work, but it is a workaround.
I believe there is something that I could do with launch modes or activity modes to fix this problem and maintain the original activity stack.
All that is happening, really, is that the O activity pauses for little while, then comes back with the goods, the login credentials. But when I tried to return the information via startActivityForResult (), nothing. Because M is no longer on the Activity Stack.
View 2 Replies
View Related
Feb 12, 2010
Can you please tell me if there is a way to layout textaround an image?I have gotten a response from an android developer about this question. But I am not sure what he means by doing my own version of TextView? Thank for any tips.This is not possible using only the supplied widgets and layouts. could write your own version of TextView to do this, it shouldn't be hard.
View 2 Replies
View Related
Aug 13, 2010
My first activity is creating a second activity within its onCreate:
CODE:............
The second activity has EditText views for the username and password along with submit and cancel buttons. When either button is pushed, the text from username and password is sent back to activity one (via onActivityResult), which connects to a server to see if the username is available. While connecting to the server showDialog is used to show a ProgressDialog. When the server responds, the ProgressDialog is dismissed and an AlertDialog is shown. This works fine as long as the device is not rotated.
Here's the problem: if the user rotates the device from within the second activity and pushes submit, the first activity re-invokes its onCreate, which ends up launching the second activity again since the username and password are still null.
Does anyone have any suggestions to get around this?
Is there a method that could be used to pass data from activity-2 to activity-1's onCreate? I wouldn't want to use a database in this case, as that seems like overkill.
I've thought about containing the server communication and dialogs to activity 2, but then I'd have duplicate server code in activity 1 and activity 2 (activity 1 connects to the server for other things too). Another issue I'd have with this approach is that the user has an option to cancel creating the password, in which case I want the app to finish. If I called finish from activity 2, activity 1 would appear and I don't want that to show unless a username and password have been created.
It just occurred to me - if I could replace activity 2 with a dialog it might make things simpler. The dialog view needs to have 2 EditTexts and 2 buttons. Can I create something like this and use the showDialog method?
View 1 Replies
View Related
Oct 7, 2010
I'm seeing that it would be good to have some sort of charting scheme (or possibly just a table-based design strategy) when designing Android apps.Have any such schemes been proposed?
View 4 Replies
View Related
Jul 14, 2009
I need two activities run in different processes in the same application. Now I have made it work by specifying the different process name in "android:process". But I met a problem, from http://developer.android.com/guide/topics/manifest/application-elemen..., we have only one superclass of Application will run before the activity starts(I have tested it, and each time a after new processes start, this Application(its superclass) will run before activity). But, my two activities have two different superclasses of Applications.
So, how to make Applications for different activities run for its corresponding activity? If there is no way to use different Application class for different activity, how can I make a flag for the common Application superclass to judge which process(by getting its name) is running? BTW, the two activities were on the separated development flow and I am trying to merge them.
View 12 Replies
View Related
Oct 4, 2010
My activity has a set of buttons on the left half of the screen and a ListView on the right.Initially the focus is on the first button. When I browse the buttons by pressing DOWN arrow key and then press the RIGHT arrow key, the focus does not go to the topmost list item. Instead, the list item correspondingly on the right gets focused.Is there a way that when I press the RIGHT arrow key, the focus goes to the topmost item on the Listview?
View 1 Replies
View Related
May 14, 2010
Will there be any cover flow on the evo and will you be be able to use the music player in landscape mode. I asked this a previous thread figure I would bring it back up.
View 4 Replies
View Related
Nov 9, 2009
Does anyone know if there is a way turn off the text flow in the Hero's browser? I hate how when I pinch to zoom, it auto text flows and throws me onto some random place on the site...pretty annoying. I have to then search around for where i on the site I was before I did the pinchzoom
View 1 Replies
View Related
Aug 2, 2012
New to Android and to Dolphin Browser HD. I've Googled for days, however, I have come up with squat.
1) When I open a new tab, can it automatically go to my homepage and not the "Speed Dial" sort of page it does now? Any add-ons that might enable this?
2) Does Dolphin Browser HD do automatic text reflow? And, if not, any other browsers that can do this? It is pretty tedious now trying to read pages that aren't re-sized for mobile.
View 3 Replies
View Related
Feb 5, 2010
When the person opens my app, I want to display a button. The user clicks this button, and it opens a browser (embedded, of course) inside the app, allowing the user to LOGIN through that web page.
Of course, when the person logs in, it only logs in to that web server. The web service now knows that the user is logged in.
As the user uses my mobile app, I need to know if he's logged in or not. How can I know? There's no way for my app to determine if the user is logged into my web service.
By the way, I am using Django framework for my web service.
View 1 Replies
View Related
Sep 2, 2010
I have 3 activities in my app: Activity1 -> Activity2 -> Activity3. Inside Activity3, if the user presses Back, I would like to return to Activity2. In Activity3's onPause event, I added a finish() statement. That's probably not even necessary, but I wanted to make sure this Activity gets cleaned up. This works fine.
However, while in Activity3, if the user presses Home or starts a new app (through notification bar or some other means), I want both Activity3 and Activity2 to finish. If the user returns to this app, he should resume with Activity1.
I have figured out how to do one or the other, but I can't figure out how to handle both cases, if it's even possible. Can I trap the "Back" button in Activity3 and send a message back to Activity2 telling it not to finish()? It seems like the Activities follow the same lifecycle flow (Pause, Stop) regardless of what you do to send them to the background. Just to answer the question of why I want this behavior, imagine that Activity1 is a login screen, Activity2 is a selection screen, and Activity3 is a content screen. If I press Back from the content page, I want to be able to make a new selection. If I exit via any other means (Home, notification bar), I want the user to be "logged out".
View 2 Replies
View Related
Aug 25, 2009
I would like to check whether there is any direct API available to check whether a particular Database exists or not ?
Currently, to initialize data for the first time (not repeatedly), we try of open the db and if it fails we know the database does not exists otherwise it is already created and initialized.
Is there any simple API available to check whether DB exists or not ?
View 2 Replies
View Related
Aug 22, 2010
I am working on a simple app for the HTC EVO that blinks the alternate notification LED when a new text message is received. I have this part working great via a Broadcast Receiver but I need some way to turn the LED off when the user has read the message(s) using their default SMS app. I'm not sure if it is best to do this in the receiver or in a background service.
View 2 Replies
View Related
Sep 11, 2009
Anyone know how to check the user's country? I'm looking for a way that's faster than using GPS and reverse geocoding. (I need the country where the phone is registered, not their current location, in any case.) Is there any constant in the settings?
View 4 Replies
View Related
Mar 20, 2009
Is there a way to programmatically without root check and see how a program was installed?
The only solution I've been able to find is using root - and tapping into a database that the Vending application uses;
CREATE TABLE assets10(_id INTEGER PRIMARY KEY AUTOINCREMENT, content_uri TEXT, s tate TEXT, download_pending_time INTEGER, download_start_time INTEGER, install_t ime INTEGER, uninstall_time INTEGER, size INTEGER, type TEXT, package_name TEXT, is_forward_locked TEXT, signature TEXT, refund_timeout INTEGER, version_code IN TEGER, server_string_id TEXT UNIQUE);
Most specifically I can check to this database using my package name and/or signature and see if it's ever been installed by the market. Then if it has you could check to see if it's been uninstalled.
As for background, I'm just messing around with ways to distinguish real users from pirated versions. I've noticed from an application I've posted that I only have approximately 100 downloads and 50% active, yet my server which is used by the application shows approximately 200ish unique users within the past few days.
View 2 Replies
View Related
Jul 29, 2010
I have a string called extStorageDirectory which is set to my SD Card and then "/mypics", I can then save a picture in to this directory, but only if the directory exsists. So how do I check to see if the directory exsits, and if it doesn't creates the directory?
View 3 Replies
View Related
May 6, 2009
I am doing an experimental project and want to send key events from one application to another. I know android doesn't allow applications to interfere each other in this way due to security concern. Is there any way i could bypass the security check? I've looked into the WindowManagerService class and made some modifications but it seems not working for me.
View 3 Replies
View Related
Dec 31, 2009
I have some shares n the company I work for and want a good app to check price and see what my shares are worth.
View 3 Replies
View Related
Oct 6, 2010
I have an IntentService which makes some web service calls. Before making these calls I check to make sure the device has network connectivity.
I am doing so like this:
CODE:.............
Unfortunately, when I'm debugging on my Android device, this returns false when I have both a network and a wireless connection.
Some interesting tidbits about connec.getNetworkInfo(0):
CODE:...................
Clearly this code is not sufficient (perhaps it would only return true if I sent some bit over the network and turned the radio on?). Moreover, since I'm not well versed in the ConnectivityManager, I'm assuming I should probably be scanning all networks (ie: getNetworkInfo(0 through N)).
View 1 Replies
View Related
May 4, 2010
How can I check if headphones are currently plugged in. I don't want a broadcastreceiver which informs me when they have been connected to the device. I need something like:
if(/*headphone is connected*/)...
View 1 Replies
View Related
Apr 27, 2009
Can some body suggest me how do I check if Android is in home screen? My requirement is I need to invoke an STK application, when I get the corresponding command from SIM and Android should be in home screen. How do I check if Android is in home screen?
View 2 Replies
View Related
Feb 8, 2010
I wanted to get the info on the following query, could you guys please help me in getting the answer?I have set of platform api those will be tested by CTS to check compatibility, and I am making use of some 3rd party api in one of the platforms api. Suppose if I am changing or modifying the 3rd party api (to suit some of my requirement), is CTS is capable of telling whether compatibility is broken in the 3rd party app?
View 2 Replies
View Related
Nov 11, 2010
I want to check, whether a file exists or not in the /assets/ folder.How could I do it? Please help.
View 1 Replies
View Related
Sep 7, 2010
Since I got my 16 GB Card it's started saying it for longer than with my 2GB Card, however it says it less now. Does how long it takes depend on how much data you put on since taking it out of USB Mode? Because when I first got this card I wrote a lot to it (Moving all my files over), but now I just put a few files here and there on... Is there a way to disable this and let you run it manually at your leisure?
View 2 Replies
View Related
Mar 26, 2010
I have a terrible bug in my widget. The widget is waken up using an AlarmManager (the update interval is chosen by users, ranging from 30 mins to 2 hours) to grab some data from the Internet and display it on the widget. I do not hold a wakelock since if the phone sleeps, just let it sleeps. There's no way to update the information since nobody will see it. If I put the phone in the basement (has no wi-fi or cell signal) for about an hour. the phone will definitely not update anything. However, when I get it back from the basement, the cell network could never be recovered again no matter how long I have waited (it just get an X on the cell signal icon on the notification bar) that I must restart the phone. May I know if a partial wake lock must be held on checking network availability?
Find the code skeleton as below:
CODE:.................
View 8 Replies
View Related
Apr 26, 2010
I wanted to check the availability of another app in Market from my app. Based on this I will have to give a message saying "Coming soon" or show the other app in Market. I am using the following intent
new Intent(Intent.ACTION_VIEW, Uri.parse("market://details? id=com.example.android.XXXX"));
Now, how can I catch the result which would say if the Market was able to find this package or not?
View 4 Replies
View Related