Android :: Sense UI - Understanding
Mar 26, 2010I'm not fully understanding Sense UI. What makes Sense UI so relevant, or not relevant? What exactly is it?
View 2 RepliesI'm not fully understanding Sense UI. What makes Sense UI so relevant, or not relevant? What exactly is it?
View 2 RepliesI need some help to understand the use of permission-group tag in AndroidManifest files. Is there any need of using permission-group and what benefit offers this grouping? Is there a plus security using it? Does anyone know an example when to use it?
View 2 Replies View RelatedI'm trying to wrap my head around activities and how they begin and end in Android. I've read what the Developer Guide has to say regarding activities and I'm still a little fuzzy on how I should appropriately handle their navigation in my application. As an example, say I have a main activity that starts a secondary activity. Once the secondary activity has completed it's purpose, I want to close it and return to the main activity. I recall having read that the activity stack was just that, a stack of activities that are pushed and popped. So I assumed that calling finish on the secondary activity would return me to my existing main activity. Calling finish on the secondary activity didn't actually do anything, visibly at least. Is there further reading that anyone can recommend to me? Chris Stewart cstewart@gmail.com http://www.androidsdkforum.com
View 10 Replies View RelatedI am trying the FaceDetector class using the code as shown in the following link: http://www.anddev.org/quick_and_easy_facedetector_demo-t3856.html Everything works fine as far as the activity drawing the bitmaps is concerned but I haven't had any success in getting Android to recognize a face. Has anyone tried this feature? Could anyone please help in understanding the parameters of the images to use or please post a link to some image that has worked for them?
View 2 Replies View RelatedI'm having trouble with my activities when they go in the background. I have two activities, A and B. Only A can launch B (manifest copied below).This is very confusing. It's like Android knows my app is running, and puts a new instance of A on top of the old B instance running. I'd just expect that the application gets paused in-place, and whenever the user hits the app icon again, it just picks up where it left off (in this case, just show B again!) Below is the manifest, and the activity classes for this test are completely empty (except A which has a button to launch B).
View 4 Replies View RelatedI am having trouble understanding content providers in Android. Do you use intents to call content providers as well as managed queries?
Also, an activity has an intent filter. The intent filter has a element which has a mimeType attribute. How does Android know which content provider this mimetype is referring to?
The tag in the manifest just lists an authority but not the full content_uri. Further, the content_uri is typically defined in an encapsulated class that seems to only consist of constants but no methods, so I don't see how that links over to the content provider class.
I am trying to understand the use of the broadcast receiver and the way of activate it. There's two ways isn't it? Register it from an activity or declare it in the manifest. So my question is: If I code a broadcast receiver which is watching incoming messages and I register it in the manifest, when a message comes my broadcast receiver will catch it automatically although any activity of my app had registered it. In a nutshells, I don't have to activate it so it works, only register it either in the manifest or in an activity.
View 2 Replies View RelatedI'm attempting to add four controls to a layout; <label> <text> <seek> <radio> I want the seek widget to occupy all the available screen space between the edittext control and the radio control. However if I give it the value android:layout_width="wrap_content" only a small seek control is displayed and if I set the value to fill_parent it overwrites the radio control. I would have thought there would be a mechanism to occupy the free space between the text and radio controls dynamically. The xml file I am using is below You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 2 Replies View RelatedTrying to replicate the behavior of ItemizedOverlay.boundCenterBottom(), inside of one of my Overlay classes. I am fairly certain that I can do this using setBounds(), but I am utterly lost as to what setBounds() is actually doing.
View 1 Replies View RelatedThe core of this Widget is an AppWidgetProvider which registers a ContentObserver to the CallLog content URI. This means that my widget is updated every time a call (incoming, outgoing, missed) is recorded. This works fine for a while, until *something happens* and my ContentObserver stops getting called (no error message seen in trace). I would rather that this ContentObserver persisted until the user removes the Widget.
I am guessing that my JVM has been destroyed (due to low memory?), ContentObserver garbage collected and/or ContentObserver unregistered (or just pointing to nothing), but I don't know how to debug this without restarting my code (and thereby re-registering). I can hide this bug by periodically re-registering my Content provider, but I would rather understand the cause and have a more optimal solution..............
My device is a Nexus One with 2.2 and I have tested two projects, one on 1.5 and one on 2.1. Problem: I have trouble to understand the life cycle of my application when the screen is turned off and on. Here is my output
// activity starts
08-04 17:24:17.643: ERROR/PlayActivity(6215): onStart executes ...
08-04 17:24:17.643: ERROR/PlayActivity(6215): onResume executes ...
// screen goes off
08-04 17:24:28.943: ERROR/PlayActivity(6215): onPause executes ...
08-04 17:24:32.113: ERROR/PlayActivity(6215): onStop executes ...
08-04 17:24:32.113: ERROR/PlayActivity(6215): onDestroy executes ...
08-04 17:24:32.983: ERROR/PlayActivity(6215): onStart executes .....................
I am a beginner in writing Android apps and would like to be a part of the group to get a more in depth understanding.
View 4 Replies View Relatedthe 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..............
Can someone please explain how to understand a logcat from an android force close. This crash occurs when I called finish() in the onPause(). Here is the DDMS screenshot http://www.2ql.net/uploads/1245827534.png
I see this example of MenuCallback code, but i don't understand where is the reference 'ImageManager.IImage image' comes from? How is that image get created and passed it to MemuCallback?
View 2 Replies View RelatedFirst and foremost, are there many android developers here? Is this a good place for Android related discussions?I seem to be missing a rather large concept of Android development. The gist is I am struggling understanding how to tie an application together. I'm not sure how to explain it, so I thought I would do my best with an example from the Android ApiDemo... assuming you are familiar with it.
Inside the com.example.android.apis.view namespace of the ApiDemo, there is a class called Animation3.java.Animation3 inherits the activity class and there is some code inside to display animation.I can't find a reference to the class (Animation3) anywhere in the demo code (except for its definition obviously). The only mention I found is in the manifest xml file. So how the heck does this activity get started? Don't we need to create an instance of the class somewhere and fire off a method to start it? I don't understand how to generate the code that ultimately glues this class to the rest of the application.Additionally, what about other classes like views or viewgroups? How do I generate code outside the class that initiates/starts/uses/calls (insert proper term) the class.I would appreciate any code examples as well as any concept explanation or reference documents. So far I've read pages and pages on activities and views but I'm really struggling how to tie things together.
I had posted a similar thread a while back and received no feedback, so let me try to be more clear.I am able to use Androids components to build the most basic layouts, which include images, buttons, text areas, etc. These are like Android Lego! I can build the castle. BUT I want to design my own component, my own Lego, that draws on the screen and uses the available area that the Android components have not used. ie, I want to have a top layer of buttons, and the rest of the screen, whatever it is, I want to use to draw 2d graphics. So, I want to make my own Lego, and use it with the other Android Lego. However, I'm also trying to be a good developer and making this for whatever resolution is thrown my way. What is the best way to do this considering the deluge of different resolutions Android developers must cope with? Is there a way to do a table view and return the remaining screen size? Or, am I stuck making an entire new box of Lego here?
View 7 Replies View RelatedWhat concepts in desktop application development (e.g. Java, WPF, Cocoa) are closest to Android's fundamental concepts like Activity, ActivityGroup, and Intent? (And what are the nuances to how they differ?)
View 3 Replies View RelatedTrying to make an google maps overlay in an android program. Inside of my overlay's draw method, I have two ways of adding a pin. One of them works, and one does not. Unfortunately, the one that does not work is also the only one that has the ability to add a shadow!
CODE:...........................
I'm just not getting it. How do add files/folders to the android Dropbox? I've copied files and folders into the /sdcard/dropbox folder but they don't show up in the Dropbox app nor are they synched to my PC Dropbox. I don't see a way to paste into the app. In the Dropbox app I see "Upload" then "Add any file" but the only options are to add a photo, music or voice recorder file. I was hoping to use it to back up some ebooks and data files to my desktop.
View 8 Replies View RelatedI don't really understand it. Could someone please explain to me how they both work. I'm not the best and brightest person when it comes to understand it.
View 3 Replies View RelatedI was about to write that I didn't quite understand the USB options that are given to me when I click on my USB connection in the Notifications screen when I'm hooked up to my PC. When I switch to "charge only", my Windows Media player still sees what's on the Droid X (Android 2.1), and when I try to use Media Share on the Droid X, it still says "SD card busy". But now I'm in a real pickle, because I changed the setting to "charge only", unhooked the phone, and then reconnected to the PC. Now the USB connection is no longer showing up in the Notifications area, despite multiple reconnections, and now WMP doesn't see what's on my phone, and now I can't figure out how to switch back to one of the other options. FOLLOW-UP: After restarting the phone and the PC the USB connection is working again, so that was just a separate glitch. Getting back to the main point: even when I'm in Charge Only mode, the PC can see the phone's contents in File Manager. Windows Media Player doesn't recognize the phone as DROID as it does when I'm in Windows Media Sync mode, but instead calls it E: and still lists its contents. Bottom line: what is the significance of the four modes: PC Mode, Windows Media Sync, USB Mass Storage, and Charge Only?
View 1 Replies View RelatedI have a new htc desire and I want to:
1. Understand the difference between Contacts and People in the phone? What I mean by that is under the list of programs there is one called " People " if i click that I see I can add people with ( phone, email and birthdate )Yet I also see on my 2nd screen a widget called " Favourites " which says Add contacts and when I hit add contacts it already has a list of names and emails that I totally dont recall adding but I do recognize. I believe it pulled them from my gmail account, So i have deleted them in gmail as I dont need them, but is there a way to delete them all in one go in the phone?
2. What is the best way to add peoples phone numbers in the htc desire? what steps should I take
Just downloaded "Real Signal" from the market and am trying to understand what the numbers mean. Tried searching here, no luck. Can someone point me to a good thread or a resource to help me understand what the #s mean? At home I get 2 bars and the battery lasts and lasts, at work I get 0 to 1 bar and the phone hunts for a signal, making the back of the phone very warm to the touch, eating battery like there's no tomorrow. I have it on 'airplane mode' right now but that sort of defeats the purpose of having it, might as well turn it OFF.
View 5 Replies View RelatedI have a moto droid and I have video playing issues, and I don't understand technology at all. Somebody sent me a video (from new samsung fascinate) and when I tried to watch it I only got audio. I have the arcmedia app, which allows me to watch the video, but I think the audio is messed up. This video is in mp4. So why can't I watch this video with my stock media player?
View 27 Replies View RelatedI have a google voice number and I have the friends and family plan on verizon. I currently have my google voice number on my friends and family plan. Do all calls that go through my google voice number count as friends and family? Also, I currently do not have google voice set up to make calls. If I were to set it up that way, would that mean that all my outgoing calls would also be counted as friends and family?
View 8 Replies View RelatedUnderstanding Android file permissions
CODE:.....
To Check Permission at anytime in ADB just Type:
CODE:.......
The next 9 characters define the file permissions. These permissions are given in groups of 3 each.
The first 3 characters are the permissions for the owner of the file or directory.
Example = -rwx------
The next 3 are permissions for the group that the file is owned by.
Example = ----rwx---
The final 3 characters define the access permissions for everyone not part of the group.
Example = -------rwx
There are 3 possible attributes that make up file access permissions.
r - Read permission. Whether the file may be read. In the case of a directory, this would mean the ability to list the contents of the directory.
w - Write permission. Whether the file may be written to or modified. For a directory, this defines whether you can make any changes to the contents of the directory. If write permission is not set then you will not be able to delete, rename or create a file.
x - Execute permission. Whether the file may be executed. In the case of a directory, this attribute decides whether you have permission to enter, run a search through that directory or execute some program from that directory
In addition to the file permission, you can also modify the owner and group of the file. The chown program is used here and its syntax is very simple. You need to be the owner of a file or root to do this.
Understanding Owner Permissions:
The first command is for owner ID, the Second Command is for Group ID.
exp. root.root ( First Root is owner, Second Root is Group ).
Chmod 644 some file, Like Build.prop For testing & then Veiw the Resulted Changes!
Refer to the table below as a quick reference.
Command Line for Both would look like this
CODE:.....
I'll update the chmod with more with More Complex Commands Later
Side Note:Always set owner ( chown ) before Setting Permissions
I recently got a new SIM card (same provider, Telkomsel, but for a different area code in Indonesia). The settings are supposed to be automatic, and I do indeed have a "Telkomsel GPRS" under "Mobile networks" > "Access Point Names". The 3G on the old SIM worked pretty well, without having to do anything, but this one gets only rare and short-lived connections to the net. I've rung up Telkomsel a few times now, and they're supposed to be fixing it soon, but it's a few days and I'm getting impatient. One of the help line people suggested manually entering a new access point, but the info he gave me was a bit confusing.
View 1 Replies View RelatedI checked my battery usage and 33% is being used while Phone Idle and 36 while cell standby. Anyone know if this is normal or is my draining too much battery? BTW my Fiancee DL a Ping Pong app and played it once. I checked my battery to see what was using it, the ping pong app had drained 90%.
View 3 Replies View Relatedi know how to use the android ui instead of sense but when i have the sense ui turned off, how do you get the "phone" option to dial out??? i see no option for phone.
View 2 Replies View Related