Getting activity from context in android

This one has me stumped. I need to call an activity method from within a custom layout class. The problem with this is that I don’t know how to access the activity from within the layout. ProfileView public class ProfileView extends LinearLayout { TextView profileTitleTextView; ImageView profileScreenImageButton; boolean isEmpty; ProfileData data; String name; public ProfileView(Context … Read more

How to view hierarchical package structure in Eclipse package explorer

OK here’s what I would like: in the Eclipse package explorer, I see the following: (dot represents a clickable arrow that I can use to expand the folder) PROJECT Source Folder Package Class Package.SubPackage Foo Bar Package.OtherSubPackage Package.OtherSubPackage.VerySubPackage OtherPackage Foobar OtherPackage.SubPackage Baz Long story short, I want to have many packages, each with many subpackages, … Read more

Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy

Just started using Xcode 4.5 and I got this error in the console: Warning: Attempt to present < finishViewController: 0x1e56e0a0 > on < ViewController: 0x1ec3e000> whose view is not in the window hierarchy! The view is still being presented and everything in the app is working fine. Is this something new in iOS 6? This … Read more