Re: [android-developers] Android horizontal scroll list like Gallery
I think you can use horizontal scrollview with horizontal linear layout inside. Inside linear layout you can put items without listview, i hope. Do you have a better solution? Bye 2011/4/4 umakantpatil umakantpat...@gmail.com Hey, I want horizontal scroll like Gallery. Im not using Gallery because its center locked. Can some one here would help me out with this So I can have horizontal scrolling list? I think best example of this is pulse news reader :- https://market.android.com/details?id=com.alphonso.pulse 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] Re: How is your sales model changing with the introduction of Android 3.0 and tablets, or is it?
Maybe it depends by your application, but i think it is better #1. You have to manage 2 different applications: phone version and tablet version. Consider environments: you can read football news on your mobile phone while your are on bus. Usually you use tablet in office or at home, so your are sitted, no noise, more concentration. No consider if your user has, already, payed for phone version. 2011/3/19 Chris Stewart cstewart...@gmail.com In many ways, using the compat framework makes me a little nervous. The ApiDemo I looked at had an overarching Activity that managed two fragments and while it was a simple example and only had a few is landscape, do two fragments, else, do one, I can imagine a real world app being far more complicated to migrate to that model. I'm curious how many have taken the approach of having both modes in one app. I would love to hear some experiences from having made this migration to the compat framework. On Mar 19, 2011 4:10 PM, TreKing treking...@gmail.com wrote: On Sat, Mar 19, 2011 at 12:48 PM, Chris Stewart cstewart...@gmail.com wrote: Anyone have any comments on this quote from me? I do think it's important to note that if you follow approach #1, users that purchased your app will still have access to it on the tablet, it just won't be tailored to that device's experience. I'm not sure that asking them to pay for the additional work you put into a tablet version is a bad thing. It works that way on the iPad, with no issues. I think having a separate tablet version that costs more, if that's what you want to do, is fine. It's like selling a DVD and BluRay copy of a movie - same product, different platform, where one costs more because it's bigger and better. If you want both, you have to pay for both. And if user is *really* unhappy about this, you can just refund their original phone version purchase and have them keep the tablet version, so they're only paying the difference (as was mentioned earlier) for the upgrade. Do it, go. - 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 -- 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] Chaining Methods and Performance.
I use same syntax for custom view. I think it isn't a oop valid notation, and performance improvement is poor (maybe class file size could be smaller) You can use it if you like it. Bye Il giorno 15/mar/2011 21.38, brookisme br...@stickandlogdesigns.com ha scritto: Hi Guys. When creating methods in my custom classes I like to use the old trick of returning this on a lot of methods so that I can chain methods together like so MyCustomClass mcc = new MyCustomClass(); mcc.method1().method2().method3(); I was wondering if i were to do this with my setters (so my setters had the return type MyCostumClass instead of void) will that hurt preformance? I guess the problem is I don't have a good understanding for what happens to unused return values. Thanks Brook -- 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] Get activity theme from network and apply it programmatically
Sorry, i used Reply instead of Reply at all. Suppose at compile time you have in themes.xml style name=itemText item name=android:textColor#000/item /style You release application with that themes.xml file in res/values Ok, now i want change text color without re-publish the application. So i need to download new themes.xml style name=itemText item name=android:textColor#FFF/item /style Well, how i can apply new themes.xml in my application? The task is similar to change css file in a web package. Thank you. 2011/3/14 TreKing treking...@gmail.com 2011/3/14 TreKing treking...@gmail.com On Mon, Mar 14, 2011 at 8:31 AM, Alessio Grumiro a.grum...@gmail.comwrote: Are you joking? No. Android compiles resource in res/values/. Correct. If you download a file from network, i don't know how you can use it like a resource file. True, you can't. You'd have to write your own parser, I would think. If you have an example, please give me. I does not, sorry. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices On Mon, Mar 14, 2011 at 8:36 AM, Alessio Grumiro a.grum...@gmail.com wrote: Problem was not the parser, but how i can apply styles at runtime? Moving discussion back to the group. I'd look at the source to see how the platform does it. - 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 -- 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: ProgressDialog not showing
I'm unable to do that, because it isn't a single file. Thank you. 2011/3/15 TreKing treking...@gmail.com On Tue, Mar 15, 2011 at 9:04 AM, David Williams dwilli...@dtw-consulting.com wrote: So, my return from doInBackGround is *false*. The parameter passed into onPostExecute is *true*. My assumption here is that AsyncTask would pass this from doInBackGround to onPostExecute. That is correct. Can you post the code? - 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 -- 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] Get activity theme from network and apply it programmatically
How i can perform task 3? Thank you 2011/3/14 TreKing treking...@gmail.com On Mon, Mar 14, 2011 at 3:34 AM, Premier a.grum...@gmail.com wrote: How i can do this? 1 - download file themes.xml from network 2 - saves it locally 3 - apply to current activity. - 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 -- 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 use the static fragment library in legacy apps?
Can you give me another sample app, please? 2011/3/4 Dianne Hackborn hack...@android.com If it helps, ApiDemos has all of the same fragment samples as the ones originally released for HC, but using this library. You can run them from App/Fragment Support in the UI, and the code is the Fragment*Support.java files that are right next to the existing ones for the HC framework. Also be sure to look at the source for FragmentActivity.java, which has some documentation in the class java doc giving an overview. On Fri, Mar 4, 2011 at 8:53 AM, Dan Watling daniel.watl...@gmail.comwrote: To get the example working, I just had to manually copy the 'android- support-v4.jar' from '/extras/android/compatibility/v4' into the libs folder of the project as well as add it to the build path. Lessons I've learned in the past few hours while playing with this: - Ensure all of your activities that you want to take advantage of this API extend FragmentActivity - Ensure you are using the 'android.support.v4.app.' versions of the Fragment API and not 'android.app'. -Dan On Mar 4, 10:30 am, Premier a.grum...@gmail.com wrote: I always have below error 03-04 17:29:01.800: ERROR/AndroidRuntime(448): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader@44e83790 On 4 Mar, 16:52, Alessio Grumiro a.grum...@gmail.com wrote: Ok, but it must be executed on HoneyComb (look at default.properties target=android-11). I'm unable to lunch it on android 1.6. Is the library for android 1.6? 2011/3/4 marlan marlan12...@googlemail.com under $android-sdk/extras/android/compatibility/v4/samples/ApiDemos/src/com/ example/android/apis/app/ all that extends FragmentActivity (FragmentLayoutSupport.java for example). On 4 Mrz., 16:32, Premier a.grum...@gmail.com wrote: Where did you found example, please? I need it. Thank you. On 4 Mar, 15:04, marlan marlan12...@googlemail.com wrote: Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer 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
Re: [android-developers] Re: How to use the static fragment library in legacy apps?
I've, also, attended this tutorial http://goo.gl/i45OX with same error. 03-05 14:26:57.266: ERROR/AndroidRuntime(401): Uncaught handler: thread main exiting due to uncaught exception 03-05 14:26:57.395: ERROR/AndroidRuntime(401): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.fragmenttest/com.example.fragmenttest.FragmentTestActivity}: android.view.InflateException: Binary XML file line #13: Error inflating class fragment 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.os.Handler.dispatchMessage(Handler.java:99) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.os.Looper.loop(Looper.java:123) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.app.ActivityThread.main(ActivityThread.java:4363) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at java.lang.reflect.Method.invokeNative(Native Method) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at java.lang.reflect.Method.invoke(Method.java:521) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at dalvik.system.NativeStart.main(Native Method) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): Caused by: android.view.InflateException: Binary XML file line #13: Error inflating class fragment 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:576) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.app.Activity.setContentView(Activity.java:1622) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at com.example.fragmenttest.FragmentTestActivity.onCreate(FragmentTestActivity.java:18) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): ... 11 more 03-05 14:26:57.395: ERROR/AndroidRuntime(401): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader@44e83988 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.view.LayoutInflater.createView(LayoutInflater.java:466) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:544) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 03-05 14:26:57.395: ERROR/AndroidRuntime(401): ... 20 more 2011/3/5 Alessio Grumiro a.grum...@gmail.com Can you give me another sample app, please? 2011/3/4 Dianne Hackborn hack...@android.com If it helps, ApiDemos has all of the same fragment samples as the ones originally released for HC, but using this library. You can run them from App/Fragment Support in the UI, and the code is the Fragment*Support.java files that are right next to the existing ones for the HC framework. Also be sure to look at the source for FragmentActivity.java, which has some documentation in the class java doc giving an overview. On Fri, Mar 4, 2011 at 8:53 AM, Dan Watling daniel.watl...@gmail.comwrote
Re: [android-developers] Re: How to use the static fragment library in legacy apps?
Ok, but it must be executed on HoneyComb (look at default.properties target=android-11). I'm unable to lunch it on android 1.6. Is the library for android 1.6? 2011/3/4 marlan marlan12...@googlemail.com under $android-sdk/extras/android/compatibility/v4/samples/ApiDemos/src/com/ example/android/apis/app/ all that extends FragmentActivity (FragmentLayoutSupport.java for example). On 4 Mrz., 16:32, Premier a.grum...@gmail.com wrote: Where did you found example, please? I need it. Thank you. On 4 Mar, 15:04, marlan marlan12...@googlemail.com wrote: Ok, I found the samples that uses the compatibility packages (FragmentDialogOrActivitySupport etc.). I changed the base class from FragmentLayout to FragmentLayout extends FragmentActivity and now it works. On 4 Mrz., 13:31, marlan marlan12...@googlemail.com wrote: Hi, I'm trying to use the new fragment library in an 1.6 app. I have copied the FragmentLayout.java and the fragment_layout.xml from the Apidemos and the android-support-v4.jar in my project. Everything compiled but when I run the app I get an exception: java.lang.ClassCastException: my.package.FragmentLayout$TitlesFragment cannot be cast to android.app.Fragment. (The my.package.FragmentLayout$TitlesFragment extends android.support.v4.app.Fragment) How can I use the library? The APIDemos that comes with the compatibility package seems to use only the honeycomp Api. Thanks Mark -- 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: On using themes?!
So, is it impossible to solve it directly in xml? _ Alessio Grumiro http://www.agmobilesolutions.com 2010/9/22 Mariano Kamp mariano.k...@gmail.com As it wasn't possible to submit a new post to the existing/old conversation using the web interface I am copying the message here with Danilo's permission: Hi Mariano. Did you manage to work using themes from drawables xml? I have same problem and there is no any reference but this thread and there is no solution here. If you find solution please let me know. I currently solved it by using different drawable xml for every theme but as you can see this isn't a god solution at all. About your question about getting a color from a theme (I know its old but for future readers :) ) solution I created is like this: private static int getColor(final Context context, final int id, final int defaultColor) { try { final Theme theme = context.getTheme(); if (theme == null) { return defaultColor; } TypedValue typedValue = new TypedValue(); if (theme.resolveAttribute(id, typedValue, false)) { final Resources resources = context.getResources(); final int resourceId = typedValue.resourceId; if (typedValue.type == TypedValue.TYPE_INT_COLOR_RGB8 || typedValue.type == TypedValue.TYPE_INT_COLOR_RGB4 || typedValue.type == TypedValue.TYPE_INT_COLOR_ARGB4 || typedValue.type == TypedValue.TYPE_INT_COLOR_ARGB8 || typedValue.type == TypedValue.TYPE_FIRST_COLOR_INT) { return typedValue.data; } else { return resources.getColor(resourceId); } } return defaultColor; } catch (NotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); return defaultColor; } } On Tue, May 11, 2010 at 9:08 AM, Mariano Kamp mariano.k...@gmail.comwrote: Hi Dianne. Thanks very much, almost there. I understand the procedure, it would do what I want, but I run into an exception: D/NewsRobDefaultExceptionHandler( 1839): Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2 D/NewsRobDefaultExceptionHandler( 1839): at android.content.res.TypedArray.getColor(TypedArray.java:273) D/NewsRobDefaultExceptionHandler( 1839): at android.graphics.drawable.GradientDrawable.inflate(GradientDrawable.java:647) D/NewsRobDefaultExceptionHandler( 1839): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:788) D/NewsRobDefaultExceptionHandler( 1839): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:729) D/NewsRobDefaultExceptionHandler( 1839): at android.content.res.Resources.loadDrawable(Resources.java:1690) This happens when using it the way we described here in a drawable xml. However to better understand the error I used it on other attributes and when using it on the background attribute of a View it works. Maybe this approach is incompatible with drawables that are expressed in xml? Btw. Is there any way to get the actual #rgb string for a color from a theme? Cheers, Mariano On Tue, May 11, 2010 at 8:02 AM, Dianne Hackborn hack...@android.comwrote: You need to define an attribute for your value: attr name=myColor format=color / Then make a custom theme that supplies a value for it: style name=MyTheme parent=android:Theme item name=com.my.package:myColor#ff808080/item /style And now you can reference that value from other XML: shape xmlns:android=http://schemas.android.com/apk/res/android android:shape=rectangle gradient android:startColor=?com.my.package:myColor android:endColor=#66FF android:angle=270 / /shape Note that com.my.package is your manifest's package name. Also I just wrote this by hand so I won't guarantee it is completely right. :} On Mon, May 10, 2010 at 11:02 AM, Mariano Kamp mariano.k...@gmail.comwrote: Hmmh, also no answer to this question on themes. Maybe the answer cannot be given with two lines? So let me explain what I would expect step by step and you stop me were I deviate from the Golden Path? I'll try yes/no questions. In the simplest terms I would expect that in every place I can specify a color in RGB (#) I could also specify a symbolic name instead. This should work like @color/xyz, but with one more level of indirection that lets me switch between themes, like dark and light. Is that possible? I would expect those themes
Re: [android-developers] How to get Facebook Session in second activity In Android?
I haven't read all, but i think you can - use static Facebook Session Manager in application, in this way you open facebook session once on application startup and use it in all activities. - use android service like a background thread worker. Service lives in your application context, and you can invoke specific methods from any activities. Good luck! 2010/12/15 rokson kiranrepa...@gmail.com Hi Friends, I am new to facebook implementation in android. I am trying to implement facebook in my android application. I implemented using facebook-android-sdk in first activity. I want the same in the second activity also. Second activity facebook publish button is not working even though i already logged in the first activity and giving some error. It's working well if i login in the second activity also. I was fed up with this problem. The same thing happening vice versa.( from second to first ) Can I work with unique session? I want login facebook in one activity and post(publish) in anyone of other activities. My code is as fallowing in the first activity, mFacebook = new Facebook(); mAsyncRunner = new AsyncFacebookRunner(mFacebook); SessionStore.restore(mFacebook, this); SessionEvents.addAuthListener(new SampleAuthListener()); SessionEvents.addLogoutListener(new SampleLogoutListener()); mLoginButton.init(mFacebook, PERMISSIONS); mPostButton.setOnClickListener() {// some code to post a comment } I written the same in 2nd activity also. Immediate Help Required Please. Thanks and Regards, Kiran -- 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.comandroid-developers%2bunsubscr...@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: Samsung Galaxy Tab: AVD add on package
Samsung Galaxy Tab emulator is bigger than my screen resolution. It can't starts with different screen resolution. How do you solve this issue? 2010/10/23 Lance Nanek lna...@gmail.com I was able to test a Google APIs (MapActivity, etc.) using app by copying the system.img from android-sdk\windows\add-ons \addon_google_apis_google_inc_8\images to android-sdk\windows\add-ons \addon_galaxy_tab_samsung_electronics_8\images , overwriting the one that was there, and then creating a new AVD. Obviously this is a Frankenstein and not the exact add-on as provided, but at least it still had the resolution and skin of the Galaxy Tab add-on. I'm seeing about 150 Galaxy Tab sessions for this app in my metrics, so I assume the real thing can run Google APIs apps. Although I suppose there could be development or hacked Galaxy Tab devices out there that are more capable than production models, or devices lying and saying they are Galaxy Tab devices, heh. On Oct 21, 2:47 pm, Paul idi...@gmail.com wrote: @Mark Murphy- Right, the problem is with the AVD. I just mentioned the Build target at the end as a way of clarification (also not sure if emulators/devices automatically include all libraries in classpath of running application or if they check manifest, etc., but that is another topic of discussion). Main point is- the Galaxy Tab Emulator/AVD DOES NOT RUN APPLICATIONS THAT USE GOOGLE MAPS API. Sorry for shouting. Just want people to catch on to the fact that Samsung has this thing out there that's not working. Hopefully the actual Galaxy Tab itself can support Google Maps API. And hopefully they will fix the emulator/AVD soon. That is your build target. It says nothing about the AVD. Your problem is in the AVD. -- 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.comandroid-developers%2bunsubscr...@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: Use classes defined inside other applications
you have to create a jar file and import jar library in other projects 2009/8/31 Lutz Schönemann lutz.schoenem...@sit.fraunhofer.de Hi, is it possible to use classes that are defined in other applications? I have two dependent projects and want to use classes from one project inside the other. I use eclipse and in the project preferences Project References I checked the other project. In addition I added the Project/bin-path of the first project to the seconds project libraries. Both apps are installed on a device but I get a VerifyError. How is it possible to use classes from an other application? I don't want to copy the code into the second project! Thanks for 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to DROP a Database in Android ?
you have drop all tables, or using a new version of db of change database name. 2009/8/13 Emre A. Yavuz eayl...@hotmail.com Hi, Does anybody know how to DROP a database in Android ? I've tried ContextWrapper.deleteDatabase(), mDb.close(), mDbHelper.close() etc. methods with no luck so far. I tried to remove it using the shell, but I don't have the permission to do it. I was able to drop the TABLES etc. in the database that I had created but nothing further than that. Any help is appreciated. Cheers, Emre -- More storage. Better anti-spam and antivirus protection. Hotmail makes it simple. http://go.microsoft.com/?linkid=9671352 --~--~-~--~~~---~--~~ 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] Handle long click on ItemizedOverlay
Hello i've created an ItemizedOverlay and putted on my OvertlayItems.Now i want to able to manage long tap on item, what i need to do? 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 -~--~~~~--~~--~--~---
[android-developers] Re: Close Application
Android kills your application if it is unused for long time.Your job is to close all application's activities with finish() method. Bye 2009/8/10 Blackmarket pascal.se...@gmail.com Hi, i want to add an exit button to the menu, but didn't see an easy way to close an application or acces all activities of an application and finish them. Is there an easy approach avaible? Regards, Pascal --~--~-~--~~~---~--~~ 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: Close Application
you have to close all application's activities! When you change activity, you have to call finish() on old activity, so just one activity is shown on screen and in stack. 2009/8/10 Blackmarket pascal.se...@gmail.com Doesn't work. It just closes the active Activity and changes to the last Activity. Actually it has the same effect like finish() Regards, Pascal On 10 Aug., 11:54, Carl Whalley carl.whal...@googlemail.com wrote: System.exit(0) -- Android Academyhttp://www.androidacademy.com On Aug 10, 10:36 am, Blackmarket pascal.se...@gmail.com wrote: Hi, i want to add an exit button to the menu, but didn't see an easy way to close an application or acces all activities of an application and finish them. Is there an easy approach avaible? Regards, Pascal --~--~-~--~~~---~--~~ 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: Text-To-Speech library
just googled and founded http://www.anddev.org/text-2-speech_tts_for_android_released-t3964.html 2009/8/10 Sujay Krishna Suresh sujay.coold...@gmail.com Hi all, is there any text to speech library in 1.5?? if so where is it??? how can we use it?? -- Regards, Sujay Charles de Gaullehttp://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html - The better I get to know men, the more I find myself loving dogs. --~--~-~--~~~---~--~~ 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: Close Application
I don't know, but you can save each activitie in a static list. 2009/8/10 Blackmarket pascal.se...@gmail.com Is there a way to access all Activities of an Application? My Problem is, that i don't know how to access other activities to close them. On 10 Aug., 12:49, Alessio Grumiro a.grum...@gmail.com wrote: you have to close all application's activities! When you change activity, you have to call finish() on old activity, so just one activity is shown on screen and in stack. 2009/8/10 Blackmarket pascal.se...@gmail.com Doesn't work. It just closes the active Activity and changes to the last Activity. Actually it has the same effect like finish() Regards, Pascal On 10 Aug., 11:54, Carl Whalley carl.whal...@googlemail.com wrote: System.exit(0) -- Android Academyhttp://www.androidacademy.com On Aug 10, 10:36 am, Blackmarket pascal.se...@gmail.com wrote: Hi, i want to add an exit button to the menu, but didn't see an easy way to close an application or acces all activities of an application and finish them. Is there an easy approach avaible? Regards, Pascal --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---