Re: [android-developers] how to-Start new activity with also current activity running
Hello HK, If you know the android life cycle then you may know that when we go to next activity then first activity should be on pause.So if you want the alert dialog then you can also show in the same activity.So why you create the new activity.Or if you want to handle different dialog thenuse the class file and then just call the class file from activity so activity will be running and alert dialog also popup. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity class extends ListActivity instead of Activity invokes RuntimeException
In your xml file please change the id of listview to list.So it will solve the error. On Tue, Sep 4, 2012 at 11:05 AM, David Brown da...@davidwbrown.name wrote: - I have a humble little app that successfully logs into a blog. - The HTML returned is scraped successfully into a TextView instance. - Attempts to use a ListView instead are failing miserably @ runtime - The RuntimeException displays: Your content must have a ListView whose id attribute is 'android.R.id.list' - Attempts to rectify this sad situation just changes the RuntimeException to something other. 09-03 23:59:39.016: ERROR/AndroidRuntime(634): FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{name.davidwbrown/name.davidwbrown.PebbleActivity}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) at android.app.ActivityThread.access$600(ActivityThread.java:130) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' at android.app.ListActivity.onContentChanged(ListActivity.java:243) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:259) at android.app.Activity.setContentView(Activity.java:1867) at name.davidwbrown.PebbleActivity.onCreate(PebbleActivity.java:42) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Subscribe
in string we directlt write then it will try to find from string.xml but in that this hardcoded string is not there .So thats y it gives warning.If you want to remove warning then first write string in string.xml and the use that string name here. On Tue, Jul 31, 2012 at 4:10 AM, chanakyabhara...@yahoo.com wrote: ** Sent from my BlackBerry® smartphone from !DEA -- *From: * Rafael Maas rafaelm...@gmail.com *Sender: * android-developers@googlegroups.com *Date: *Mon, 30 Jul 2012 17:13:22 -0300 *To: *android-developers@googlegroups.com *ReplyTo: * android-developers@googlegroups.com *Subject: *Re: [android-developers] Warning at hello world program is good practice to set the strings inside the file string.xml. http://developer.android.com/guide/topics/resources/string-resource.html 2012/7/30 Francisco Marzoa fmmar...@gmail.com If you do not care about l10n, you can just ignore it. Also I think you can configure lint to not warn on such issues. El 29/07/2012 21:39, Edlialbanian edlialban...@gmail.com escribió: Hi guys i'm new here and i'm getting a warning i my firt app . I get thir error [I18N] Hardcoded string Welcome, should use @string resource what should i do ?? thanks in advance -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Dear all
Hello, first of all retrive the which item is clicked and then based on cliked item call the activity so your query will be solve. On Fri, Jul 13, 2012 at 8:41 AM, srikanth srikanthandroidgro...@gmail.comwrote: sorry for my English , thanks for this solution but my intention is if i click individual options in list view retrieve different actives...as like one options for one activity and second for second activity and third for third activity On Wednesday, July 11, 2012 3:02:17 PM UTC+5:30, Rajan wrote: // -- write in onCreate() Method -- ListView ls; ls=(ListView)findViewById(ls.**id.YOUR_LISTVIEW_ID); ls.setOnItemClickListener(**this); // --**--** @Override public void onItemClick(AdapterView? adapter, View v, int position, long viewId) { Intent i = new Intent(this,CLASSNAME.class); startActivity(i); } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect if an app is launched
Hi, you can use the thread for periodically checking whether any new application is launch or not.If any found then compare with that and and if it is match then insert data in database or whatever you want to do on that found. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] button
Hello, if you want to just differenciate the button images then use the one xml and define the two image one for default and one for press and set that xml as background of button.It will solve your problem ok. On Wed, Jun 20, 2012 at 9:02 PM, bob b...@coolfone.comze.com wrote: I'm trying to make a button that uses two different images - one for when it is pressed, and one for when it's not. Anyone know an easy way to do this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Layout issue in preference screen android
Hello, For making compatible in all device you shold use the dp in height and width instead of sp and if text size is small then you can define the size like 14sp it will compatible in all device. and space between text and image if you want then give the margin right of text so it will automatically give the space.Is it your requirement? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SipDroid project + chat or sms
hello can anybody know how can we send message to other sip user in sipdroid? Or can we add chat facility in sipdroid like as in viber? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android app as background service
For receiving call you need to apply Broacastreceiver for that.and then when the application run in background then open new activity from the broadcastreceiver so it will automatic open the application in front. On Fri, Mar 30, 2012 at 12:40 PM, Neil neil.gh...@gmail.com wrote: Hi All, I want to create an Android app as background service. Specifically . I want the app to respond when there an incoming call and do some function getting the caller information. Any pointer will be appreciated ! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] date format problem
you can use calender also for the getting the current date and time.also you can get separate form that.But in which format you want? On Fri, Mar 30, 2012 at 12:35 PM, Eyal Berman bermane...@gmail.com wrote: i try to format a date from XML file the date is in the format Thu, 15 Mar 2012 00:00:00 +0200 i use that code but get an error SimpleDateFormat formatter = new SimpleDateFormat(E, dd MMM HH:mm:ss Z); Date date = formatter.parse(Thu, 15 Mar 2012 00:00:00 +0200); SimpleDateFormat simpleDateFormat =new SimpleDateFormat(dd/MM/); String dateAsString = simpleDateFormat.format(date); java.text.ParseException: Unparseable date: Thu, 15 Mar 2012 00:00:00 +0200 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] datepicker in android
2 down vote accepted No. You cannot reduce the size of a view beyond their minimum size. Using wrap_content ensures that the DatePicker is just big enough to enclose its contents. DatePicker android:layout_width=wrap_content android:layout_height=wrap_content / On Thu, Mar 29, 2012 at 1:36 PM, Kirupa answerofandr...@gmail.com wrote: Can we reduce the size of datapicker in android? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Dynamic check box
refer this link might be get solution... http://stackoverflow.com/questions/4666870/android-dynamic-checkbox-issue http://stackoverflow.com/questions/5105463/setonclicklisteners-for-dynamic-created-checkboxes On Thu, Mar 29, 2012 at 1:50 PM, Rahul Vijay rahul.vija...@gmail.comwrote: Hi, Friends I have a new problem, how to to generate a dynamic checkbox as well as fiind each checkbox id(Position of checkbox) for example- There are 4 checkbox in AVD click any one of Checkbox or one or more check box . it generate a corresponding checked id(position) Suppose I am select first Check box, it generate 1 suppose I am select first third check box it generate 1 3 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Tab in Android.
ya you can do that.just apply onclicklistener and onclick() write the intent for opening new activity. On Thu, Mar 29, 2012 at 3:01 PM, Kirupa answerofandr...@gmail.com wrote: I created three tab in one activity. Now I want to go new activity when click on tab. is it possible? please show source? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Save the whole Intent and context at somewhere
hello , can you provide me provide me any demo example which will use the servise and in that service start at end on our hand? because till now i have never use the service.i have read about service but i cant much understand so if possible the provide me. On Wed, Mar 28, 2012 at 12:47 PM, Ali Chousein ali.chous...@gmail.comwrote: Hhhmmm, what about starting a service in your broadcast receiver, which will implement the functionality you are interested in? I expect this approach will work. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Etends two activity in one class file
Thanks Fina, actually i need the menu which is created in mainactivty so thats why i am thinking for extending whole activity in preferenceactivity.can you solve this problem or any idea about this..? On Tue, Mar 27, 2012 at 1:57 PM, Fina Perez fina.pere...@gmail.com wrote: you mean extending from two classes into one? That's not possible in Java. Try using interfaces or think again about your structure. If you reached the necessity of extending two classes, I'm pretty sure your structure is not well-orientated. On márc. 27, 08:10, jugni jugni1sm...@gmail.com wrote: Hello all, i have one class file in which i have extends preferenceActivity.now i also want to extends mainactivity because in main activity i have created the menu that menu i need in this preference class.so is it possiblem to extend preferenceactivity and mainactivity within on class file? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] write addPreferencesFromResource(R.xml.preferences); without extending preferenceactivity
Thanks Justin Anderson, but when in our class which does not extend any activity thenh we can write any control like ((Activity) context).findviewbyid(R.id.button1); Thats way i want to write this addprefernce.. line. On Tue, Mar 27, 2012 at 9:34 PM, Justin Anderson magouyaw...@gmail.comwrote: hello all i want to write addPreferencesFromResource(R.xml.preferences); in class file that does not extend prefercneceactivity 1. That method is deprecated... are you sure you want to use that? 2. That method is part of the PreferenceActivity class... Therefore, you can't use it outside of that class so how can i write that? Well, you would write it like this: addPreferencesFromResource(R.xml.preferences); But it won't compile unless you are in a PreferenceActivity Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 26, 2012 at 6:04 AM, jugni jugni1sm...@gmail.com wrote: hello all i want to write addPreferencesFromResource(R.xml.preferences); in class file that does not extend prefercneceactivity.so how can i write that? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Save the whole Intent and context at somewhere
Thanks Ali for your reply, broadcastreceiver is perfectly work when my application is run in front but when it go in background then call will not handle. On Wed, Mar 28, 2012 at 4:37 AM, Ali Chousein ali.chous...@gmail.comwrote: your reply will not handle my call when my application is running in background.Is there any other way? Well, I'm not sure if I agree. I still have a feeling that you are not implementing your broadcast receiver correctly. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Notifications when App in background!
Hello All, I have the same problem but in different application.I am making the sip calling application.I have also use the broadcastreceiver class in which the incomingcall is handle.When my application is running in the background and the call is come then the alert dialogbox is not popup and during that if we pulldown the notification the alert dialogbox is popup but it is not work properly like if we click on accept of alertdialogbox then call need to answer but not happened that.so what can i do now? On Mon, Mar 26, 2012 at 5:42 AM, A. Elk lancaster.dambust...@gmail.comwrote: There's an alternative way of handling this that doesn't require opening an Activity. The new Android Design guide is a good reference for this. Although the existing Developer Guide conflates the two, dialog boxes and notifications are fundamentally different UI experiences. It's important to choose the right one, based on the UI situation at the moment. A dialog is an *alert*, which brings attention to a situation in the currently-running activity. A Toast can also be an alert. In general, you should reserve Toasts for informative messages that confirm a user action. A dialog box is better suited to unusual conditions that the user should consider before moving on to another operation. You should use both of them with a bit of reserve. When possible, anticipate what the user would do next, and do it. For example, don't ask users if they want to make another move in a game if you already know that they can't. This is just annoying. A *notification* is a report from some part of an application that is not in the foreground, which sounds like the situation the OP is encountering. Notifications are displayed in the status bar. You can set the notification so that the user can remove it from the status bar by clicking it or sliding it. You can also set the notification so that it can only be removed by an application. One of these is what the OP is looking for. You should handle C2DM broadcasts in the background, in a service. The service can send a notification to the status bar. It could also send an intent to an Activity, but I don't think that's necessary. Anything related to communications between the network and your app should be done in the background. Of course, one should *never* pop an Activity into the foreground. Make the notification, then let the user decide what to do. If you think about it, all of the default applications that come with Android do this. BTW, handling notifications this way has nothing to do with C2DM. Anything that's not of immediate interest to the user should happen in the background, and any information that comes from the background should go into a notification. On Friday, March 23, 2012 4:31:33 PM UTC-7, PinkFluffyBunny wrote: Hi friends, I have implemented push notification for my Application using c2dm,but when I send a notification to the application, I need to open the app to see the notification alert dialog box. If an push notification is sent when the application is closed or minimized (running in background) then the notification alert will not pop up till we open the application window. I want the notification to pop up even when the app is running in the background or is stopped. It can pop the alert as a banner at the top that stays for sometime and goes away or it can be a alert dialog box that needs to be dismissed. Are there any parameters specific in the payload or header that need to be specified to achieve this? How to acheive this ??? Please help! Thanks! -- Thanks , Vani -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Change the theme in android
at where the theme is store? On Fri, Mar 23, 2012 at 5:04 PM, Juned Khan jkhan6...@gmail.com wrote: setTheme(android.R.style.Theme_Dialog); -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re : passing data between activities
Please clearlly explain what you need.If you want to pass data between two activity each other then use the setactivityresulton() like this method and alos use the put extra for passing data. On Mon, Mar 26, 2012 at 3:52 PM, Farhan Tariq farhan@gmail.com wrote: Google intents , putExtra and getExtras keywords On Mon, Mar 26, 2012 at 2:33 PM, vivek elangovan elangovan.vi...@gmail.com wrote: hi members, I am having two activities in my project, In my Ist activity i m getting two values from my loop (for eg : Violation : WITHOUT HELMET and Violation : USING CELLULAR PHONE WHILE DRIVING(H) ) using putExtra i am passing these values to my IInd activity,what i need to display here is like this : violation : WITHOUT HELMET place : some place Violation : USING CELLULAR PHONE WHILE DRIVING(H) place : some place -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Calling OnCreate() of one class from another class
use the intent for calling the next activity so it will always run from starting... On Sat, Mar 24, 2012 at 3:08 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Actually i want to call web service when sms is receive with particular word and my web service is in another class and all the functionality written in OnCreate(). so i want to call web service class from sms Receive class. i m trying to call onCreate() but it throws NULL POINTER EXCEPTION. If u have any idea how to do that then please help. On Sat, Mar 24, 2012 at 2:25 PM, Justin Anderson magouyaw...@gmail.comwrote: U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody help. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Calling OnCreate() of one class from another class
I have never used the web service but you want to call oncreate() so it will help by intent. On Sat, Mar 24, 2012 at 3:18 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Thanks for reply Jagruti. can u tell me.When i start activity it will automatically use all functionality that access required web service? . On Sat, Mar 24, 2012 at 3:13 PM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: use the intent for calling the next activity so it will always run from starting... On Sat, Mar 24, 2012 at 3:08 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Actually i want to call web service when sms is receive with particular word and my web service is in another class and all the functionality written in OnCreate(). so i want to call web service class from sms Receive class. i m trying to call onCreate() but it throws NULL POINTER EXCEPTION. If u have any idea how to do that then please help. On Sat, Mar 24, 2012 at 2:25 PM, Justin Anderson magouyaw...@gmail.comwrote: U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody help. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Save the whole Intent and context at somewhere
Hello All, I have flow like activity1-broadcastreceiver-Activity2- broadcastreceiver. I can go from A1-Broadcat and then go to A2.Now i also comeback the A2-broadcat.but the probelm is that when i comeback from A2-broadcat then the content of broadcat is not work like call end and accept all things not work.It is might be possible that when A1-broadcat then the call is come in broadcast but when broadcat-A2-?broadcast then the cal state will remove bcz now it is come from A2.so before sending to A2 how can i save the intent and context which will come from A1. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Background Activity come to front
Hello All, I have Broadcast receiver class for call handeling and one main activity from which the call is go.when i press the HOME key then my application is go to background running that is fine but when the call is arrive in broadcast receiver class then i need to show alert dialog in front.for that i have call the new activity from broadcast receiver so now it will come in the front.and i have written in the new activity finish(); so it will go back into broadcast.all things work perfectly but the problem is that when i click on accept of dialog then it will not do anything means call will not accept.But i am running this application without pressing home button for moving in backgroundrunnning then call is accept and reject perfectly.so what is the problem can anybody know? Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Save the whole Intent and context at somewhere
My problem is that when the application go in background running and call arrive then that application cant handle the call in front. On Sat, Mar 24, 2012 at 2:43 AM, TreKing treking...@gmail.com wrote: Your question makes little sense and is hard to read. Please read this: http://www.catb.org/~esr/faqs/smart-questions.html and use some paragraphs to organize your thoughts. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Programmatically disable 3G/Mobile Data
Hello Jose_GD.like you have made 3G inaccesible,can we made the application will made support the 3G or internet? On Fri, Mar 23, 2012 at 7:36 PM, Jose_GD jose.gonzale...@gmail.com wrote: I have an app in my phone called APNDroid that solves this, although with a hack: it renames the APN address, that way 3G is inaccesible HTH José El jueves 22 de marzo de 2012 00:04:52 UTC-3, Hamza escribió: Hi! I am trying to develop an application that smartly manages wifi vs 3g for a user. I am looking for a way to totally disable 3G on a device (similar to how a user can do it in the settings, but programmatically instead). Specifically, I need a way to do this on Android 4.0. How can an app disable mobile data on a device?? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fill half data in Autocomplete textview
Hello, I have use the Autocompletetextview for filter the phonenumber from list when i press in the Autocompletetextview.My code is given below... ArrayAdapterString adapter; AutoCompleteTextView txt; adapter = new ArrayAdapterString(mContext,android.R.layout.simple_list_item_1,getModel()); txt= (AutoCompleteTextView)((Activity) mContext).findViewById(R.id.autotxt); txt.setThreshold(1); txt.setAdapter(adapter); private ListString getModel() { list = new ArrayListString(); Cursor phones=((Activity)mContext).getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,null, null,null,null); //Cursor phones = ((Activity)mContext).getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,ContactsContract.CommonDataKinds.Phone.CONTACT_ID + = + contactId,null, null); while (phones.moveToNext()) { String phoneNumber = phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER)); String name=phones.getString(phones.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME)); list.add(phoneNumber+ +name); } phones.close(); return list; } It is work finewhem i press 5 in Autocompletetextview then it will show me in list like 5002 jagruti.and when i click on that item then it will fillup in Autocompletetextview.But actually i need that when i press the 5 then it will show me as 5002 jagruti and when i click on that item then it will fillup the Autocompletetextview with the only 5002.i dont want to fillthe Autocompletetextview with the name also.so can anybody know how to extract only number and fillyp in Autocompletetextview .because there is no any event for fillup the Autocompletetextview . -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Incoming Call number
hello, i am using the sip demo.I want to get the incoming call number.So how can i get the \number.I have use the broadcast receiver and in that used the telephonymanager but the number will come as null.So can anybody know how to get the number.I am not using the dilapad of emulator. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sip user-agent change
hello, I am using the asterisk for sip calling.when the user is registered with asterisk then the line below is come... -- Unregistered SIP '5001' -- Registered SIP '5001' at 192.168.1.23 port 56675 expires 3600 -- Saved useragent SIPAUA/0.1.001 for peer 5001 i want to change the useragent SIPAUA/0.1.001 to JAGRUTI.So how is it possible to change user agent through android application code.In sip Header user-agent is a method but how it is use and how to change the name through code that is i dont know.Can anybody know how to change user-agent name as describe above. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Database connectivity in android
do you want to connect externel database or want to use sqlite?please explain correctly On Sat, Mar 10, 2012 at 10:44 AM, rajesh rogueraje...@gmail.com wrote: Hi All, Hope all are doing well. I want to make database connection in my application. How can i do this?. Can anyone explain briefly? Regards, S.Rajesh -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problems with PhoneGap demo with Android on Eclipse
hello, Can we run phonegap application directly in android eclips?Is there any changes require for successfull run in android?.Or can we run our android application on phonegat or blakebarry? On Thu, Mar 8, 2012 at 10:39 PM, Bob osu...@gmail.com wrote: After successfully running the PhoneGap demon under iOS I am trying to do the same with Eclipse. On my Mac Book Pro I managed to get Eclipse and all the SDKs installed and built the demo code. When I run it however it does not work and I see the following errors display in the console log: [2012-03-07 13:34:47 - HelloPhoneGap] Failed to install HelloPhoneGap.apk on device 'emulator-5556! [2012-03-07 13:34:47 - HelloPhoneGap] (null) [2012-03-07 13:34:47 - HelloPhoneGap] Failed to install HelloPhoneGap.apk on device 'emulator-5556': Connection reset by peer [2012-03-07 13:34:47 - HelloPhoneGap] com.android.ddmlib.InstallException: Connection reset by peer [2012-03-07 13:34:47 - HelloPhoneGap] Launch canceled! I see the demo UI but the buttons are inactive and the onDeviceReady() function never gets called. The code is pretty much identical to the iOS version so it has to be something in the setup of the environment but I've been over the setup several times and cannot spot an issue. Just for grins I tried to do all this on my Windows 7 machine but there I cannot even get the SDK installed. Back on my Mac I cannot update the SDK and get the same error I get on the Windows 7 machine when trying to install the SDK: [2012-03-07 16:49:41 - SDK Manager] ERROR: Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused [2012-03-08 09:35:55 - SDK Manager] ERROR: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: dl-ssl.google.com I have tried all the suggestions I have found online for resolving these errors (e.g. using http instead of https, running as Administrator on Windows, turning off the firewall and virus checking, etc) but nothing has helped. Any ideas what could be keeping this from running? As I wrote, the app comes up in the simulator and runs but once the UI is up the buttons are unresponsive and the ready function does not get called. Any help would be greatly appreciated! Thanks! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Creating a Tone Generator
hello, I want to play audio recordede file when someone call received instead of talking with them.So is it possible in android to play a recoreded file on call received? and the call will dial from phone dialpad. On Thu, Mar 8, 2012 at 7:59 PM, Mark Murphy mmur...@commonsware.com wrote: There are no APIs in Android to generate tones at arbitrary frequencies. Presumably, there are algorithms you could use for creating PCM data representing a tone, which you would play back via AudioTrack. On Thu, Mar 8, 2012 at 9:25 AM, Jordan Thompson jorythomp...@gmail.com wrote: Hi there, I know that this (seems) to have been discussed on many boards, but I have not found my answer wherever I have looked. I want to be able to generate a tone when I click down and stop when I release a button. I want to be able to set the frequency before clicking. Everything I have found so far either uses DTMF or plays a sound (not a tone) for a specific duration. Any suggestions would be most appreciated :-) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: HOw to extract only number
Thanks it works now. On Tue, Mar 6, 2012 at 5:46 PM, Remote Red rremm...@gmail.com wrote: str=txt.getText().toString(); int space1=str.indexOf( ); if ( space1 0 ) s=str.substring(0, space1); else s= str; -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: HOw to extract only number
Thanks harshita agrawal and Remote red.my problem solved befor you have given me reply.But thanks again or your reply. On Tue, Mar 6, 2012 at 11:27 AM, Marius Merkevicius upp3...@gmail.comwrote: Ok first things first. 1) As I develop, always use try/catch on these kind of operations, so they only show warnings, but wouldn't force-quit program. 2) Try putting a number only format in youre EditText. (I dont remember correctly but that's android:inputType:number or android:inputMethod:number. That will prevent user from entering symbols, only numbers. 3) Try parsing options, here is a nice and simple examples to start to. http://pages.cs.wisc.edu/~hasti/cs302/examples/Parsing/parseString.html Have fun :) On Tuesday, March 6, 2012 7:36:54 AM UTC+2, Jagruti Sangani wrote: Hello, I have textbox in that some time i will enter the onlu number like 96350254 or 5002 those are not in fix length.and sometimes if select from contact then in text box number will be with the name like 5002 jagruti.when i press the button then i want to pass only the number to the other page so how can i send only number from textbox value.I made the function and in that str=txt.getText().toString(); int space1=str.indexOf( ); s=str.substring(0, space1); this work perfectly if in tye textbox 5002 jagruti but when i enter only 5002 then it will crash the application.so can anybody know how to do successfully pass the number. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Incoming Call number from sip calling.
Hello, I am using the sip demo for making and receiving the call.I am using the my hard coded dialpad for dial the number.I wan to get the incming call number.How can i get.I have use the TelephonyManager telephony = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); String s=telephony.getLine1Number(); Log.i(number,s.substring(2)); but it will give some 55114 like this number.while i make the call from other sopft phone to my application that numer is 5002.so in logcat sip session from is give correct number like 5002.but how can i take that number in my application.Can anybody know how to get that number. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sqlite database on phone creash
hello, i have use the sqlite databse for storing and retrive the value during application run.It is work perfectly when i run my apllication on emulator but when i run my application on phone then when try to get data from database then it will crash the application.So anybody know hot to use the sqlit database on phone work. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: sqlite database on phone creash
Hello, But when i run the application on emulator then there is no error so how can i know ..? On Monday, March 5, 2012 9:23:19 PM UTC+5:30, Chris Stratton wrote: On Monday, March 5, 2012 4:20:12 AM UTC-5, Jagruti Sangani wrote: i have use the sqlite databse for storing and retrive the value during application run.It is work perfectly when i run my apllication on emulator but when i run my application on phone then when try to get data from database then it will crash the application.So anybody know hot to use the sqlit database on phone work. Most likely your code is not correct, but you are getting away with it on the emulator for some fairly random reason. Look in the log avaiable from logcat or DDMS, find the error message, and investigate the indicated line of code. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Call Back
hello, I want to record the voice and store in one file on device.When the perticular phone number will call and if it is call received by other party then instead of talking i want to play that recorded file.So please can anybody know how to play that file when call recived. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: sqlite database on phone creash
hello below is my code of database that fetch value from database and fill in listview. when we click on tab then screen will crash the application. path = /data/data/ + mContext.getApplicationContext().getPackageName() + /databases/ + call_history.db; db= ((Activity) mContext).openOrCreateDatabase(path,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); cur=db.query(history, null,call_type='r',null, null, null,null); //Cursor cur = db.query(history,null, null, null, null, null, null); cur.moveToFirst(); while (cur.isAfterLast() == false) { hm = new HashMapString, Object(); hm.put(CONTACTKEY, cur.getString(1)); hm.put(DURATION,call duration:+ cur.getString(2)); hm.put(STIME,call start time:+cur.getString(3)); myBooks2.add(hm); cur.moveToNext(); } cur.close(); On Tue, Mar 6, 2012 at 10:33 AM, moktarul anam mokta...@gmail.com wrote: Hi Jagruti Sangani, *There is some problem in ur program. one problem may be ur not closing database after fetching data from database. * *better share ur database code * * * *Moktarul anam * * * On Monday, 5 March 2012 14:50:12 UTC+5:30, Jagruti Sangani wrote: hello, i have use the sqlite databse for storing and retrive the value during application run.It is work perfectly when i run my apllication on emulator but when i run my application on phone then when try to get data from database then it will crash the application.So anybody know hot to use the sqlit database on phone work. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HOw to extract only number
Hello, I have textbox in that some time i will enter the onlu number like 96350254 or 5002 those are not in fix length.and sometimes if select from contact then in text box number will be with the name like 5002 jagruti.when i press the button then i want to pass only the number to the other page so how can i send only number from textbox value.I made the function and in that str=txt.getText().toString(); int space1=str.indexOf( ); s=str.substring(0, space1); this work perfectly if in tye textbox 5002 jagruti but when i enter only 5002 then it will crash the application.so can anybody know how to do successfully pass the number. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] put application in background run
hello but i had never use the service and also i want to comeback on front the application when call will come in my application. If you have code then please tell me how get in front. On Fri, Mar 2, 2012 at 11:46 AM, abhijeet tomar abhijeet...@gmail.comwrote: Hi Jagruti, I think you should make Service for thatbecause services runs in background. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sipmanager.newInstance not support in android gingerbread
hello, At somewhere i have read that sipmanager.newinstance not support in android gingerbreag for sip calling.So thats why manager will come to null.and also posted that there is need to create two xml file for run in mobile.So anybody know which two xml file need to create and what is in that. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] application unable to access internet on device while working properly on android emulator?
Hello, the Internet connection is on in the device but still not work. On Thu, Mar 1, 2012 at 3:41 PM, Chalavadi Sagar sagarchalav...@gmail.comwrote: check the wifi connection in your device , whether it is connected or not to make sure that your device is enabled for the use of internet based services. On Thu, Mar 1, 2012 at 3:35 PM, Juned Khan jkhan6...@gmail.com wrote: hi all developers, I have developed one SIP based application which does not use INTERNET connection while debugging on android device. but debugging on emulator it works properly.I have given all the permission in manifest.xml regarding INTERNET connection. is there any other permission to use INTERNET to run application on device. any help and suggestion will be appreciated. thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] put application in background run
hello, I want the application will go in background in run mode when i will press the home or back button.And when i want to come in front then it will come in front.like when incoming call then application run background but the call notification will display in front even if other application is open.so what can i do.I have use the onkeydown method for sending the application in background but the call notification is display when call is come.but is show when we open the application open.so if anybody have idea then plz tell me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] emulator date and time
hello,i want to store the date and time in the form of -mm-dd HH:MM:SS in database.this date and time is of emulator.I have use the calender and it will give the time and date perfectly but i have access this all things in one method of listener.and i have made the all variable as public.but when i display that variable out side listener then it will display as null.so what can i do. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Mute button in call
Ok, now you had mute the call and whenever you want to comeback from mute that means not mute at that time you do just reverse process of this.That means first check is it mute if yes then make mAudioManager. setMicrophoneMute(false); I have not tried but it might be working. On Wed, Feb 29, 2012 at 9:51 PM, brian lee br...@brianlee.org wrote: Here is the code that I am using mute within a broadcast receiver to capture the button: if(inCall==true){ mAudioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); if(mAudioManager.isMicrophoneMute()==true){ Log.v(LOG_TAG, Unmuting Mic); Toast.makeText(context, Mic Unmuted, Toast.LENGTH_LONG).show(); mAudioManager.setMicrophoneMute(false); } else{ Log.v(LOG_TAG, Muting Mic); mAudioManager.setMicrophoneMute(true); Toast.makeText(context, Mic Muted, Toast.LENGTH_LONG).show(); } Let me know if you need any more code to understand what I am doing, but the above code is muting the call, just not updating the mute button in the phone app. -Brian On Feb 28, 11:24 pm, Jagruti Sangani jagruti.sang...@inextrix.com wrote: please put the code then and then its posssible bcz if we make the mute the call then also change the state of call. On Tue, Feb 28, 2012 at 2:02 AM, brian lee br...@brianlee.org wrote: I am trying to have a app mute the call when the camera button is pressed. I have that part of the code working, but I can not for the life of me figure out if there is a way to change the state of the mute button in the call so you know that it is currently muted. Anyone know how to do that? -Brian -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to send DTMF?
Thanks but it is now working, no need to use this class.just i need to dtmf coed like for * 10 and for # 11. On Wed, Feb 29, 2012 at 8:34 PM, santhosh b santhoshb.andr...@gmail.comwrote: Hi, use below int Constants ToneGenerator class in android api TONE_DTMF_Phttp://developer.android.com/reference/android/media/ToneGenerator.html#TONE_DTMF_Pinstead of key # TONE_DTMF_Shttp://developer.android.com/reference/android/media/ToneGenerator.html#TONE_DTMF_Sinstead of key * may help you refer below link http://developer.android.com/reference/android/media/ToneGenerator.html Thanks, Santhosh. On Fri, Feb 24, 2012 at 12:03 PM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: hello all I want to send dtmf in android.I had use the call.sendDtmf(2).its working fine but i want to send * and # as dtmf.when i sen d * or # in send Dtmf then application will close.Can anybody know how to send * and # as dtmf.actually call.sendDtmf(Int var); this is only send integer data.so i have make the digital Ascii code for * and # and then try to send but this is not send more than one digit at the same time like 123 you can not send.So any idea about that how to sned * and #. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sip Demo run problem on samsung galaxy Y 2.3.6
Hello, I am using the SIP demo example from the link developer.android.com/ resources/samples/SipDemo/index.html.It is work perfectly on emulator but when i plugin the samsung galaxy Y 2.3.6 with pc and try to run on mobile then user not registered in that and also the manager is come as null.Internet in mobile is on but still registration of user not occure in that.whle in emulator run then all things work perfectly.So can anybody know what is the problem ?Why it is not run in mobile?Is there any require to run on phone. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: sip demo
Hello, I am using sip demo its work perfectly in Emulator but its not work in mobile.That means in mobile application will load but user registation not occure.There is internet is on in mobile although the reigistarion is not done?So what can i do for that plz reply me on jagruti.sang...@inextrix.com On Jan 31, 6:30 pm, zelenooq marijan.milino...@gmail.com wrote: Emulator suport SIP but You have to do this:http://code.google.com/p/android/issues/detail?id=13037 Tablet suport SIP but only if You are wireless connected. On Jan 30, 10:56 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: hello, i have used the sip demo which was onhttp://developer.android.com/guide/topics/network/sip.html link.but i got sipmanager as null result.and also api and voip support result me as false.i m using android 4.0.3 api 15 and try to call from emulator to asterisk.but not work bcz of may be manager as null.so reply me as soon as posible. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] on tab click get tab number
i have created three tab in android and i set the current tab is 1st tab .its index is 0.I am using the onTabchange listener and when i click on 1st tab then listview not display but when i click on 2nd tab then listview display.So is there any way to display listview on click of 1st tab that is also current tab. On Mon, Feb 27, 2012 at 1:44 AM, Sudeep Sharma sudeep.andr...@gmail.comwrote: Can you be please be more clear ..i couldn't understand On Sat, Feb 25, 2012 at 11:48 AM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: hello, i want to get which tab i have clicked.i have use the tab onchangelistener but it will give tab number after click on any other tab and then click on the again first tab.so anybody know how it is possible to gtet on click tab number.plz if possible give code. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Mute button in call
please put the code then and then its posssible bcz if we make the mute the call then also change the state of call. On Tue, Feb 28, 2012 at 2:02 AM, brian lee br...@brianlee.org wrote: I am trying to have a app mute the call when the camera button is pressed. I have that part of the code working, but I can not for the life of me figure out if there is a way to change the state of the mute button in the call so you know that it is currently muted. Anyone know how to do that? -Brian -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] sqlite database storage data
I have create the database using below code. db=openOrCreateDatabase(sip_db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); it is store data/data/my packaegnabe/databses but i want to know the data from consol then i use the below command [root@localhost ~]# cd /usr/src/android-sdk-linux/platform-tools [root@localhost platform-tools]# ./adb shell # cd data # cd data # cd com.example.android.sip # cd databases # ls sip_db.db # sqlite3 sip_db.db SQLite version 3.6.22 Enter .help for instructions Enter SQL statements terminated with a ; sqlite select * from history; 1|9638095998||3:30 2|5002|30| 3|5003|30|3:30 5|5800|35|3:30 6|5700|35|3:30 7|5900|35|3:30 8|500|35|3:30 9|5|35|3:30 10|963-809-5999|35|3:30 11|5200|35|3:30 this way i got the data from table .But i want to know this is on my application or on pc based database.because when i run my project on other pc then at there in table there is no data. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] sqlite database storage data
I have create the database using below code. db=openOrCreateDatabase(sip_ db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); it is store data/data/my packaegnabe/databses but i want to know the data from consol then i use the below command [root@localhost ~]# cd /usr/src/android-sdk-linux/platform-tools [root@localhost platform-tools]# ./adb shell # cd data # cd data # cd com.example.android.sip # cd databases # ls sip_db.db # sqlite3 sip_db.db SQLite version 3.6.22 Enter .help for instructions Enter SQL statements terminated with a ; sqlite select * from history; 1|9638095998||3:30 2|5002|30| 3|5003|30|3:30 5|5800|35|3:30 6|5700|35|3:30 7|5900|35|3:30 8|500|35|3:30 9|5|35|3:30 10|963-809-5999|35|3:30 11|5200|35|3:30 this way i got the data from table .But i want to know this is on my application or on pc based database.because when i run my project on other pc then at there in table there is no data. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] sqlite database storage data
I have create the database using below code. db=openOrCreateDatabase(sip_ db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); it is store data/data/my packaegnabe/databses but i want to know the data from consol then i use the below command [root@localhost ~]# cd /usr/src/android-sdk-linux/platform-tools [root@localhost platform-tools]# ./adb shell # cd data # cd data # cd com.example.android.sip # cd databases # ls sip_db.db # sqlite3 sip_db.db SQLite version 3.6.22 Enter .help for instructions Enter SQL statements terminated with a ; sqlite select * from history; 1|9638095998||3:30 2|5002|30| 3|5003|30|3:30 5|5800|35|3:30 6|5700|35|3:30 7|5900|35|3:30 8|500|35|3:30 9|5|35|3:30 10|963-809-5999|35|3:30 11|5200|35|3:30 this way i got the data from table .But i want to know this is on my application or on pc based database.because when i run my project on other pc then at there in table there is no data. On Sat, Feb 25, 2012 at 11:53 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Sat, Feb 25, 2012 at 11:44 AM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: That i know but that data will remain with my project or on other pc i need to create database and insert data again.? Hey Jagruti, I have solution for you. You can store your database in assets folder, n copy it to your application folder through code, if it doesn't exist there. This will automatically copy your code to your application if it doesn't exist there. Hope this will help you out. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] sqlite database storage data
I have create the database using below code. db=openOrCreateDatabase(sip_ db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); it is store data/data/my packaegnabe/databses but i want to know the data from consol then i use the below command [root@localhost ~]# cd /usr/src/android-sdk-linux/platform-tools [root@localhost platform-tools]# ./adb shell # cd data # cd data # cd com.example.android.sip # cd databases # ls sip_db.db # sqlite3 sip_db.db SQLite version 3.6.22 Enter .help for instructions Enter SQL statements terminated with a ; sqlite select * from history; 1|9638095998||3:30 2|5002|30| 3|5003|30|3:30 5|5800|35|3:30 6|5700|35|3:30 7|5900|35|3:30 8|500|35|3:30 9|5|35|3:30 10|963-809-5999|35|3:30 11|5200|35|3:30 this way i got the data from table .But i want to know this is on my application or on pc based database.because when i run my project on other pc then at there in table there is no data. On Sat, Feb 25, 2012 at 2:25 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Hey Jagruti, my suggestion solved your problem or not? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] database close error
Hello, i have use the sqlite for android database and use the cursor for collect the table data.At last i use the cursor.close();method.but when i run my application then it will the error as below...so what can i do.is it any solution for that. 2-25 10:24:41.919: E/Database(2851): close() was never explicitly called on database '/data/data/com.example.android.sip/databases/ sip_db.db' 2-25 10:24:41.919: E/Database(2851): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] database close error
please explain breifly i dont understand whatever you said me.plz tell me what can i do.. 2012/2/25 Kostya Vasilyev kmans...@gmail.com You are leaking the database object, not a cursor. I recommend you save the database object for reuse which will provide better performance. 25.02.2012 14:45 пользователь Jagruti Sangani jagruti.sang...@inextrix.com написал: Hello, i have use the sqlite for android database and use the cursor for collect the table data.At last i use the cursor.close();method.but when i run my application then it will the error as below...so what can i do.is it any solution for that. 2-25 10:24:41.919: E/Database(2851): close() was never explicitly called on database '/data/data/com.example.android.sip/databases/ sip_db.db' 2-25 10:24:41.919: E/Database(2851): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] internet connection
I am using the sip demo from the http://developer.android.com/resources/samples/SipDemo/index.html.i ru the proeject on emulator successfully but when i run this project on Android mobile Galaxy Y 2.3.6 then on registration not occure and manager will come null.In this mobile internet connection,voip and sip supported.So now how can i run my application on galaxy Y 2.3.6.plz reply -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] sip demo
Thanks, if i want to run the application on mobile and 3g or wifi is connected and i want that my application will automatically connect with whatever exist connection on mobile.Then for that any steps require ?At any where changes require On Fri, Feb 24, 2012 at 12:41 PM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Feb 24, 2012 at 3:57 PM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: HI i am using the sip demo from the link http://developer.android.com/resources/samples/SipDemo/index.html. Can anybody know it is support which functionality like internet,wifi, 3g AFAIK, the Android SIP stack doesn't care what interface you are using to connect. Should work over 3G, WiFi, VPN, whatever. Some carriers are indeed restricting the native SIP stack, but, AFAIK, most just remove it altogether. There might be some that restrict it WiFi, but you'll have to check or ask them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sip demo
hello, Anybody know how to send more than 1 digit in dtmf on live call like 123 or 456 instead of just 1 or 2.because i can send the just one digit at a time but not more digit at the same time.or if you know how send * and # as dtmf then also tell me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] timer on sip calling
hello, I want to start the timer when the call will establish and the timer will stop when the call will end by other party.Can anybody know how to do this.same as when the call is come in our mobile and the second is display continuesly till the call will end. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] automatic take internet connection whatever exist
hello, I want to know that if i run my application on mobile and any internet connection is there like wifi,3g,etc.Then i want to automaticaly take that connection with that application.for that any changes or ant steps require? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sqlite database storage data
hello, can anybody know the sqlite database at which place store the data like in project or inpc at any where.because i have use the sqlite database store the data on my pc its work perfect.but when this project run on other pc then no data found from table.so can anybody give me reply at where place the sqlite database.i want the data will be stay on project bcz i dont want at every time create datbase and insert data.so plz help me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] About SQLite
local database means sqlite database you have created taht one or any other? i have post below code it might be help you. -see code below- Sqlite3 use in android database creation*** SQLiteDatabase db; db=openOrCreateDatabase(sip_db.db,SQLiteDatabase.CREATE_IF_NECESSARY,null); db.setVersion(1); db.setLocale(Locale.getDefault()); db.setLockingEnabled(true); * create table* final String str =CREATE TABLE history (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ contact_num TEXT,+ call_time TEXT,”call_stime TEXT);; db.execSQL(str); ** insert data ** String ins=INSERT INTO history (contact_num)values('9638095998'); db.execSQL(ins); *** get all the data *** Cursor cur = db.query(tbl_countries, null, null, null, null, null, null); cur.moveToFirst(); while (cur.isAfterLast() == false) { view.append(\n + cur.getString(0)+\t+cur.getString(1)); cur.moveToNext(); } cur.close(); On Fri, Feb 24, 2012 at 8:38 AM, nunna narendra android developer nunnamca2...@gmail.com wrote: when i am trying to fetch the data from local database it is not working how can i solve this problem plz help me . -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sqlite database storage data
hello, i want to know the sqlite database at where store the data?It is on application device or on the pc.Because i need the data will be remain with project. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] sqlite database storage data
That i know but that data will remain with my project or on other pc i need to create database and insert data again.? On Sat, Feb 25, 2012 at 11:24 AM, Chandra Sekhar chandra4...@gmail.comwrote: On Sat, Feb 25, 2012 at 11:05 AM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: hello, i want to know the sqlite database at where store the data?It is on application device or on the pc.Because i need the data will be remain with project. -- for that u need to follow some steps: Select DDMS then Choose FileExplorer and then choose Data in that again choose Data then finally select ur project package(ex. com.lara.android) in that u have ur project database tables and select later u need to open -- -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] on tab click get tab number
hello, i want to get which tab i have clicked.i have use the tab onchangelistener but it will give tab number after click on any other tab and then click on the again first tab.so anybody know how it is possible to gtet on click tab number.plz if possible give code. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] sqlite database storage data
that is also i know but it is in our project part or consider as a pc? On Sat, Feb 25, 2012 at 11:45 AM, rathod kantilal rathod3...@gmail.comwrote: your database file is store in following path. data/data/database/*yourdatabasename* no thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Show output on screen.
you can write Toast.makeText(WalkieTalkieActivity.this,hello. , 200).show(); this will display as message on screen. Or if you want ti display on ui screen that use the textview and set text to that textview. On Fri, Feb 24, 2012 at 1:39 AM, Ma goodp...@gmail.com wrote: How do I get the output to show on the screen? I know that Sytem,out.println goes to the log, I have tried toasts, and other things, I am looking for some suggestions here. How do I implement a Textview. Please be as specific as possible. Thanks if (1.equals(PleaseEnter.getText().toString())) { System.out.println(This is 1); } else if (PleaseEnter.equals(2)) System.out.println(This 2); else if (PleaseEnter.equals(3)) System.out.println(This 3); else System.out.println(That number is not recognized.); }} catch (Exception ex) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Two listview
Create two listview and onclick of listview1's item call the function and pass the item value in that function.now in that function fill up the listview with passed item value. On Thu, Feb 23, 2012 at 7:50 PM, hazem omies hazem.om...@gmail.com wrote: hi. i have xml file that read remotely from server and put the data in listview i need a way that this lisview on click item pass this value to another related listview -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get the DB File from real android device
you can get location for insert data through consol but you can not get as copy and paste at other place. On Thu, Feb 23, 2012 at 6:47 PM, suram sridhar suram.srid...@gmail.comwrote: Hi friends, Can u please help me to get the db file from the real device(Android). I am using debug build of the app, but still i am not able to get the db file. I am using adb shell command to pull the file. eg# adb pull dbname c:\ Please give the reply which command should i use in ADB SHELL. -- *Best Thanks Regards ** * -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to send DTMF?
hello all I want to send dtmf in android.I had use the call.sendDtmf(2).its working fine but i want to send * and # as dtmf.when i sen d * or # in send Dtmf then application will close.Can anybody know how to send * and # as dtmf.actually call.sendDtmf(Int var); this is only send integer data.so i have make the digital Ascii code for * and # and then try to send but this is not send more than one digit at the same time like 123 you can not send.So any idea about that how to sned * and #. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to know our application support different configuration
Hello, How can we know wether our application is supported with internet, 3g,wifi..etc.and if all is available then which one it will take automatically? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sip demo
HI i am using the sip demo from the link http://developer.android.com/resources/samples/SipDemo/index.html. Can anybody know it is support which functionality like internet,wifi, 3g -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sip calling
Hello, I am using the SIP demo example from developer.android.com/resources/ samples/SipDemo/index.html. When The application start to run it will register the sip user two times.I have use the asterisk and i had seen that two times unregister and register occure .so can anybody know why this was happen.And also i want to set timer fro start outgoing call to end call.plz reply if you know. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Audio not work in emulator
hello, I am using the fedora 15.when i start the emulator then the warning is display that emulator: warning: opening audio output failed.so what is the solution.Is it problem of emulator not support or fedora?. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to get call history
hello, I want to get call history when i click on menuitem call history.And when i get the call history it might be last 10 histry then i click on any number from history then it make call from that.So please anybody know how to get call histry.I am doing sip calling. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] call history of sip calling
i get the call history of emulator but i dont use the emulator fro calling but i had make my own dialpad and from that i make the call so how and at where i will store that number so i can get the call history number.Or is it any other way to get call history from asterisk?.. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Oncall Establish status not get
my code is given below: public void initiateCall() { Toast.makeText(WalkieTalkieActivity.this,..in the initiate call--+flag,300).show(); updateStatus(sipAddress); try { SipAudioCall.Listener listener = new SipAudioCall.Listener() { // Much of the client's interaction with the SIP Stack will // happen via listeners. Even making an outgoing call, don't // forget to set up a listener to set things up once the call is established. @Override public void onCallEstablished(SipAudioCall call) { call.startAudio(); call.setSpeakerMode(true); call.toggleMute(); call.sendDtmf(2); updateStatus(call); } @Override public void onCallEnded(SipAudioCall call) { updateStatus(End of calling...); } }; call = manager.makeAudioCall(me.getUriString(), sipAddress, listener, 30); // Toast.makeText(WalkieTalkieActivity.this,in call+call, 300).show(); if(call.isInCall()) { Toast.makeText(WalkieTalkieActivity.this,it is in call,300).show(); } call.continueCall(120); } catch (Exception e) { Log.i(WalkieTalkieActivity/InitiateCall, Error when trying to close manager., e); if (me != null) { try { manager.close(me.getUriString()); } catch (Exception ee) { Log.i(WalkieTalkieActivity/InitiateCall, Error when trying to close manager., ee); ee.printStackTrace(); } } if (call != null) { call.close(); } } } in this I have use the SipAudioCall listener that make the call but whatever i write in oncall establish that will not display.As well as on Call ended the cursor is not go in that method.Please anybody have idea how this was happen?. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to get outgoing call status
Hello, But this is not work for sip calling.It is use if we had use the internal dialer for calling . On Wed, Feb 15, 2012 at 1:10 PM, vijay kher khervija...@gmail.com wrote: Try this TelephonyManager telephonyManager =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); telephonyManager.listen(new MyPhonestateListener(), PhoneStateListener.LISTEN_CALL_STATE); private class MyPhonestateListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { super.onCallStateChanged(state, incomingNumber); switch (state) { case TelephonyManager.CALL_STATE_IDLE: break; case TelephonyManager.CALL_STATE_OFFHOOK: break; case TelephonyManager.CALL_STATE_RINGING: break; default: break; } } may you get some help -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Re : onclick image redirecting
I will checkout. On Wed, Feb 15, 2012 at 5:07 PM, vivek elangovan elangovan.vi...@gmail.comwrote: i attached my source files and mailed it to you.pls check it. On Feb 15, 12:09 pm, Jagruti Sangani jagruti.sang...@inextrix.com wrote: i am asking about images how u use like imageview,imagebutton or image galary?because based on u use the images you can apply the intent.grid layout is a one type display layout not control.plz specify clearly or u can code paste here. On Wed, Feb 15, 2012 at 12:34 PM, vivek elangovan elangovan.vi...@gmail.com wrote: In a grid layout displayed images and using posistion can i call intent? On Feb 15, 11:55 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: how you had use the images like different image control or in Image galary? On Wed, Feb 15, 2012 at 12:21 PM, vivek elangovan elangovan.vi...@gmail.com wrote: how can we get the id of the image and redirect to corresponding url for eg : Yahoo and google image will be in my list of images,if i click yahoo image onclick -redirect to yahoo page google image ---onclick ---redirect to google page On Feb 15, 11:35 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: On image click event use the intent and pass the url in that like Uri.parse(link) so it will redirect on that link. On Wed, Feb 15, 2012 at 12:04 PM, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I m displaying list of images and my scenario is i want to redirect to some page corresponding to the image i clicked.If i m having list of urls corresponding to the images i had where i have to mention the url? and onclicking the image i have to redirect to corresponding url. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get total call duration of last call as well as all call duration
Hello, I want to get the total call duration.I am using the posted code but in that I am getting something error like cursor index -1 requested with total records 10.How can i get the call duration of last call.Basically i want the timer system like when call will start then timer will start and when call end then timer will stop.But that is not occur with me so i am trying to get total call duration.If anybody know then plz reply me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get outgoing call status
Hello, I want the outgoing call status.Because based on status i want to start timer and end the timer.So we can show the time of call.if anybody have idea please reply me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re : onclick image redirecting
On image click event use the intent and pass the url in that like Uri.parse(link) so it will redirect on that link. On Wed, Feb 15, 2012 at 12:04 PM, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I m displaying list of images and my scenario is i want to redirect to some page corresponding to the image i clicked.If i m having list of urls corresponding to the images i had where i have to mention the url? and onclicking the image i have to redirect to corresponding url. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Re : onclick image redirecting
how you had use the images like different image control or in Image galary? On Wed, Feb 15, 2012 at 12:21 PM, vivek elangovan elangovan.vi...@gmail.com wrote: how can we get the id of the image and redirect to corresponding url for eg : Yahoo and google image will be in my list of images,if i click yahoo image onclick -redirect to yahoo page google image ---onclick ---redirect to google page On Feb 15, 11:35 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: On image click event use the intent and pass the url in that like Uri.parse(link) so it will redirect on that link. On Wed, Feb 15, 2012 at 12:04 PM, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I m displaying list of images and my scenario is i want to redirect to some page corresponding to the image i clicked.If i m having list of urls corresponding to the images i had where i have to mention the url? and onclicking the image i have to redirect to corresponding url. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Get call duration.
Hello, Iam using the below code and output will give as below. Cursor c = context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null, null, null,android.provider.CallLog.Calls.DATE + DESC); int total=c.getCount(); int numberColumn = c.getColumnIndex(android.provider.CallLog.Calls.NUMBER); int dateColumn = c.getColumnIndex(android.provider.CallLog.Calls.DATE); // type can be: Incoming, Outgoing or Missed int typeColumn = c.getColumnIndex(android.provider.CallLog.Calls.TYPE); int DurationColumn = c.getColumnIndex(android.provider.CallLog.Calls.DURATION); if(c.moveToPosition(0)){ // c.move(1); String callerPhoneNumber = c.getString(numberColumn); String callerPhoneDate = c.getString(dateColumn); String TYeor = c.getString(typeColumn); String Duration = c.getString(DurationColumn); Toast.makeText(WalkieTalkieActivity.this,type column- +TYeor ,Toast.LENGTH_SHORT).show(); Toast.makeText(WalkieTalkieActivity.this,duration- +Duration ,Toast.LENGTH_SHORT).show(); Toast.makeText(WalkieTalkieActivity.this,phone number- +callerPhoneNumber ,Toast.LENGTH_SHORT).show(); } output: type:-2 duration-6258 phonenumber:-1552175049 But what is it that i dont know so how can i get correct output please tell me.If any other way then also tell me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Re : onclick image redirecting
i am asking about images how u use like imageview,imagebutton or image galary?because based on u use the images you can apply the intent.grid layout is a one type display layout not control.plz specify clearly or u can code paste here. On Wed, Feb 15, 2012 at 12:34 PM, vivek elangovan elangovan.vi...@gmail.com wrote: In a grid layout displayed images and using posistion can i call intent? On Feb 15, 11:55 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: how you had use the images like different image control or in Image galary? On Wed, Feb 15, 2012 at 12:21 PM, vivek elangovan elangovan.vi...@gmail.com wrote: how can we get the id of the image and redirect to corresponding url for eg : Yahoo and google image will be in my list of images,if i click yahoo image onclick -redirect to yahoo page google image ---onclick ---redirect to google page On Feb 15, 11:35 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: On image click event use the intent and pass the url in that like Uri.parse(link) so it will redirect on that link. On Wed, Feb 15, 2012 at 12:04 PM, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I m displaying list of images and my scenario is i want to redirect to some page corresponding to the image i clicked.If i m having list of urls corresponding to the images i had where i have to mention the url? and onclicking the image i have to redirect to corresponding url. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get outgoing call status
Hello, I am using the telephonymanger for get call status but it will always return me as null.So how can we get the call status. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number
Thanks but if you have call state get code then please send me. On Mon, Feb 13, 2012 at 11:17 AM, Nitin Sethi sethi.5...@gmail.com wrote: I guess it would not work for SIP. You can have a look at the below link. http://developer.android.com/reference/android/net/sip/SipSession.State.html On Feb 13, 9:52 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: Hello, Is it work for sip calling?Because in that i have still not use theTelephonyManager and now i want to get cthe state of calling.So please reply is it work for sip calling. On Sat, Feb 11, 2012 at 11:58 PM, Nitin Sethi sethi.5...@gmail.com wrote: here it is.. full code I have pasted down... Specifically this line I added. ((TelephonyManager) context .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() == TelephonyManager.CALL_STATE_RINGING if (((TelephonyManager) context .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() == TelephonyManager.CALL_STATE_RINGING) { String number = intent .getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER); if (number.equals(+919663487031) || number.equals(9742431366)) { // My // Gf's // Number // :D AudioManager vAudioManager = (AudioManager) context .getSystemService(Context.AUDIO_SERVICE); int maxVolume = vAudioManager .getStreamMaxVolume(AudioManager.STREAM_RING); vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); vAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume, AudioManager.FLAG_SHOW_UI); } else { Toast.makeText(context, Forget it, Toast.LENGTH_LONG).show(); } } On Feb 11, 6:50 pm, Jagruti Sangani jagruti.sang...@inextrix.com wrote: Canyou please post the cade about getcallstate() On Sat, Feb 11, 2012 at 6:16 PM, Nitin Sethi sethi.5...@gmail.com wrote: Hi All, I could finally sort out this issue. It so turns out that the Broadcast Intent i want to receive doesn't linger for long enough for your receiver to consume it and process it. In technical words, the intent is NOT STICKY. Hence, I had to get the state using the method getCallState() to process the Intent. :) On Feb 11, 3:59 pm, Nitin Sethi sethi.5...@gmail.com wrote: Hi All, I have been trying very hard to get it work in my Gingerbread 2.3.5 phone but with no success. I have read all the posts and have come up with the below code which works very rarely. I suspect it has permissions issue but could not zero in on the issue which is bugging me for long. My Manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android= http://schemas.android.com/apk/res/android; package=utils.self.puttu android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=10 / uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS / uses-permission android:name=android.permission.READ_PHONE_STATE / application receiver android:name=.PersonalisedSetting intent-filter action android:name=android.intent.action.PHONE_STATE / /intent-filter /receiver /application /manifest My Receiver: package utils.self.puttu; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.media.AudioManager; import android.telephony.TelephonyManager; import android.widget.Toast; public class PersonalisedSetting extends BroadcastReceiver { // private PhoneStateListener myListener = null; @Override public void onReceive(Context context, Intent intent) { // if (intent.getStringExtra(TelephonyManager.EXTRA_STATE) == // TelephonyManager.CALL_STATE_RINGING) String number = intent .getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER); if (number.equals(+919742431366) || number.equals(9742431366)) { // My Gf's Number :D AudioManager vAudioManager = (AudioManager) context .getSystemService(Context.AUDIO_SERVICE); int maxVolume = vAudioManager .getStreamMaxVolume(AudioManager.STREAM_RING); vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); vAudioManager.setStreamVolume
Re: [android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number
Hello, Is it work for sip calling?Because in that i have still not use theTelephonyManager and now i want to get cthe state of calling.So please reply is it work for sip calling. On Sat, Feb 11, 2012 at 11:58 PM, Nitin Sethi sethi.5...@gmail.com wrote: here it is.. full code I have pasted down... Specifically this line I added. ((TelephonyManager) context .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() == TelephonyManager.CALL_STATE_RINGING if (((TelephonyManager) context .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() == TelephonyManager.CALL_STATE_RINGING) { String number = intent .getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER); if (number.equals(+919663487031) || number.equals(9742431366)) { // My // Gf's // Number // :D AudioManager vAudioManager = (AudioManager) context .getSystemService(Context.AUDIO_SERVICE); int maxVolume = vAudioManager .getStreamMaxVolume(AudioManager.STREAM_RING); vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); vAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume, AudioManager.FLAG_SHOW_UI); } else { Toast.makeText(context, Forget it, Toast.LENGTH_LONG).show(); } } On Feb 11, 6:50 pm, Jagruti Sangani jagruti.sang...@inextrix.com wrote: Canyou please post the cade about getcallstate() On Sat, Feb 11, 2012 at 6:16 PM, Nitin Sethi sethi.5...@gmail.com wrote: Hi All, I could finally sort out this issue. It so turns out that the Broadcast Intent i want to receive doesn't linger for long enough for your receiver to consume it and process it. In technical words, the intent is NOT STICKY. Hence, I had to get the state using the method getCallState() to process the Intent. :) On Feb 11, 3:59 pm, Nitin Sethi sethi.5...@gmail.com wrote: Hi All, I have been trying very hard to get it work in my Gingerbread 2.3.5 phone but with no success. I have read all the posts and have come up with the below code which works very rarely. I suspect it has permissions issue but could not zero in on the issue which is bugging me for long. My Manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=utils.self.puttu android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=10 / uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS / uses-permission android:name=android.permission.READ_PHONE_STATE / application receiver android:name=.PersonalisedSetting intent-filter action android:name=android.intent.action.PHONE_STATE / /intent-filter /receiver /application /manifest My Receiver: package utils.self.puttu; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.media.AudioManager; import android.telephony.TelephonyManager; import android.widget.Toast; public class PersonalisedSetting extends BroadcastReceiver { // private PhoneStateListener myListener = null; @Override public void onReceive(Context context, Intent intent) { // if (intent.getStringExtra(TelephonyManager.EXTRA_STATE) == // TelephonyManager.CALL_STATE_RINGING) String number = intent .getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER); if (number.equals(+919742431366) || number.equals(9742431366)) { // My Gf's Number :D AudioManager vAudioManager = (AudioManager) context .getSystemService(Context.AUDIO_SERVICE); int maxVolume = vAudioManager .getStreamMaxVolume(AudioManager.STREAM_RING); vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); vAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume, AudioManager.FLAG_SHOW_UI); } else { Toast.makeText(context, Forget it, Toast.LENGTH_LONG).show(); } } } -- 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+unsubscr...@googlegroups.com For more options, visit
Re: [android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number
Canyou please post the cade about getcallstate() On Sat, Feb 11, 2012 at 6:16 PM, Nitin Sethi sethi.5...@gmail.com wrote: Hi All, I could finally sort out this issue. It so turns out that the Broadcast Intent i want to receive doesn't linger for long enough for your receiver to consume it and process it. In technical words, the intent is NOT STICKY. Hence, I had to get the state using the method getCallState() to process the Intent. :) On Feb 11, 3:59 pm, Nitin Sethi sethi.5...@gmail.com wrote: Hi All, I have been trying very hard to get it work in my Gingerbread 2.3.5 phone but with no success. I have read all the posts and have come up with the below code which works very rarely. I suspect it has permissions issue but could not zero in on the issue which is bugging me for long. My Manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=utils.self.puttu android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=10 / uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS / uses-permission android:name=android.permission.READ_PHONE_STATE / application receiver android:name=.PersonalisedSetting intent-filter action android:name=android.intent.action.PHONE_STATE / /intent-filter /receiver /application /manifest My Receiver: package utils.self.puttu; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.media.AudioManager; import android.telephony.TelephonyManager; import android.widget.Toast; public class PersonalisedSetting extends BroadcastReceiver { // private PhoneStateListener myListener = null; @Override public void onReceive(Context context, Intent intent) { // if (intent.getStringExtra(TelephonyManager.EXTRA_STATE) == // TelephonyManager.CALL_STATE_RINGING) String number = intent .getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER); if (number.equals(+919742431366) || number.equals(9742431366)) { // My Gf's Number :D AudioManager vAudioManager = (AudioManager) context .getSystemService(Context.AUDIO_SERVICE); int maxVolume = vAudioManager .getStreamMaxVolume(AudioManager.STREAM_RING); vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); vAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume, AudioManager.FLAG_SHOW_UI); } else { Toast.makeText(context, Forget it, Toast.LENGTH_LONG).show(); } } } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dtmf query
hi, Can you send me code if you have.Because i am new in this concept.I have use the sip demo exmple for sip calling.It is work perfectly for calling and receiving.It shown in asterisk when call made.plz send me reply -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Re : SMS application
hi Do you know how to call new cativity from function. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Cronometer
for starting cronometer just need to findviewby id and then obj.start(); method call it will automatically start. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to receive/catch SIP MESSAGE
sip message that menas yoo want to notify that the call is coming and ringing...?please specify.. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] chat implementation
can you send me the code of chat?Please i had see the demo which was you had send. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MS SQL connection
use the php for connecting mysql database and android. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Eclipse: Switch between devices for testing
Once you connect your device and pc then run your android application from start.Then it will automatically detect the your device instead of avd version.Select your device and continue. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re : SMS application
HI, Can you send me your application full code?Because I really want that application for my project training. Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ACTION_SCREEN_ON when phone call comes in
hello, I have same like problem.I want the notification when the call will come.lI am using the SIP demo application from net.if anybody have idea then plz inform me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en