Unfortunately, I can see only one thing wrong here: you do not know Java well enough to develop Android apps.
How do I know? The question you are asking makes no sense: why WOULD there be a getTime() method for SMSReceiver? Did you define it yourself? There is certainly none in BroadcastReceiver. Nor is that class defined in any of Android's sample code (included with the SDK). You can't expect an yreal hlep for the group if you ask about a class you defined, but do not give us the definition. So that brings me to one more problem I see: you really need to study http://www.catb.org/~esr/faqs/smart-questions.html before posting question here or to any other Internet forum. On Jun 14, 8:47 am, souissi haythem <[email protected]> wrote: > ok, can i get the time of the system directly. > > I have tried getTime(), so i got the error: The method getTime() is > undefined for the type SMSReceiver. > > please did some one know what's rong hir??? > > On Jun 14, 2:43 pm, souissi haythem <[email protected]> wrote: > > > i don't understand, how can i do this? > > > On Jun 14, 1:55 pm, Mark Murphy <[email protected]> wrote: > > > > On Tue, Jun 14, 2011 at 7:32 AM, souissi haythem <[email protected]> > > > wrote: > > > > Hi, > > > > > I have create a new timer: Timer t=new Timer(); > > > > > than i lunch my timer: > > > > t.schedule(new TimerTask() { > > > > public void run() { > > > > > } > > > > },1000); > > > > > how can i have the value of my timer t > > > > You can't. There are no methods for that on Timer or TimerTask. > > > > General Java programming questions are probably better directed at > > > StackOverflow (with the 'java' and 'android' tags). > > > > -- > > > Mark Murphy (a Commons > > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > > Android Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

