i want to call a new activity from within an inner class which is defined in d class which extends Activity....
the piece of written in one of the methods of that Inner class is::
Intent intent = new Intent(this, Test2.class);
startActivity(intent);
Test2 is placed inside the same package as my main clas is placed and eclipse is...
I have a vb.net application which runs as a service. I also have another Windows application that serves as the service interface.
In brief the service watches some folders for new files and imports them into various databases. In the service I have an class called 'importFile' containing basic properties such as 'FileName' and 'ImportS...
Hi guys, I am trying to use AMF PHP to pass variables to a flash file, thus far I cannot see anything wrong with my code, but I have very little experience with creating classes, so here it goes, here is my code,
index.php:
<?php
include "amfphp/services/flashMe.php";
$session = true;
if ($session == true) {
$uid = '12345';
$thi...
Best suggestion will be the accepted answer
Class:
<?php
class LogInfo {
private $first_run; // Flag to add line break at the beginning of script execution
private $calling_script; // Base name of the calling script
private $log_file; // log file path and name
private $log_entry; // inform...
Hey everyone,
I'm looking to do basic stuff with sessions (user logins, authenticated forms & pages) and am just wondering what's the best wrapper/helper class out there to do this.
If you have one that you've written or really like that you'd like to share with some snippets, I'd greatly appreciate it.
Cheers,
...
While I was trying to build a Number subclass in AS3 I noticed I cannot extend the Number/int/etc. classes --- they are final.
The next best thing was casting. Still, I also don't think this is possible but since I've been asking myself this for a while I said I'd ask here to find out.
Can you create custom casting for a class you crea...
I wasn't sure if when a class is instantiated with code in PHP, if is stays in the servers cache where it would be possible to access it with ajax (php file), or if it just dies once the script finishes running.
Is it possible to do this with a Keep-Alive connection or something?
I know I'm showing my ignorance in web handle, but at th...
Hey everyone, my problem is that im trying to figure out how to get a class INSIDE another class.
What I am doing is I have a class for an Airplane with all its statistics as to how fast it can fly, how far it can go, fuel consumption, and so on. Then I have a Flight Class which is all the details about the flight: Distance, starting lo...
Hi,
I have two classes, Class A and Class B, both of them are subclasses of UIViewController.
I class A I have an NSString and I want to use this NSString in class B.
ClassA.h:
@class ClassB;
@interface ClassA : UIViewController {
ClassB *classB;
NSString stringA;
}
@property (nonatomic, retain) ClassB *classB;
@property (nonat...
hi all
how can i get list of all available classes in classpath at runtime?!
as i know in eclipse IDE by pressing crtl+shift+T it is possible to do such thing
is there any method in java to get it done?
thanks in advance
...
Hi guys, I am trying to get a users ID from a database within a class, but I have very little to no experience with classes, how could I go about getting the uid from the DB and then return the uid?
so basically something like this,
class hello {
public function getUid(){
//connect to the db
//get all of the users info
...
I've seen this problem come up a lot, but never adequately handled, and I haven't seen it on Stack Overflow, so here goes. I wish there were a way to put this shortly and succinctly without lacking clarity, but I can't seem to shorten it, so bear with me...
A good case-study (my current case, of course) to illustrate the problem follow...
I'd like to create a class of the following type
public class EnumerableDisposer<IEnumerable<IDisposable>>
But it won't let me declare it this way. I've also tried:
public class EnumerableDisposer<T> : IDisposable where T : IEnumerable<J> where J : IDisposable
But the compiler tells me that the type/namespace J could not be found....
Hey Everyone, If you've seen my previous post you'll know im working on an airline program using Python.
Another issue that poped up was that after I launch one flight, it calculates the duration of the flight and replaces the button which is used to launch the flight. But when I buy another aircraft, it changes both flight statuses to ...
In my Objective-C project I have a Country class (NSManagedObject subclass). When comparing a country to another its important for me to know the total world population. I'm doing this operation a lot and it's getting expensive. I decided to put the population in a static variable of Country. However I want to initialize this value befor...
I have the concept of a "Rule" that I want to be able to process. As such, I created the Interface below:
public interface IRule<T>
{
Boolean IsSatisfiedBy(T value);
String GetViolationMessage(T value);
}
I had planned on creating a series of "Rule" classes to represent the various rules currently supported by the system...
Hey all!
What I'm trying to do is convert an EKEvent into NSData, and then convert it back into an EKEvent.
I looked around and noticed that in order to use NSKeyedArchiver, the class must conform to the NSCoding protocol. I also found that if I was creating a custom class, I could make it conform to the NSCoding protocol by implementi...
I have a class that's similar to the following:
class Person
{
private static $_sqlData;
public function __construct($id)
{
if (!self::$_sqlData)
{
self::$_sqlData = // GET THE DB STUFF
}
}
public function getName()
{
return self::$_sqlData['name'];
}
}
This has bee...
In C#, is there way to enforce that a class MUST have a parameterless constructor?
...
I have a controller called member within this a construct function
function __construct()
{
parent::Controller();
$this->is_logged_in();
}
I want to check in my other controller that user is logged in how i can use this function in my other controller called profile and others
This is my First project with CodeIgniter
Thank ...