[android-beginners] Gmail code not working with android
Hello, I have trying for many days but gmail code is not working with android.Anybody plz help me.This is what i get when run my code I/SSLSocketFactory( 335): Using factory org.apache.harmony.xnet.provider.jsse.opensslsocketfactoryi...@40160710 E/SendMail( 335): Could not connect to SMTP host: smtp.gmail.com, port: 25 E/SendMail( 335): javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25; E/SendMail( 335): nested exception is: E/SendMail( 335): java.net.ConnectException: smtp.gmail.com/74.125.43.109:25 - Connection refused E/SendMail( 335): at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391) E/SendMail( 335): at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412) E/SendMail( 335): at javax.mail.Service.connect(Service.java:310) E/SendMail( 335): at javax.mail.Service.connect(Service.java:169) E/SendMail( 335): at javax.mail.Service.connect(Service.java:118) E/SendMail( 335): at javax.mail.Transport.send0(Transport.java:188) E/SendMail( 335): at javax.mail.Transport.send(Transport.java:118) E/SendMail( 335): at com.example.emailproject.GMailSender.sendMail(GMailSender.java:66) E/SendMail( 335): at com.example.emailproject.emailsender$1.onClick(emailsender.java:24) E/SendMail( 335): at android.view.View.performClick(View.java:2344) E/SendMail( 335): at android.view.View.onTouchEvent(View.java:4133) E/SendMail( 335): at android.widget.TextView.onTouchEvent(TextView.java:6510) E/SendMail( 335): at android.view.View.dispatchTouchEvent(View.java:3672) E/SendMail( 335): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) E/SendMail( 335): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) E/SendMail( 335): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) E/SendMail( 335): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) E/SendMail( 335): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712) E/SendMail( 335): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1202) E/SendMail( 335): at android.app.Activity.dispatchTouchEvent(Activity.java:1987) E/SendMail( 335): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1696) E/SendMail( 335): at android.view.ViewRoot.handleMessage(ViewRoot.java:1658) E/SendMail( 335): at android.os.Handler.dispatchMessage(Handler.java:99) E/SendMail( 335): at android.os.Looper.loop(Looper.java:123) E/SendMail( 335): at android.app.ActivityThread.main(ActivityThread.java:4203) E/SendMail( 335): at java.lang.reflect.Method.invokeNative(Native Method) E/SendMail( 335): at java.lang.reflect.Method.invoke(Method.java:521) E/SendMail( 335): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) E/SendMail( 335): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) E/SendMail( 335): at dalvik.system.NativeStart.main(Native Method) E/SendMail( 335): Caused by: java.net.ConnectException: smtp.gmail.com/74.125.43.109:25 - Connection refused E/SendMail( 335): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:237) E/SendMail( 335): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:521) E/SendMail( 335): at java.net.Socket.connect(Socket.java:1019) E/SendMail( 335): at java.net.Socket.connect(Socket.java:960) E/SendMail( 335): at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233) E/SendMail( 335): at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:163) E/SendMail( 335): at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359) E/SendMail( 335): ... 29 more D/dalvikvm( 95): GC freed 4789 objects / 273648 bytes in 65ms D/dalvikvm( 213): GC freed 43 objects / 2080 bytes in 61ms D/dalvikvm( 167): GC freed 6439 objects / 406632 bytes in 107ms I/ActivityManager( 52): Stopping service: com.fsck.k9/.service.SleepService E/k9 ( 167): Stripping host/port from ConnectionException for conn1132482704 E/k9 ( 167): java.net.ConnectException: pop.gmail.com/74.125.43.109:995 - Connection refused E/k9 ( 167): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:237) E/k9 ( 167): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:521) E/k9 ( 167): at java.net.Socket.connect(Socket.java:1019) E/k9 ( 167): at com.fsck.k9.mail.store.ImapStore$ImapConnection.open(ImapStore.java:1894) E/k9 ( 167): at com.fsck.k9.mail.store.ImapStore$ImapConnection.sendCommand(ImapStore.java:2309) E/k9 ( 167): at com.fsck.k9.mail.store.ImapStore$ImapConnection.executeSimpleCommand(ImapStore.java:2374) E/k9 ( 167):
[android-beginners] Calender(schedular) source code
Hello all, I want to make a calendar(basically a schedular) app.I am unable to find any source code for it.Can anybody please help me out. Thanks in Advance -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-beginners] problem related to autotextbox
Hello everyone, I am making some interfaces and facing a problem.I am using autotextbox in one of my interface,i want the options that appearing the autotextbox shud all be hyperlinks so that clicking any options take the user to that specified location.Please anybody help me out. Thanks in Advance!! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Default Map Not Showing Up During Tutorial
Hello Mark, I am stuck in prob similar to this i-e i am making basic Map app that jst displays map.Only grid appears when i run my app and no map...:( I posted this problem on beginner's group but got no reply.I am using android 1.6 and working on linux.Can u share any app as shared one for windows so that I can figure out where I am wrong.Please help me I m stuck with this for many days and had tried evry thing.Please help me. Thanks in Advance On Tue, Feb 23, 2010 at 7:39 AM, Mark Murphy wrote: > Mike wrote: > > It looks to me like both of the issues you mentioned should be taken > > care of, but did I type something incorrectly? > > I am assuming the asterisks in the API key are something you put there. > Bear in mind that the API key is tied to the signing key on your > development machine, so I'm not aware of any harm in publishing them. > > Nothing leaps out at me as being particularly wrong. > > Download and grab this project: > > http://github.com/commonsguy/cw-android/tree/master/Maps/NooYawk/ > > Put your API key in place of mine and give it a shot. If it works, then > you have a basis for figuring out where we're approaching things > differently. If it doesn't work, your API key is messed up for some reason. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android 2.0 Programming Books: http://commonsware.com/books > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Developing android applications
hi Im new to android applications, i want to create a program for myself and i wanted to know which application do i need and a step my step user guide of how to create the application. thanks -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] C#.NET program compatibility
Dear Friends, I want to ask if there is some way to make a C#.Net program work on android devices. My C# program uses USB port and SQL server 2005 database. This is running perfect on windows envoironment. I want to know if there is the way to use the code of C#.NET in Android OS. I am new here and very keen to study Android OS. Thank You. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] problem with service
Hey All, I have a service which should download files in background, i am calling this service form another activity, the problem is when i am calling this service form another Activity the present Activity is getting Freezed( i.e not able to get control back ) until the all files in service are downloaded. once all the files in the service are downloaded the activity is getting the control back. what i want is the the service should download all the files in background with effecting the Activity which called the service. Help me Guys..!! Thanks, Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] restricting access to database
hello, i am trying to put password on database, so, that no other application can access my database, has any one else tried some thing similar, then kindly help me. thanks Er.Syed Imran Ali --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Debugger Display problem.
hello, i have been facing problem on Eclipse. which is as follows. when i use debug then in the file , it is showing particular function only which is currently executing, on place of whole code. if any one knows solution kindly reply soon. one more thing, to run the Eclipse and Emulator i just copy the folders form other computer to my pc. i did not install from Net. it is working every thing fine except the Debugger View as written above. Thanks and regards Er. Syed Imran Ali --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Deleting Browser BookMarks
hi! i am trying to delete the bookmark from The Browser Bookmarks but it is not working, i have tried with the following code. if any body know the solution of this code or the other way to delete the bookmark then kindly reply me. Cursor results =android.provider.Browser.getAllBookmarks(getContentResolver()); int urlColumn =results.getColumnIndex (android.provider.Browser.BookmarkColumns.URL); results.moveToFirst(); do { String geturl=results.getString(urlColumn); if(geturl.equals(url)) { // i am trying to delete this way, but it is throwing false always. // probably i have to imply the database, i am unable to do this with cursor. del_data=deleteDatabase(geturl); return; } } while(results.moveToNext()); Thanks and regards. Er. Syed Imran Ali --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] implementing of seek bar in media player
hello Dear friends! i am trying to implement seekbar or progress bar, but i am getting problem to synchronize with file. so, if any body has code for seekbar/progress bar in media player kindly send me.. or give me process to implement. Thanks and regards Er. Syed Imran Ali --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] how to see sms file.
hi! any body know to access the SMS file. if we send SMS in Emulator , then it could be save at some place or in folder. i tried too, but i did not found that folder or file, where is my SMS going. though sms text we can read from inbox. but my need to find that text file. so, if any body tried or knows, then kindly share with me. Thanks and regards Er. Syed Imran Ali. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] :: Flash Games
Hi All..#!! i am flash developer so i am planning for developing flash games for android. but i want to know does Android Support flash now...?? Cheers, Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How contacts transfer happen in blue tooth.
any one can give the details code for transfer contacts form one mobile to other mobile via bluetooth. how they take every thing on particular place, like, mob no, in mob no, name with name, and fax no. with fax no. etc. thanks and regards Er. syed imran ali --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: running an package from source code in emulator
i think it is possible, but i am also trying it. first you have to extract contacts application, and then put it on Eclipse and run it. On Jan 9, 5:01 pm, soumyaranjan wrote: > hello everybody, > Well i am a newbie to java and android, so please forgive any > stupidity. Can we run a single package say Contacts in the Android > Emulator ? > The Contacts package obviously has a structure similar to that of any > Android projects, > but an attempt to import it and run on the eclipse generates multiple > errors. > My doubt is how can the problem of unresolved classes, objects, data > members etc be solved. And most elementarily can we run a single > Android package given in the source code on the Eclipse and debug it. > Best of regards > satpathy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: :: BackGround Service..!!Help
for Menu screen, settings,higest scores Man On Dec 15, 12:44 pm, Ralf wrote: > Out of curiosity why do you need several activities for a "small" game? > R/ > > On Sun, Dec 14, 2008 at 11:42 PM, Imran wrote: > > > Hey Ralf...!! > > Actually my requirement is playing the sound continuously, even > > i shift form one activity to another the sound should be played > > continously > >At present i am using Media player, but if i move form one > > activity to other activity i am getting some Gap... > > > so i am thinking of writing a service which will play the > > sound , this service should run independently,, this service should > > not get effected even i move from one activity to another. and i > > should be able to communicate with this service form any activity in > > my App. i dont know is it possible to write this kind of service > > > please tell me is it possible to write this kind of service > > > Thanks in advance for any Replays...!!! > > > Cheers > > Imran > > > On Dec 15, 12:14 pm, Ralf wrote: > >> You don't need a service to play sounds during a game. Just use the > >> MediaPlayer > >> API.http://code.google.com/intl/fr/android/toolbox/apis/media.html > > >> R/ > > >> On Sun, Dec 14, 2008 at 9:25 PM, Imran wrote: > > >> > Hi All > > >> > i am developing a small game, now i need to write a service > >> > for playing sounds.. the problem is i am new to Service's concept.. > > >> > can i write a service tat runs in background when the game is > >> > started. and also all my activities should able to communicate with it > >> > ( i.e the service should not stop when i switch from one activity to > >> > another ) \ > > >> > please give me sample code if possible > > >> > Thanks in Advance for any replays... > > >> > Cheers > >> > Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: :: BackGround Service..!!Help
Hey Ralf...!! Actually my requirement is playing the sound continuously, even i shift form one activity to another the sound should be played continously At present i am using Media player, but if i move form one activity to other activity i am getting some Gap... so i am thinking of writing a service which will play the sound , this service should run independently,, this service should not get effected even i move from one activity to another. and i should be able to communicate with this service form any activity in my App. i dont know is it possible to write this kind of service please tell me is it possible to write this kind of service Thanks in advance for any Replays...!!! Cheers Imran On Dec 15, 12:14 pm, Ralf wrote: > You don't need a service to play sounds during a game. Just use the > MediaPlayer API.http://code.google.com/intl/fr/android/toolbox/apis/media.html > > R/ > > On Sun, Dec 14, 2008 at 9:25 PM, Imran wrote: > > > Hi All > > > i am developing a small game, now i need to write a service > > for playing sounds.. the problem is i am new to Service's concept.. > > > can i write a service tat runs in background when the game is > > started. and also all my activities should able to communicate with it > > ( i.e the service should not stop when i switch from one activity to > > another ) \ > > > please give me sample code if possible > > > Thanks in Advance for any replays... > > > Cheers > > Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] :: BackGround Service..!!Help
Hi All i am developing a small game, now i need to write a service for playing sounds.. the problem is i am new to Service's concept.. can i write a service tat runs in background when the game is started. and also all my activities should able to communicate with it ( i.e the service should not stop when i switch from one activity to another ) \ please give me sample code if possible Thanks in Advance for any replays... Cheers Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] : "no certificates" error
Hi All As the time getting close to submit my project i am getting more and more problems My application was working fine... but it is giving some " no certificate " error can any one figure out wat it mean please ??? Thanks in advance for any replays!!! the error is 11-18 20:17:31.127: ERROR/PackageParser(54): Package com.games.speedtester has no certificates at entry res/drawable/ ab.png; ignoring! Cheers, Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ::Help me Please....!!!!
Thanks Murphy..its workin. On Nov 8, 4:57 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > Please don't cross-post the same question to several lists at once. > > Imran wrote: > > In my Application i have scenario where the Button Should be in > > Pressed mode for few seconds and than it should be in unpressed mode > > > i have tried using thread But its not working > > > bt.setPressed(true); > > Thread.sleep(2000); > > bt.setPressed(false); > > > this logic is not working... the Button is always in Unpressed mode > > Only > > Like Java Swing, Android has a single UI thread for your application. > Block that thread -- such as via Thread.sleep() -- and your application > does not draw changes to the UI, like pressing a button. > > You need to return from calling bt.setPressed(true) so Android can draw > it, and find another way to get control in 2000 ms to call > bt.setPressed(false). > > One possibility: > > bt.setPressed(true); > bt.postDelayed(new Runnable() { > public void run() { > bt.setPressed(false); > } > > }, 2000); > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] ::Help me Please....!!!!
Hi In my Application i have scenario where the Button Should be in Pressed mode for few seconds and than it should be in unpressed mode i have tried using thread But its not working bt.setPressed(true); Thread.sleep(2000); bt.setPressed(false); this logic is not working... the Button is always in Unpressed mode Only please help me out... Thanks in Advance for Any replays...! Cheers Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: : How to change postion of Button at Runtime
let me put the question in this way in main.xml for Button we write but if i want to write the same code in java how can i specify android:layout_x="72px" android:layout_y="146px" through java code i.e how can i put a button in my desired place Thanks in Advance for any Replays... cheers Imran On Oct 29, 2:22 pm, Imran <[EMAIL PROTECTED]> wrote: > Haii All!!! > > In my application i need to change the position of Button at > Runtime.. is there any method for this type of scenario > Thanks in Advance for any Replays..! > > Cheers > Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: R.layout.dialog_activity cannot be resolved
hai mushimi The Error is not because of AndroidManifest.xml.. if u have already solved it let me know...!!! or else i will help u out cheers imran On Oct 14, 8:16 pm, mushimi <[EMAIL PROTECTED]> wrote: > Thanksimran, your suggestion works! now dialog_activity.java has no > error. > > But i faced another error in my main.xml after I post the above > message and before i saw your answer. The main.xml is still exactly > the same as above, but i played around with AndroidManifest.xml (and i > forgot what i changed for it!!). now AndroidManifest.xml has also no > error, but main.xml shows 1 error (pointed to line xmlns:android="http://schemas.android.com/apk/res/android"; ). the > error says: > > no resource found that matches the given name (at 'text' with value > '@string/dialog_activity_text') > > Is it because I changed AndroidManifest.xml ? > > My current AndroidManifest.xml: > > http://schemas.android.com/apk/res/android"; > package="com.iqq.adc.dialog_activity" > android:versionCode="1" > android:versionName="1.0.0"> > > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > On Oct 14, 1:46 pm,Imran<[EMAIL PROTECTED]> wrote: > > > Hi Mushimi > > >change setContentView(R.layout.dialog_activity); to > > setContentView(R.layout.main); > > > On Oct 12, 9:21 pm, mushimi <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I follow sample "Dialog Activity" and have one error as this message's > > > title. Can someone help me to have a look? > > > > My dialog_activity.java, main.xml and R.java as below: > > > > My dialog_activity.java: > > > package com.iqq.adc.dialog_activity; > > > import android.app.Activity; > > > import android.os.Bundle; > > > import android.view.Window; > > > public class dialog_activity extends Activity { > > > @Override > > > protected void onCreate(Bundle savedInstanceState) { > > > super.onCreate(savedInstanceState); > > > requestWindowFeature(Window.FEATURE_LEFT_ICON); > > > setContentView(R.layout.dialog_activity); > > > > getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, > > > android.R.drawable.ic_dialog_alert); > > > } > > > > } > > > > My main.xml: > > > > > > http://schemas.android.com/apk/res/android"; > > > android:id="@+id/text" > > > android:layout_width="fill_parent" > > > android:layout_height="fill_parent" > > > android:gravity="center_vertical|center_horizontal" > > > android:text="@string/dialog_activity_text"/> > > > > My R.java: > > > package com.iqq.adc.dialog_activity; > > > public final class R { > > > public static final class attr { > > > } > > > public static final class drawable { > > > public static final int icon=0x7f02; > > > } > > > public static final class id { > > > public static final int text=0x7f05; > > > } > > > public static final class layout { > > > public static final int main=0x7f03; > > > } > > > public static final class string { > > > public static final int app_name=0x7f040001; > > > public static final int hello=0x7f04; > > > } > > > > }- Hide quoted text - > > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] : How to change postion of Button at Runtime
Haii All!!! In my application i need to change the position of Button at Runtime.. is there any method for this type of scenario Thanks in Advance for any Replays..! Cheers Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] : how to store a image in database
Hi Can any one tell me how to store an image in Database (i.e SQLite3) Thanks in Advance for any Replays...!!! Mohd Imran Budding Android Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: R.layout.dialog_activity cannot be resolved
Hi Mushimi change setContentView(R.layout.dialog_activity); to setContentView(R.layout.main); On Oct 12, 9:21 pm, mushimi <[EMAIL PROTECTED]> wrote: > Hi, > > I follow sample "Dialog Activity" and have one error as this message's > title. Can someone help me to have a look? > > My dialog_activity.java, main.xml and R.java as below: > > My dialog_activity.java: > package com.iqq.adc.dialog_activity; > import android.app.Activity; > import android.os.Bundle; > import android.view.Window; > public class dialog_activity extends Activity { > @Override > protected void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > requestWindowFeature(Window.FEATURE_LEFT_ICON); > setContentView(R.layout.dialog_activity); > > getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, > android.R.drawable.ic_dialog_alert); > } > > } > > My main.xml: > > http://schemas.android.com/apk/res/android"; > android:id="@+id/text" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:gravity="center_vertical|center_horizontal" > android:text="@string/dialog_activity_text"/> > > My R.java: > package com.iqq.adc.dialog_activity; > public final class R { > public static final class attr { > } > public static final class drawable { > public static final int icon=0x7f02; > } > public static final class id { > public static final int text=0x7f05; > } > public static final class layout { > public static final int main=0x7f03; > } > public static final class string { > public static final int app_name=0x7f040001; > public static final int hello=0x7f04; > } > > } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: : Help Needed
On Sep 25, 10:33 am, sukanto <[EMAIL PROTECTED]> wrote: > Hi Jaideep / Imran, > I believe this this kind of system is not possible to build without > any hardware, even that will not be legal , at least in India. (no > idea about laws in other countries) > Actually initially i was planning to build some sort of software > similar to yours. But we can't access the location library of BTS. All > operator will have the location information in their BTS which general > public have no access. You have to have some extra hardware ( i forgot > the name ) which traces the call location and gives u the longitude > and latitude. > Moreover consider this scenario -> > A Vodaphone customer calling an Airtel customer, > The call first goes to Vodaphone BTS which forwards the call to a > Airtel switch without any location information.. > > soo . as far as my knowledge > is concerned this kind of software is not possible to build , > But i believe we all have the same interest to build somewhat like a > tracer, > may be we can work together, for something better. > May be we can host an open source project what u guys > say ? > > if interested plz ping me > > regards, > Sukanta Maikap > [EMAIL PROTECTED] > > On Sep 20, 6:41 pm, jaideep <[EMAIL PROTECTED]> wrote: > > > hi i too have the same doubt .. what all exactly we need to build such > > an application ... > > where to start with..?and what all requirements we need? > > > On Sep 19, 2:14 pm, Imran <[EMAIL PROTECTED]> wrote: Hi Sukanta It was very nice Explanation man. and i am very much interested in doing such kind of project... i am ready to work with u.. lets see any other guys are intrested in this... just ping me if u too are interested in this Mohd Imran Budding Android Develper --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Could not find HelloAndroid.apk!
On Sep 21, 12:17 am, patrick91 <[EMAIL PROTECTED]> wrote: > Hi I've this error when I ran the android hello world: > > [2008-09-20 21:13:34 - HelloAndroid] -- > [2008-09-20 21:13:34 - HelloAndroid] Android Launch! > [2008-09-20 21:13:34 - HelloAndroid] adb is running normally. > [2008-09-20 21:13:34 - HelloAndroid] Could not find HelloAndroid.apk! > > but in error there is nothing :( > > I'm using eclipse under debian sid hey Patrick i to got the same Problem. but i solved it in some tricky way(i think..) i created another project and copied all the files from old project to new project and than i ran my new project it worked for me.. u can try it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: View after ListView does not show up
On Sep 23, 12:14 am, elephantbug <[EMAIL PROTECTED]> wrote: > Hi, > > I have a problem to display the view (e.g. Button after the ListView > which I will bind and populate from a CursorAdapter). > > Here is the part of the XML file: > > > android:id="@+id/other_contact_layout" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:orientation="vertical" > > > android:focusable="true" > android:choiceMode="multipleChoice" > android:layout_width="fill_parent" > android:clickable="true" > android:layout_height="wrap_content"/> > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="@string/empty"/> > > > > > android:id="@+id/add_friend_layout" > android:layout_width="fill_parent" > android:layout_height="50px" > android:layout_marginTop="1px" > android:orientation="vertical" > > > android:id="@+id/add_friend_button" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:gravity="center" > android:text="bottom here" /> > > > The list displays perfectly, however, the button at bottom never shows > up.. If I put the button on top of the list, it works fine. > > Anyone know the reason? > > --elephantbug Hi can u post the complete xml fiile.!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Extremely new, need help to install on Eclipse
On Sep 23, 12:52 am, Dev <[EMAIL PROTECTED]> wrote: > I just got done installing java 6, eclipse 3.3 and android sdk .9 on > Ubuntu. I got eclipse with java working but I cannot seem to get > Android working with Eclipse. When I do the basic tutorial (the one > where it just says "Hello, Android", it just pops up the Emulator > (looks a lot like the HTC Dream) and says Android in the black > screen. Any help would be appreciated. Hey Dev when u start the emulator for the first time it will take some time to load ur application. so wait until the emulator loads ur application Mohd Imran Budding Android Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: First Steps: Learning Java by programming Android applications?
On Sep 23, 4:14 am, Ling-Ling <[EMAIL PROTECTED]> wrote: > Hey guys, > > I wanted to learn java and I also want to write applications for the > Android, so I thought I maybe could combine those two things. Would > you recommend this, or should I learn first java? > It would be great if you have a tutorial for learning java by > programming android applications in english or german^^ > > thanks > Ling-Ling Hey Ling-Ling My Advice is learn java first !!! u can spend 15 to 20 days on java and than back to Android... this will help u The best Book for java for u will be " Head First Java " Mohd Imran Budding Android Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] :Button
Hi All when we use a default Button and click on it... it will change its color( in to Orange... may be to show onClick event) but this is not the case when i use button.setBackgroundDrawable(R.drawable.My_button); than button doesn't show any change on it when i click it... so is there any solution for this... so that i can use button.setBackgroundDrawable(d) and also show some change when a button is clicked Thanks in advance for any replays...! Mohd Imran Budding Android Developer..!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] : Button
Hi All when we use a default Button and click on it... it will change its color( in to Orange... may be to show onClick event) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] : Help Needed
Hi All...!!! Hey i want to write a application in which i can know the location of my friend when he is calling me and the distance between us To write this kind application do i require any other extra Configuration to be done (or) any extra plugins...( such as any kind server, (or) GPS settings... etc ) Thanks in Advance for any Replays Mohd Imran Budding Android Developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: :adding permissions in AndroidManifest
hi hey Phil u can see my AndroidManifest.xml. still it is giving the same Error On Sep 18, 5:31 pm, Phil <[EMAIL PROTECTED]> wrote: > Hi Imran. > > The exception message already says it: > > The permission is called "android.permission.READ_CONTACTS" instead of > your "android.Manifest.permission.READ_CONTACTS". > This change should grant your package the correct permission. > > Regards, > Phil > > On Sep 18, 1:20 pm, Imran <[EMAIL PROTECTED]> wrote: > > > Hi > > > > if iam using this tag it is giving the following Error > > > " Caused by: java.lang.SecurityException: Permission Denial: > > reading > > com.android.providers.contacts.ContactsProvider uri content://call_log/calls > > from pid=672, uid=10050 requires android.permission.READ_CONTACTS " > > > can any one help me out plzzz ..!!! > > > Thanks in Advance for any replays..!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: :adding permissions in AndroidManifest
hi http://schemas.android.com/apk/res/android"; package="com.imran.calls_demo"> On Sep 18, 7:38 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > Imran wrote: > > hey mark i have tried tat on too but the error is cooming > > Can you post your entire AndroidManifest.xml file? > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: :adding permissions in AndroidManifest
hey mark i have tried tat on too but the error is cooming On Sep 18, 5:33 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > Imran wrote: > > > Try android.permission.READ_CONTACTS instead. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Warescription: All titles, revisions, & ebook formats, just $35/year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] :adding permissions in AndroidManifest
Hi if iam using this tag it is giving the following Error " Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider uri content://call_log/calls from pid=672, uid=10050 requires android.permission.READ_CONTACTS " can any one help me out plzzz ..!!! Thanks in Advance for any replays..!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] :Help needed
Hi hey... how can i send a Cursor Object to my sub-Activity... if possible give me some sample code... Thanks in Advance for any Replays!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] :textAlign
Hi "textAlign" this property is removed in SDK0.9 is there any other Property to get Text Alignement.. Thanks in Advance for any Replays!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] showAlert(...)
ha showAlert() method is removed in SDK0.9... is there any method so tat i can replace it with tat method... Thanks in advance for any replays..!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] : Help Plzzz
Hi Hai i am new to this ANDROID... so can any one tell me how to processed(in the API Sense) so tat it will be easy to me to learn Thanks in Advance for any replay's --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] adding Scroll bar
Hi How to add Scroll Bar to TextView. ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---