Android :: Android Similar NS User Defaults From IPhone
Aug 27, 2010
Hi, I like to save very simple a few Data.best like in iPhone I can do with NSUserDefaults.What is the similar command here in Android?(just saving a few Variables, to be reused as long the application is installed)I dont like to use a complicated Database just to do that.
i'd like to have iPhone similar tabbar in my Android-Applications or to write my own tabbar.I found already, how to place tabs at screen's bottom. It's really easy.I found this tutorial as well, which looks very nice, but it works (is it true?!) only on SDK 1.6 and later, because of setIndicator(View v)But maybe anybody know easy possibility to do iPhone-like tabbar or can send some links?
I like to save very simple a few Data. best like in iPhone I can do with NSUserDefaults. What is the similar command here in Android? (just saving a few Variables, to be reused as long the application is installed) I dont like to use a complicated Database just to do that.
I just switched over from iPhone to Android and am looking for something similar to where in the iPhone SDK, when a class finishes a certain task, it calls delegate methods in objects set as it's delegates.I don't need too many details. I went through the docs and didn't find anything (the closest I got was "broadcast intents" which seem more like iOS notifications).Even if someone can point me to the correct documentation, it would be great.
I'm sure that there has to be a thread about this somewhere, but I've looked quite a bit and can't seem to find one.Before my Dell Streak (now running 2.1, using the the Swype keyboard), I had an iPhone. I definitely don't miss much about it, but one thing that was nice was, when scrolling through large amounts of text, a circle would appear that looked something like a magnifying glass and I would have the ability to pinpoint exactly where I wanted to place my cursor when editing text.With my current setup, I have trouble landing the cursor accurately when I touch in a large body of text. I'd even settle for arrow, like on a regular keyboard. Ideally, I am looking to accomplish this while keeping Swype functionality.
We have a great software foundation based on Microsoft MVC 2, Entity Framework 4, Repositories, POCOs, Service and Control layers, C# Views, JQuery and html. Firefox pulls 100 records in 250 ms, drops it in to a template, links the data to the markup, and we sit back and drink margaritas.
Boss walks in and says he wants an iPhone app. I bet we need an Android app too.
What frameworks could we use to easily jump from our Microsoft comfort zone in to the wide, wide world of the Apple iPhone / iPad, along with a follow-up Android baby.
Send and receive JSON objects Some type of template engine so we can pair up objects to markup, or at least some way to separate design from programming Something similar to JQuery would be nice A good editor with auto-complete and highlighting, something that compares to VS2010
First of all, I am not saying that I prefer the iPhone over the Droid X at all. HOWEVER, I am terribly jealous over their cases!! I haven't seen the iPhone 4 cases, but for iPhone 3G and 3GS, their cases are just sweet.
an example of the case I'm talking about is:
Incase Slider Case for iPhone 3G (White) - Apple Store (U.S.)
Everyone that I know has an iPhone has a case similar to the one i put above.
I really love the design, simplicity, smoothness and the color of the cases.
Does anyone know where I can find a case for Droid X similar to the iPhone's?
Ok, I hate iphones, and apple products. But a few of my friends have iphones. One friend in particular has an iphone, and we send pictures sometimes.
The problems is, every time he does, it comes in a slide show. One picture gets sent, and it takes about 5 seconds before I can see it, as it's showing a black slide, and then the picture shows.
It's a real small slideshow picture, and I've got no way to download it even. It's real annoying! He kinda laughs and sometimes will just email it to me, like the way that iphone users had to send pictures before they got the ability to send mms messages.
How hard can this be? Is it something he is not doing right, or is it just some stupid way that iphones send mms messages to where only iphone users can properly use the photos?
I did a video comparison between my Evo and my first gen iPhone. These are my impressions from being a former iPhone user. Enjoy, and please leave comments as you see necessary.g (My SD card filled up while recording this so it's in two videos)
Let me clarify. This is not meant to be a definitive review or comparison. I am not a professional product reviewer. I'm just a tech enthusiast give you guys my impressions of my Evo versus my iPhone. I'm sure people will notice things that I let out of this, and I've already noticed quite a few things I meant to say but forgot. Please take my videos for what they are, first impressions.
Here's a link to photos I took: Dropbox - Photos - Online backup, file sync and sharing made easy.
The wife and I have both been on AT&T for 12 years. I've had the 3G and 3GS and she has a P.O.S. Samsung Epix WinMo phone. She actually ordered an iPhone 4 but we were both unhappy with the Apple press conference and said screw it and returned it. The people at AT&T couldn't believe we were returning it. They asked why and my wife pretty much told them it's because Steve Jobs is a douche. She wouldn't even look at the Samsung Captivate on AT&T because she loathes Samsung phones now.So we went to Verizon and both fell in love with the Droid X. We went in to sign up tonight and ran into a little issue. Apparently some putz named Ernesto had used my wife's social security number some years ago to sign up for Verizon and then didn't pay his bill. So we had to go through this drawn out process dealing with Verizon's fraud department and prove that my wife is who she says she is. We're pretty laid back so we weren't stressing. The Verizon store rep was so apologetic and cool. We eventually got it straightened out.We got the phones for $199.99 each with no mail in rebate, no activation fees, free overnight shipping (when they are in stock ), and they paid the $120 ETF for my 3GS (coming to Craigslist soon). Pretty happy so far and looking forward to my Droid X!I just got bored with the iPhone. Not much of a difference to me between the 3GS and the 4. Good phone, just not for me anymore. Can't wait to dive into Android!
I have been an Iphone user since Gen1, and have just come out of contract under AT&T.While I like the Iphone 4, with the unfortunate AT&T service (or lack thereof) that comes with the phone, it's just not an option anymore. In my area edge is the only available service, and even that has drop outs frequently. Then about 4 months ago, the WIFI quit on my phone, which made the AT&T service problems MUCH worse, or apparently so than they were before.I have had more bad calls, and dropped calls and lack of data availability than I can shake a stick at.I mostly use the phone for browsing and video/Podcast playback, but I use it A LOT.I love Itunes, and have a bunch of podcasts, including video ones that I listen to quite a bit.So I hope I can sync them still.
I have the X (very nice BTW) and I have a few questions.
Everytime a save a new contact or add a phone number, or anything from the phone is defaults to add it to the Gmail profile. I like gmail, but I'm pretty sure I want my work mates to be on the work account. Is there a way to change that default or does Google really want that infomation?
Can I disconnect gmail? I know... ouch... but it keeps getting in my way. I use gmail, but I need the phone to be a work phone. I don't want Gmail stealing all my contacts. I mean seriously, it scanned my AD at work (awesome) and I saved the person... it went to gmail. When you pull someone off the AD, why does it dup them in Gmail, obviouslyt the phone was smart enough to look there, but not save there?
I need a nice line. My average conact now has 3 linked profiles. I want most in the "phone" and work people in the "work" and gmail...sorry. You don't need to know any of these people.
Any ideas or thoughts.... I hate Google bashing, but I need the phone to act like a smart phone and not a gPhone. (Yes I know who makes it, but even Apple doesn't steal your contacts...ouch)
Does anyone know how to clear defaults of my own app by code.I know that a user can always go to Manage Applications, find my app and click the button there to clear previously assigned default actions. But for most users this isn't intuitive at all. I would like to offer my customers a solution to clear defaults within my own app if they don't like to use my app as a replacement for a specific action anymore.
I am currently trying to implement a PreferenceActivity for my application that uses custom default values for its preferences instead of the defaults declared in the corresponding preference XML as the defaults are supposed to change dynamically based on certain conditions.However, when I modify the defaults via the Android API after loading the preferences through addPreferencesFromResource(R.xml.preferences); it already seems to be too late and the individual defaults set via Preference.setDefaultValue do not seem to be taken into consideration when rendering the UI.As I would like to avoid re-inventing the wheel I hope there is some possibility to achieve this using the standard Android preference API. Is there any way to trigger a re-evaluation of the values (and default values) associated with a PreferenceScreen hierarchy? I did not yet try whether creating the PreferenceScreen via APIs instead of loading from XML would help, so that could be an option.
I have Listpreferences in my app. They don't appear to be setting to their defaults right after installation - they appear to be null. I'm trying to figure out why my default preferences are not being set right after installation.
In my main code I have:
Right after the above code executes, each variable contains "defValue" instead of the actual values I have assigned in my ListPreference below.
My preference xml file is called, "settings.xml". Here's what one of the ListPreferences there looks like:
Here's what some of my strings.xml file looks like:
When I go to menu, and then settings, I can see my defaults checked (radiobuttoned). Then when I go back from the settings menu to my main screen - all is well - for life! ...then each var above is assigned the proper default value.
This only happens when I first install my app on the phone. After I go to the settings screen once and then right out of it, the app is fine and accepts any setting changes.
By the way, as you can see, "List1" is the android:key within a file called settings.xml in my res/xml folder.
new to Android, G1 and the forums Wondered if any of you can help? I have 4 things set up in locale 1) turn on silent when at work 2) turn on Wi-fi when at home 3) turn on silent 6:30PM to 7:30PM (when getting my son to bed) 4) turn on silent 11PM to 8AM (so no emails are waking me!) number 2 works fine, the problem however is with the silent ones, ALL of them never go back to the default (ringer at full volume) when the time is up or when I'm away from the location. any ideas? I don't have GPS on, but the distance from home to work is large so it can't think I'm still anywhere near there plus that won't affect the time related ones.