[android-developers] Re: ccc..
*It will be something like this:* // Specify the result column projection. Return the minimum set // of columns required to satisfy your requirements. String[] result_columns = new String[] { KEY_ID, KEY_GOLD_HOARD_ACCESSIBLE_COLUMN, KEY_GOLD_HOARDED_COLUMN }; // Specify the where clause that will limit our results. String where = KEY_GOLD_HOARD_ACCESSIBLE_COLUMN + = + 1; // Replace these with valid SQL statements as necessary. String whereArgs[] = null; String groupBy = null; String having = null; String order = null; SQLiteDatabase db = hoardDBOpenHelper.getWritableDatabase(); Cursor cursor = db.query( HoardDBOpenHelper.DATABASE_TABLE, result_columns, where, whereArgs, groupBy, having, order); *Meier, Reto (2012-04-05). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Locations 6827-6833). John Wiley and Sons. Kindle Edition. * On Thursday, October 4, 2012 4:21:12 AM UTC-5, Ibrahim wrote: Hello friends... Can any one help me out how to retrive the image and text from sqlite db...and that image and text i should insert in listview... 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] Re: Google account from different country
On Thu, Oct 4, 2012 at 4:26 PM, Rudolf Hornig rudolf.hor...@gmail.com wrote: It will work. I'm using a Austrian bank account and my company is based in Hungary. Just out of curiosity, how do you handle taxes under that arrangement? Specifically, do you pay any Austrian taxes, or deal with Austrian tax authorities at all? -- 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: android based robot
You may want to buy a Lego Mindstorms kit that has electric motors. Also, you may want to look up servo motors. I would think you can send Bluetooth signals to a motor. Also, you may want to visit a Brookstone store to see the state of the art in this domain (i.e. RC cars controlled by app). On Tuesday, October 2, 2012 3:26:05 AM UTC-5, Rajat Trivedi wrote: hey..i want to develop a android based mobile robot..so can some body tell me from whr i hav to strt...i m just confused.. -- 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] TextureView canvas drawing problems
Thank you so much Romain for your reply and example. I might be the only real canvas textureview example on the net. It worked but not quite as you said. It might be something to do with my class structure as this part of the program does not have internal classes.. I will explain and show a little. Maybe my approach is bad or wrong I don't know. CLASSES Main Activity spawns - CustomTextureView class extending TextureView -this spawns the worker thread (it does not extend thread but just a worker class) the TextureView constructor public CustomTextureView (Context context, AttributeSet attrs) { super(context, attrs); mContext = context; setWillNotDraw(true); setFocusableInTouchMode(true); setFocusable(true); setSurfaceTextureListener(this); } and the listener callback within this class @Override public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { // TODO Auto-generated method stub isRunning = true; mSurface = surface; mChart.setTextureSurface(surface);//mChart is the worker class/thread mChart.setSurfaceSize(width, height); mChart.Redraw(true);//this does all the canvas drawing on a bitmap for buffering. invalidate();//this is essential to make it display on 1st run..why? } The worker class spawned from the CustomTextureView and the critical void protected void RenderCanvas(){ final Canvas canvas = CustomTextureView .lockCanvas(null); try { canvas.drawBitmap(buffBitmap, 0, 0, null); } finally { CustomTextureView .unlockCanvasAndPost(canvas); mSurface.updateTexImage(); } } So I do not work from the main activity and don't understand why I need to call invalidate() in onSurfaceTextureAvailable for the 1st run to display properly. Romain Guy you said NOT to call updateTexImage but if I don't my 2d chart does not update with the new buffBitmap when it is available. this I definitely don't understand Anyway it works and thanks for putting me on the right track but am i still doing some android bad? C On Thursday, 4 October 2012 00:06:00 UTC+2, Romain Guy (Google) wrote: Here is a fully working example of Canvas TextureView: http://pastebin.com/J4uDgrZ8 On Wed, Oct 3, 2012 at 3:01 PM, Romain Guy roma...@android.comjavascript: wrote: The problem is that you are calling updateTexImage() yourself. Do *not* do this. You are interfering with TextureView, preventing it from receiving the events that it uses to refresh the screen. On Tue, Oct 2, 2012 at 7:40 AM, Conrad Chapman chapman...@gmail.comjavascript: wrote: Also asked in StackOverflow here http://stackoverflow.com/questions/12688409/android-textureview-canvas-drawing-problems I have an app that used SurfaceView to draw dynamic 2D graphs. It worked ok but transormations etc as we know are not supported. So I went to TextureView. My old code used another class/thread to do the drawing via the Surfaceholder.lockCanvas(); So I changed this to TextureView.lockcanvas. When this runs the canvas is not accelerated (the view is). It does not display initially but if I touch the screen it displays??? The touch is handled by the main activity. Obviously it works as it will display eventually but why doesn't it display immediately? The TextureView class implements SurfaceTextureListener as such below. @Override public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { // TODO Auto-generated method stub isRunning = true; mySurface = surface; mChart.setTextureSurface(surface); mChart.setSurfaceSize(width, height); mPaint.setColor(ZOOM_BUTTONS_COLOR); //mySurface.setOnFrameAvailableListener(frameready); mChart.Redraw(true); } @Override public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { // TODO Auto-generated method stub isRunning = false; return false; } this block below also workswhen manipluating the view later on (pan and zoom) public void Render(Bitmap buffmap){ //mCanvas = null; post(new Runnable() { public void run() { invalidate(); mySurface.updateTexImage(); } }); The drawing from the worker thread/class is protected void RenderCanvas(){ //mCanvas = null; Canvas c = null; //synchronized (mCanvas) { //mCanvas = null; try { c = mChartView.lockCanvas(null); synchronized (mCanvas) { c.drawBitmap(buffBitmap, 0, 0, null); } } finally { if (c != null) { mChartView.unlockCanvasAndPost(c); } } mChartView.Render(null); } Can I work like this? Non-GL content in a TextureView? Please help desperate for an answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to
Re: [android-developers] TextureView Canvas
As it happens our friend Romain Guy did have some ideas https://groups.google.com/forum/?fromgroups=#!topic/android-developers/_Ogjc8sozpA thank you On Wednesday, 3 October 2012 11:34:58 UTC+2, Conrad Chapman wrote: I have a similar problem but I was using SurfaceView properly as you mention Romain Guy but changing my code over does not work. The problem and code was posted here http://stackoverflow.com/questions/12688409/android-textureview-canvas-drawing-problems The unlockandpostcanvas method does nothing. neither does TextureView.invalidate or surface.updateTexImage(). Only tapping the screen gets it to display?? Any ideas? On Monday, 1 October 2012 18:17:57 UTC+2, Romain Guy (Google) wrote: There is an overhead associated to invalidate() but unless your hierarchy is extremely complicated it shouldn't be such an issue. But you're right: SurfaceView can be used to avoid calling invalidate() but don't override it's onDraw() method. You usually create a new thread that renders onto the surface. On Mon, Oct 1, 2012 at 2:53 AM, Ajit Vasudevan vasu...@gmail.com wrote: Hi Romain, Thanks for your response. I was experiencing a very interesting behavior. I started using a custom view inside a framelayout, and performed all the primitive operations and called invalidate() to let the system call onDraw. It was choking. I even tried to invalidate a rect, but it was just not fast enough - the 2nd view that was requesting the underlying view to redraw certain primitives based on the actions on the 2nd view was not responsive. I then started using the SurfaceView to see if there is any benefit for the same operation - and voila - it worked like a charm. This is why is used SurfaceView as a substitute - there was an apparent performance benefit. That said, I'm going to take another look at my hierarchy, and all the custom views (there are quite a few), to make sure there are no other leaks. Like you said, I would rather use a View instead of SurfaceView. Thanks for your input though - it does answer the question that I can use a canvas with TextureView if i follow the intended mode of use. -Ajit On Saturday, September 29, 2012 2:47:45 PM UTC-7, Romain Guy (Google) wrote: Hi, If you were using SurfaceView's onDraw() method then you were not getting any benefit. You have to use lockCanvas()/unlockCanvasAndPost() and post on the underlying Surface. TextureView works in a similar way: you can call lockCanvas()/unlockCanvasAndPost(). However, it seems all you need is a View. It's easier to use and since you are not using SurfaceView properly anyway it will do the same thing. On Thu, Sep 27, 2012 at 2:19 PM, Ajit Vasudevan vasu...@gmail.com wrote: Hello, I am currently working on an app that requires computations/rendering based on a variety of user inputs. I have implemented the SurfaceView and things work as expected. But I started facing performance issues when I tried to put this inside a horizontal scroll view. Obviously it is not intended to work this way - but I tried anyway :) Based on what I have read - it appears like I have to move to TextureView. But i am unable to override the onDraw, and therefore cannot perform the necessary drawing using the Canvas. This might be a trivial question - but I wanted to know if we can use TextureView to draw primitives on the screen using a Canvas? The only examples I have seen thus far show the use of video/camera/openGL rendering on the TextureView. Any help on this would be great. Thanks much -Ajit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@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 -- Romain Guy Android framework engineer roma...@android.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-d...@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 -- Romain Guy Android framework engineer roma...@android.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
Re: [android-developers] Exclude dependencies from apk?
I'm aware of the security concerns. Anyway, I've gotten it working in Eclipse by removing the project dependency under Reference on the Android tab of the project properties, and just setting that the project is required in the Java Build Path tab (not exported). However, even though Eclipse now builds cleaning, ant does not. I'm not an ant expert. Any ideas how to do the same thing there? I need both to work. On Tuesday, October 2, 2012 5:02:35 PM UTC-4, Kristopher Micinski wrote: On Tue, Oct 2, 2012 at 4:45 PM, Lindley lind...@gmail.com javascript: wrote: I would prefer not to make it statically linked because I am not the one writing the plugins. Each plugin is potentially going to be on a different branch of a repository, and I would like to code to continue working without undue hardship when I switch branches. Different versions of the project files specifying static dependencies on each branch is an option, but not a good one. Where the classes will be loaded from is precisely the issue. DexClassLoader can either take a jar containing a classes.dex or an apk. I mentioned both options in the original post. I'm fairly certain I can get things working using the jar approach, but it is inelegant in some respects. I prefer the paradigm of installing an apk to install a plugin, and therefore I need to figure out how to explicitly exclude certain dependencies from being included in the apk. But what you didn't mention is the distribution scheme for these plugins. If they will be distributed along with the APK then perhaps it's fine, but if they're going to be sent over the network you need to be a little more careful, loading and running potentially random code isn't a good idea, though if it's checksummed.. -- 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] Consume POJO based web services
Well, those are using Axis2, which I think you can get to work on Android... But the question doesn't deal specifically with anything Android related, kris On Thu, Oct 4, 2012 at 5:17 AM, giles ian gilesian@gmail.com wrote: So you are trying to say that the java clients (1,2) which consumes those web services will run fine on android as well On Thu, Oct 4, 2012 at 2:26 PM, TreKing treking...@gmail.com wrote: On Thu, Oct 4, 2012 at 3:50 AM, giles ian gilesian@gmail.com wrote: How can i consume POJO based web services i Write some code. This has nothing to do with Android specifically. - 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] Exclude dependencies from apk?
You'll have to tell us more about your build process. Generally I simply stick them in libs/ or do something more elaborate with custom rules. I'm honestly not seeing what your problem is, and still not seeing why you need a class loader, in my experience if you can do things statically it's best to do them that way.. kris On Thu, Oct 4, 2012 at 11:43 AM, Lindley lindl...@gmail.com wrote: I'm aware of the security concerns. Anyway, I've gotten it working in Eclipse by removing the project dependency under Reference on the Android tab of the project properties, and just setting that the project is required in the Java Build Path tab (not exported). However, even though Eclipse now builds cleaning, ant does not. I'm not an ant expert. Any ideas how to do the same thing there? I need both to work. On Tuesday, October 2, 2012 5:02:35 PM UTC-4, Kristopher Micinski wrote: On Tue, Oct 2, 2012 at 4:45 PM, Lindley lind...@gmail.com wrote: I would prefer not to make it statically linked because I am not the one writing the plugins. Each plugin is potentially going to be on a different branch of a repository, and I would like to code to continue working without undue hardship when I switch branches. Different versions of the project files specifying static dependencies on each branch is an option, but not a good one. Where the classes will be loaded from is precisely the issue. DexClassLoader can either take a jar containing a classes.dex or an apk. I mentioned both options in the original post. I'm fairly certain I can get things working using the jar approach, but it is inelegant in some respects. I prefer the paradigm of installing an apk to install a plugin, and therefore I need to figure out how to explicitly exclude certain dependencies from being included in the apk. But what you didn't mention is the distribution scheme for these plugins. If they will be distributed along with the APK then perhaps it's fine, but if they're going to be sent over the network you need to be a little more careful, loading and running potentially random code isn't a good idea, though if it's checksummed.. -- 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] Android activations per day and App sales numbers
The latest Google numbers on activations per day says over 1 million! Per day! But I am not seeing those numbers reflected in my app sales at all. I pretty much always sell the same amount, every single day. The same amount for the last year and a half. Now, that might be a gift horse, that sales keep going at all, but I would expect when activations go up, that sales would go up in some fashion as well. I know my app is pirated like hell and is everywhere if you do a google search, don't know how bad it is affecting my actual sales or not. Anyone else have similar experience / thoughts? -niko -- 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] In-App Billing Example (Dungeons) does not increment purchases.
You will probably want to implement your own purchase tracking mechanism, for security / obfuscation if nothing else. -- K 2012/10/4 Escape Radius i...@escaperadius.com I've successfully tested the in-app billing example, Dungeons, and have observed an apparent error in its implementation (or in the documentation). In PurchaseDatabase.java the insertOrder method does not insert multiple rows in the table as the documentation points out: * Inserts a purchased product into the database. There may be multiple * rows in the table for the same product if it was purchased multiple times * or if it was refunded. I expected the purchase counter to increment every time I made a test purchase, but because the HISTORY_ORDER_ID_COL is defined as the primary key, multiple purchases of the same test product will NOT add a row, it simply updates the current row's information. In order to keep track of purchases, the primary key should be unique, ideally an auto-incremented integer. -- 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] Exclude dependencies from apk?
It's kind of complicated and there are inter-team political considerations. This seems to be the cleanest solution we've hit upon so far. Whether or not it's the right solution in the long run we don't know yet, but that isn't what I'm asking about. I just want help with the mechanics of the build. At the moment I'm letting the Eclipse ADT generate all of my ant build files. This doesn't seem to be quite good enough, though, since it isn't putting the particular projects listed under Java Build Path - Projects into the classpath. I checked the overridable properties that the android sdk's build.xml provides, but saw no indication of classpath manipulation capabilities there. I *did* see an android.package.exclude variable, which might provide another approach to solving my problembut I suspect that if I go down that route, then ant will work but Eclipse won't. Not an improvement. On Thursday, October 4, 2012 11:49:21 AM UTC-4, Kristopher Micinski wrote: You'll have to tell us more about your build process. Generally I simply stick them in libs/ or do something more elaborate with custom rules. I'm honestly not seeing what your problem is, and still not seeing why you need a class loader, in my experience if you can do things statically it's best to do them that way.. kris On Thu, Oct 4, 2012 at 11:43 AM, Lindley lind...@gmail.com javascript: wrote: I'm aware of the security concerns. Anyway, I've gotten it working in Eclipse by removing the project dependency under Reference on the Android tab of the project properties, and just setting that the project is required in the Java Build Path tab (not exported). However, even though Eclipse now builds cleaning, ant does not. I'm not an ant expert. Any ideas how to do the same thing there? I need both to work. On Tuesday, October 2, 2012 5:02:35 PM UTC-4, Kristopher Micinski wrote: On Tue, Oct 2, 2012 at 4:45 PM, Lindley lind...@gmail.com wrote: I would prefer not to make it statically linked because I am not the one writing the plugins. Each plugin is potentially going to be on a different branch of a repository, and I would like to code to continue working without undue hardship when I switch branches. Different versions of the project files specifying static dependencies on each branch is an option, but not a good one. Where the classes will be loaded from is precisely the issue. DexClassLoader can either take a jar containing a classes.dex or an apk. I mentioned both options in the original post. I'm fairly certain I can get things working using the jar approach, but it is inelegant in some respects. I prefer the paradigm of installing an apk to install a plugin, and therefore I need to figure out how to explicitly exclude certain dependencies from being included in the apk. But what you didn't mention is the distribution scheme for these plugins. If they will be distributed along with the APK then perhaps it's fine, but if they're going to be sent over the network you need to be a little more careful, loading and running potentially random code isn't a good idea, though if it's checksummed.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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] Consume POJO based web services
On Thu, Oct 4, 2012 at 4:17 AM, giles ian gilesian@gmail.com wrote: So you are trying to say that the java clients (1http://www.j2mesalsa.com/axis/pojoclient.php ,2http://axis.apache.org/axis2/java/core/docs/pojoguide.html#testingpojows) which consumes those web services will run fine on android as well I wast trying to say that the question posed has nothing to do with Android. - 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
Re: [android-developers] Nested Linear Layouts
On Thu, Oct 4, 2012 at 5:36 AM, Darryl Griffiths daz1...@gmail.com wrote: I have attached a picture of the video tutorial demonstrating what has been done. That looks like the outer Linear Layout is horizontal, not vertical. I have been trying all sorts, but I cannot get my version to behave like the latter. I also get this message to: This LinearLayout view is useless (no children, no background, no id, no style) I have deleted my buttons and other objects, which has left the .XML file like this: That's why you're getting the warning. A Linear Layout withing another with no other purpose is redundant and pointless. - 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
Re: [android-developers] Android activations per day and App sales numbers
On Thu, Oct 4, 2012 at 10:50 AM, niko20 nikolatesl...@yahoo.com wrote: Anyone else have similar experience / thoughts? Same experience. I'll also note that for me the number of sales remained about the same even after a price increase. - 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
[android-developers] abstract Uri?
Can someone help me understand why the android.net.Uri class is abstract? Naturally, I want to do something like this: Uri uri = new Uri(http://www.example.com/file.mp4;); -- 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: Using NFC on Android
Thank you very much everyone who has replied. I am grateful for your time spent answering. I'm not sure how I can reply to everyone so I'm going to do so here. It looks like 9 is the base API for NFC. I think I will develop the app in API 10 as it probably has the basics of NFC tried and tested. So I shall develop on that. Thank you very much again, William Chan -- 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: abstract Uri?
Did you look at Uri.Builder? http://developer.android.com/reference/android/net/Uri.Builder.html On Thursday, October 4, 2012 6:59:02 PM UTC+1, bob wrote: Can someone help me understand why the android.net.Uri class is abstract? Naturally, I want to do something like this: Uri uri = new Uri(http://www.example.com/file.mp4;); -- 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: abstract Uri?
and also this method: http://developer.android.com/reference/android/net/Uri.html#parse(java.lang.String) On Thursday, October 4, 2012 6:59:02 PM UTC+1, bob wrote: Can someone help me understand why the android.net.Uri class is abstract? Naturally, I want to do something like this: Uri uri = new Uri(http://www.example.com/file.mp4;); -- 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] Multi-Language Support for Android Softkeyboard
Currently, I am developing a softkeyboard for Android using SoftKeyboard source code which is available in the SDK. But I want to add in multi-language support for the keyboard (similar to what is available in the native keyboard). But this portion is not available in the SoftKeyboard source code. Any idea how could I implement this? 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] Re: On screen orientation changes activity restarted.
i have a similar problem too. And i find my answer in http://stackoverflow.com/questions/10906395/android-manifest-configchangesscreensize-is-not-available Maybe this is the solution of your problem too. -- 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: SDK Manager doesn't show anything, only already installed packages
Exactly the same situation here. Any thoughts or suggestions would be greatly appreciated. On Tuesday, August 14, 2012 3:43:18 AM UTC-5, Andre wrote: Hi everyone, since yesterday the SDK Manager doesn't show any updates or packages other than what I have already installed. I looked everywhere on Google and can't find one person in the same situation. I don't get any error messages, the SDK Manager loads the repository and then nothing shows up. I run the app as administrator and I tried both fetching with http: and https: Does anyone else have the same problem? Is this a known bug? I'm on Windows 7 64bit but I don't think that matters cause everything was running smoothly until yesterday. If it helps, this is what I see: -- 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: Google Cloud Messaging client not receiving responses from server
Am Mittwoch, 11. Juli 2012 13:23:50 UTC+2 schrieb Valdomero: Hi everyone, Using the GCM demo project I managed to registrer a few devices (in the web site, running in a Tomcat server, I can see them listed) but when I click on the Send Message button nothing happens on the client side, no message is received. The Tomcat log shows this: 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET / HTTP/1.1 200 11444 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /tomcat.css HTTP/1.1 200 5926 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /tomcat.png HTTP/1.1 200 5103 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /bg-upper.png HTTP/1.1 200 3103 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /bg-nav.png HTTP/1.1 200 1401 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /asf-logo.png HTTP/1.1 200 17811 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /bg-middle.png HTTP/1.1 200 1918 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /bg-button.png HTTP/1.1 200 713 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /favicon.ico HTTP/1.1 200 21630 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:06 +0200] GET /gcm HTTP/1.1 404 974 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] GET /gcm-demo HTTP/1.1 302 - 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] GET /gcm-demo/ HTTP/1.1 200 134 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] GET /gcm-demo/favicon.png HTTP/1.1 200 949 172.20.5.53 - - [11/Jul/2012:11:14:27 +0200] POST /gcm-demo/register HTTP/1.1 200 - 172.20.5.53 - - [11/Jul/2012:11:14:27 +0200] POST /gcm-demo/register HTTP/1.1 200 - 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:43 +0200] GET /gcm-demo/ HTTP/1.1 200 235 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:52 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:09 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:33 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:41 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:23:35 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:23:56 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 172.20.5.53 - - [11/Jul/2012:11:28:21 +0200] POST /gcm-demo/register HTTP/1.1 200 - 172.20.5.53 - - [11/Jul/2012:11:28:21 +0200] POST /gcm-demo/register HTTP/1.1 200 - 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:28:51 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:29:02 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:56:09 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:12:12:21 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:12:37:13 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 Any clue? Thanks in advance. Hi, do you have a solution yet? I have the same prob. -- 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] High Memory Usage in Gingerbread
Our app provides realtime streaming market data and users are seeing alarmingly large memory usage in the Task Manager. While I have tried to explain to the product owners is that the number is more complicated than the seemingly easy to understand 230MB displayed by Task Manager. I am assuming this must be representing the process set size, because I'm only seeing about 20MB of heap usage in DDMS and MAT. The total heap fluctuates between 10MB and peaks at 40MB, but mostly about 20MB. Now the reason anyone even cares is that HTC and Motorola phones that they have tested running 2.3 have actually rebooted by running out of memory. This isn't being seen on 4.x phones although the Task Manager reports similar memory usage. I'm open to suggestions of how I might diagnose this further or is there a known issue with 2.3 and memory handling? -- 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] Is there any way to set up my app home by default?
Hi guys, im new developer in Android and i would like to know if is possible to set up my custom application to launcher by default -- 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] Location of saved web pages, Jelly Bean 4.1.1?
Stock browser on ASUS tf700. Can't find the location of saved web pages (webarchivexml) in Jelly Bean. Where are they? Has the format changed? In ICS they would show up under Downloads. 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
[android-developers] Connecting a OTG enabled phone to a USB device that is not handled by the OS (i.e. not a keyboard, mouse or mass storage device) -
I created a small USB device and expected the Android phone to provide some kind of feedback when the device is connected and there is no app that receives the intent that is created. The following facts were noticed: (b) Even if a new devices connection appears in the logs Android doesn't show notifications of the devices connected with the exception of mass storage and HIV devices (a) The USB host mode seems unstable. Using Android version - 4.0.3 On different phones (Samsung NOTE and S2) - In the first the device is recognized ( based on logs) in in the other not. Does anyone have related experience with this? Anyway to have a popup that calls for action to download an app? 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
Re: [android-developers] Is there any way to set up my app home by default?
The user can do this, but you cannot through an ordinary SDK app. The only way you can force your app to be the default home screen is to distribute it as such in your own ROM mod. On Thu, Oct 4, 2012 at 4:11 AM, Christian Chavez Pérez christian.mald...@gmail.com wrote: Hi guys, im new developer in Android and i would like to know if is possible to set up my custom application to launcher by default -- 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 Android Development_ Version 4.2 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
Re: [android-developers] Re: Google Cloud Messaging client not receiving responses from server
Please consider using the android-gcm Google Group for GCM-related support. On Thu, Oct 4, 2012 at 9:58 AM, Tobi brunner.fu...@freenet.de wrote: Am Mittwoch, 11. Juli 2012 13:23:50 UTC+2 schrieb Valdomero: Hi everyone, Using the GCM demo project I managed to registrer a few devices (in the web site, running in a Tomcat server, I can see them listed) but when I click on the Send Message button nothing happens on the client side, no message is received. The Tomcat log shows this: 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET / HTTP/1.1 200 11444 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /tomcat.css HTTP/1.1 200 5926 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /tomcat.png HTTP/1.1 200 5103 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /bg-upper.png HTTP/1.1 200 3103 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /bg-nav.png HTTP/1.1 200 1401 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /asf-logo.png HTTP/1.1 200 17811 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /bg-middle.png HTTP/1.1 200 1918 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /bg-button.png HTTP/1.1 200 713 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] GET /favicon.ico HTTP/1.1 200 21630 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:06 +0200] GET /gcm HTTP/1.1 404 974 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] GET /gcm-demo HTTP/1.1 302 - 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] GET /gcm-demo/ HTTP/1.1 200 134 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] GET /gcm-demo/favicon.png HTTP/1.1 200 949 172.20.5.53 - - [11/Jul/2012:11:14:27 +0200] POST /gcm-demo/register HTTP/1.1 200 - 172.20.5.53 - - [11/Jul/2012:11:14:27 +0200] POST /gcm-demo/register HTTP/1.1 200 - 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:43 +0200] GET /gcm-demo/ HTTP/1.1 200 235 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:52 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:09 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:33 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:41 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:23:35 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:23:56 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 319 172.20.5.53 - - [11/Jul/2012:11:28:21 +0200] POST /gcm-demo/register HTTP/1.1 200 - 172.20.5.53 - - [11/Jul/2012:11:28:21 +0200] POST /gcm-demo/register HTTP/1.1 200 - 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:28:51 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:29:02 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:56:09 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:12:12:21 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:12:37:13 +0200] POST /gcm-demo/sendAll HTTP/1.1 200 403 Any clue? Thanks in advance. Hi, do you have a solution yet? I have the same prob. -- 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 Android Development_ Version 4.2 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
Re: [android-developers] Re: SecurityException: Given caller package com.android.settings is not running in process ProcessRecord
whats the alternatives for this now in ICS ? On Thursday, 17 May 2012 21:06:44 UTC+5:30, Mark Murphy (a Commons Guy) wrote: On Thu, May 17, 2012 at 11:30 AM, minil...@gmail.com javascript: wrote: But I can do this on Android 2.3.3 Not really. It *looks* like it is there, but if you actually try modifying any settings, the changes do not take effect, at least for any settings that you do not have the permission to modify. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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 can I call WCF webservices with WS-security using client x509 certificate
How can I consume the WCF webservices(hosted on http protocol) having ws- message security from the android application using KSOAP or any other library. I have implemented the same fro REST webservices. I have to customize the both trust manager(certificate file with X509 certificate) and key manager(.p2 file). There is transport security only message security. and url is with http scheme. -- 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] Bluetooth Low Energy Support in API 16?
Heard that API 16 is going to support BLE, So is there any information regarding when BLE API will be officially supported in the SDK? -- 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] Checking if 5ghz wifi is available
Hi all, i'm desperatly searching for a method to figure out if a device running my app can actually use the 5Ghz wifi band. Does anyone know how to do that? 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
[android-developers] Flash Payer
Impossible d'installer flash player sur ASUS TF700T avec android 4.3 Refus systématique avec message depuis .. adobe n'assure plus.. Une solution la moitè de mes applis ne fonctionnent plus Merci -- 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] ASDK Manager Problems
Hi guys, yesterday i downloaded the java jdk 7u7 and the android sdk. After some problems to install ASDK i'm now stucked to get any API or other package with the ASDK Manager. Log tells me everything was successfully and done on first startup but it doesn't show anything. I even tryed once with checked http connection but nothing works for me. How can i get it work? I recognized progressbar fills up really slow after first 5-10 percent although my lan-connection works. After hours of try and error i really get mad at the hole package. My PC is a Windows 7 x64 Pro also it's a fresh installation only a few days old. Please 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
[android-developers] How to get all transaction information for purchase?
Hello, i have a question help me, please! i'm searching in-app billing and i know used NOTIFY_ID to get current transaction information. I created new Android project, i want manage purchase. i want get all transaction information (in week or month) in my app. How do i do that? what is method and API? please 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
[android-developers] Re: Mutual authentication using X.509 certificate
If you have done please provide me the code or reference. I have to implement the same. On Wednesday, February 29, 2012 11:45:47 AM UTC+5:30, Pankaj wrote: I want to consume WCF web-service which uses X.509 certificate for mutual authentication. I had imported certificates using keytools in BKS keystore able to use in android code. Now for mutual authentication i need to create web-request which have message digest signature in it I am using KSOAP 2. MY android Application working fine till my client is using https using srever side certificate. But now my client want X.509 certificate based mutual authentication. For which I need to form my request as per below mention format which i had extracted using wireshark (client is developed in Visual studio 8 which is working fine). As per the blogs articles i need to create message digest then create signature but before creating message digest i need to create XML canonicalization Referenced Urls : http://java.sun.com/developer/technicalArticles/xml/dig_signatures/ http://docs.oracle.com/javase/6/docs/technotes/guides/security/xmldsig/XMLDigitalSignature.html http://java.sun.com/developer/technicalArticles/xml/dig_signature_api/ http://svn.apache.org/repos/asf/santuario/xml-security-java/trunk/samples/javax/xml/crypto/dsig/samples/GenEnveloped.java http://www.xml.com/pub/a/ws/2002/09/18/c14n.html?page=1 http://www.w3.org/TR/2000/CR-xmldsig-core-20001031/ s:Header o:Security xmlns:o=http://docs.oasis-open.org/wss/2004/01/ oasis-200401-wss-wssecurity-secext-1.0.xsdhttp://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd s:mustUnderstand=1 u:Timestamp u:Id=_0 u:Created2012-02-21T04:45:06.429Z/u:Created u:Expires2012-02-21T04:50:06.429Z/u:Expires /u:Timestamp o:BinarySecurityToken u:Id=uuid-e35f5271-3c4e-47c7- ba34-8d995e414ba3-1 ValueType=http://docs.oasis-open.org/wss/ 2004/01/ oasis-200401-wss-x509-token-profile-1.0#X509v3http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3 EncodingType=http:// docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message- security-1.0#Base64Binaryhttp://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary MIICbzCCAdygAwIBAgIQfjyZ229iN4tAbV0fiYiVyTAJBgUrDgMCHQUAMD8xPTA7BgNVBAMTNGNsaWVudC5iNTRiYTFkN2U2NzY0ZDdkOWRiMDA3YTgyNmM5ZGE5Ny5jbG91ZGFwcC5uZXQwHhcNMTIwMjE2MTY0MjI1WhcNMzkxMjMxMjM1OTU5WjA/ MT0wOwYDVQQDEzRjbGllbnQuYjU0YmExZDdlNjc2NGQ3ZDlkYjAwN2E4MjZjOWRhOTcuY2xvdWRhcHAubmV0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDRW +Di90XDGulLybdBboUlOilxvbcnfow+NhoNW80uNjmGQiQpxP0oNnYT7RKJ +nP3+sZxUfRfazLgvOTFn0F9SIFQ9T4I5LNFMHhDfExoT0k/ aeF870Euy07BiwF7eXw6toSv1dKwKavq20szbIr/NeabIEDS/GzKY6P0/ TOQfwIDAQABo3QwcjBwBgNVHQEEaTBngBCNb6YOYI3RBR64WvVUjQtPoUEwPzE9MDsGA1UEAxM0Y2xpZW50LmI1NGJhMWQ3ZTY3NjRkN2Q5ZGIwMDdhODI2YzlkYTk3LmNsb3VkYXBwLm5ldIIQfjyZ229iN4tAbV0fiYiVyTAJBgUrDgMCHQUAA4GBAG5v1DZmXQKcaxNzz2VYDZ8aYYrYRQwU4lrBKlI0CnrkcZwQGPmRxdkiET9D91kcN/ fmq90nj1F5FZoqhzeT1moqGKXKT9HRX8j6Ln1QDhsr+0JfgJW9/ IFaQI14xKwr8bw4+DxIyp0IMpSw9biULmIQ1QuTzfKDEowlcQhsik+E /o:BinarySecurityToken Signature xmlns=http://www.w3.org/2000/09/xmldsig#; SignedInfo CanonicalizationMethod Algorithm=http://www.w3.org/2001/10/xml-exc- c14n#/ SignatureMethod Algorithm=http://www.w3.org/2000/09/xmldsig#rsa- sha1 http://www.w3.org/2000/09/xmldsig#rsa-sha1/ Reference URI=#_0 Transforms Transform Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#/ /Transforms DigestMethod Algorithm=http://www.w3.org/2000/09/xmldsig#sha1/ DigestValueSoj1m/E157CempDHHC6c6gZBd1E=/DigestValue /Reference /SignedInfo SignatureValue kqsIYUc3uYoQpuWVWYOio4KcGpon+3wDDhsAzVgZVljQxEhF7z1JS/ qzw9ELYCn2JbYIkWMtEeYfXRtPvjrPM1fjJiqbXSKq7jHEeVtMQnOytAHRL1ZFA +dLq4spJQR7uYnmJ1lmgQnu1kYcteSmD29Xm5e5dPUnz4yap3p7zC4= /SignatureValue KeyInfo o:SecurityTokenReference o:Reference ValueType=http://docs.oasis-open.org/wss/2004/01/ oasis-200401-wss-x509-token-profile-1.0#X509v3http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3 URI=#uuid- e35f5271-3c4e-47c7-ba34-8d995e414ba3-1/ /o:SecurityTokenReference /KeyInfo /Signature /o:Security /s:Header But to create message digest we need perform XML canonicalization with http://www.w3.org/2001/10/xml-exc-c14n#; transform algorithm. I am not able to found any API or library which perform above task. I had used xmlsec jar but I guess it is not supported by android and also used all the option which I found after googling. I had find out that android don’t have support of following JAVA packages: •javax.xml.crypto.dom •javax.xml.crypto.dsig •javax.xml.crypto.dsig.dom •javax.xml.crypto.dsig.keyinfo •javax.xml.crypto.dsig.spec Please guide me how to call WCF web-service which involve X.509 certificate based
[android-developers] XMLPullParser feature not available
I'm using an XMLPullParser to read xml files, and I create it using the following lines : XmlPullParserFactory factory; XmlPullParser xpp; factory = XmlPullParserFactory.newInstance(); factory.setNamespaceAware(true); factory.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true); factory.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true); factory.setFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES, true); xpp = factory.newPullParser(); xpp.setInput(input); Then I try and launch this on my Galaxy Nexus (running JB 4.1.1), and I get an XMLPullParserException with the following message : could not create parser : unsupported feature http://xmlpull.org/v1/doc/features.html#report-namespace-prefixes;. if I remove the FEATURE_REPORT_NAMESPACE_ATTRIBUTES, the parsing is correct but the parser doesn't see the namespace attributes, which I need to read. Is there an implementation of XMLPullParser available in the Android SDK which provides this feature ? Am I missing something to enable it? -- 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: Gallery with Zoom Application needed
you mean pinch zoom in and out on selecting a picture. On Thursday, October 4, 2012 10:58:11 AM UTC+5:30, vamshi ch wrote: Hi All, I created simple Gallery App, But i need Zoom in/out by hand touch not with zoom controller. if you have any idea or have code pls share me code snippet,apps,source code,etc. Thanks In Advance. Best Regards, Vamshi. -- 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] phonegap - problem deploying project to phone
Hi there, i'm very new in android development and i am currently writing my first app. i use current version of phonegap (cordova 1.7.0) and write the app in html with jquery/jqery mobile (1.1.1). my phone is a motorala defy+ with cm9 white rabbit installed. so far the app works fine in an AVD but i'm havin some trouble deploying it to the phone. when i connect the phone via usb, i can see it in the eclipse android device chooser. it's beeing displayed as online and the android version is also displayed with a green checkmark. but when i try to deploy it just nothing happens. no logmessages, no action on the the phone, just nothing... ...anybody had the same problems or any ideas??? regards, steffen -- 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] [GooglePlay] Google criteria for New Games and Applications
Hi Guys Does anyone know what criteria google uses or what to do, for one recently launched game to appear in the New Games and Applications on Google Play? Thanks Giselle -- 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: Parent activity runs onCreate before onActivityResult is called (sometimes)!
Interestingvery interesting. I just programmed an application that does this routine, and I didn't realize why the Parent activity has been destroyed before it went to onActivitityResult() after lots of hours trying to bug it, and using all launchMode=.. that makes logic, I couldn't find a solution to this matter. Then I noticed that on my Galaxy Tab 7 which runs on 2.3.3, the activity is actually destroyed before coming back, but on my Galaxy S2, it goes straight forward to the onActivityResult() and works perfectly fine. There must be some kind of a solution for this situation. I believe other applications use much more memory than mine and still works perfectly fine with it. so if anyone happens to find a solution it would be much appreciated. thanks a lot. -- 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] as a point of interest, spinners and widgets
why is it that the spinner onItemSelect listener and such created and defined in the java code, whereas say button listeners are created in the XML? -- 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: javascript in webview on android 2.3 fires only once
Facing same issue with android 2.2 Anyone have any solution? -- 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] is there any api to clone the behavior of Android Market application? is it even possible?
I first posted this question on stackoverflow but then thought maybe I'd get better answers here! Anyway, using the Android market app, or better to say, the Google Play app in your device, you can search the market and with one click you will download and install the app you want! I'm working on a project that searches the android market for a keyword and although I can have access to the apps and their descriptions, I don't seem to be able to download the app from my app like how its done in Google Play app! is there anyway we can do that? maybe somehow connect to the current Google Play app installed on users devices and use it for the download and the installation process? Thanks, Hadi -- 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] Passing pending intent to an activity
Hi all, I am working an activity (AlertDialogActivity) that shows custom alert messages. This activity has a Ok button which when clicked should start another activity. The activity that should start when Ok button is clicked is not fixed and should be passed to the AlertDialogActivity. I would like to know the best way to pass an intent (okButtonIntent) to the AlertDialogActivity (similar to the contentIntent passed to the NotificationManager). Thanks for the 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
Re: [android-developers] NEED HELP FOR INSTALL THE PLUGIN ADT ON ECLIPS
That is the repository for Eclipse Indigo. It is not the repository for the ADT plugin. See: http://developer.android.com/sdk/installing/installing-adt.html On Thu, Oct 4, 2012 at 5:20 AM, AWAKA17 awak...@gmail.com wrote: I HAVE A PROBKEM WHEN I TRY TO INSTALL THE ADT PLUGIN IN THE ECLIPS I TRIEN MANY URL'S AND ITS ALWAYS DONT WORK SHOW ME 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 -- 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 Android Development_ Version 4.2 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
Re: [android-developers] Re: SDK Manager doesn't show anything, only already installed packages
Clear your cache and reload. The clear-cache button is in Tools Options in the SDK Manager, and reloading is Packages Reload in the SDK Manager. On Thu, Oct 4, 2012 at 9:09 AM, Kurt Kincaid kurt.kinc...@gmail.com wrote: Exactly the same situation here. Any thoughts or suggestions would be greatly appreciated. On Tuesday, August 14, 2012 3:43:18 AM UTC-5, Andre wrote: Hi everyone, since yesterday the SDK Manager doesn't show any updates or packages other than what I have already installed. I looked everywhere on Google and can't find one person in the same situation. I don't get any error messages, the SDK Manager loads the repository and then nothing shows up. I run the app as administrator and I tried both fetching with http: and https: Does anyone else have the same problem? Is this a known bug? I'm on Windows 7 64bit but I don't think that matters cause everything was running smoothly until yesterday. If it helps, this is what I see: -- 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 Android Development_ Version 4.2 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
[android-developers] Re: abstract Uri?
bob wrote: Can someone help me understand why the android.net.Uri class is abstract? You got the what, now for the why. Naturally, I want to do something like this: I question the naturalness of that desire. Uri uri = new Uri(http://www.example.com/file.mp4;); It's more natural, some would say, to use a factory method. (Google Java factory method and you'll find, e.g., http://en.wikipedia.org/wiki/Factory_method_pattern#Java, complete with reference to Josh Bloch's advice on the matter.) It's entirely unnatural to want to call a constructor on an abstract class. Such a class with no obvious implementors is a signal that it has a factory method. This is quite prevalent in the Java API. The why is to save the client from messy and irrelevant details of the implementation. You shouldn't have to decide which particular flavor of 'Uri' to instantiate, especially if the thing is tricky (e.g., has to support an ever-expanding list of protocols). Let the factory manufacture you one and you save all that headache. Study up on the reasons to prefer a factory method, and when not to. -- Lew -- 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: SecurityException: Given caller package com.android.settings is not running in process ProcessRecord
On Thu, Oct 4, 2012 at 5:46 AM, Charan paichara...@gmail.com wrote: whats the alternatives for this now in ICS ? You failed to provide an adequate definition of this. Assuming this is embedding another app's activity in your own app, that is still not supported. -- 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 Android Development_ Version 4.2 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
[android-developers] Re: I had android doubt please go to link and give your suggestions.
SIVAKUMAR.J wrote: I had android doubt please go2 link and give ur ideas http://stackoverflow.com/q/12723139/385138 The last time you asked a question this way, in this very thread (which is another error), Steve wrote: I understand you are sincerely looking for help, and I'm sure it's important to you, but...you've listed four groups and ten individuals, not counting this group, and it's a link to your post on a forum. Is this, perhaps, a bit...much? The conventional way to post a question in a forum is to post the question in the forum. -- Lew -- 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] Any pointers?
Amit wrote: Can you please share the whole project ? That might be overkill. Let's see at least the XML files. Brian wrote: Hi guys and gals! I would appreciate any pointers as to what I'm doing wrong. I'm learning Android development and am a newbie. I'm doing the online tutorials in the developers section and have hit a snag. I have two files :*activity_main.xml *and *strings.xml* (see attached screen captures). When I co to compile and run the activity_main.xml file I get the following error message: *[2012-10-03 14:45:31 - My First App] Error in an XML file: aborting build.* -- 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] breakpoint in onReceive
So, can you not put a breakpoint in a broadcast receiver? I tried to put a breakpoint in onReceive to see if it got called, and it never triggered. IntentFilter filter = new IntentFilter( DownloadManager.ACTION_DOWNLOAD_COMPLETE); BroadcastReceiver receiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { } }; registerReceiver(receiver, filter); -- 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] Checking if 5ghz wifi is available
On Wed, Oct 3, 2012 at 8:11 AM, Reductio Ad Absurdum timmj...@gmail.comwrote: Hi all, i'm desperatly searching for a method to figure out if a device running my app can actually use the 5Ghz wifi band. There is no API. Why would you want this in an app ? Does anyone know how to do that? 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] breakpoint in onReceive
On Oct 4, 2012, at 11:16 PM, bob b...@coolfone.comze.com wrote: So, can you not put a breakpoint in a broadcast receiver? Maybe someone corrects me but it's quite often the case a breakpoint does not work unless you have some code there. E.g adding something gibberish; int i = 0; ++i; And then putting your breakpoint into either line might help. -- H -- 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: abstract Uri?
Looks like the answer can be understood partly by looking at these functions: 425 public static Uri parse(String uriString) { 426 return new StringUri(uriString); 427 } 439 public static Uri fromFile(File file) { 440 if (file == null) { 441 throw new NullPointerException(file); 442 } 443 444 PathPart path = PathPart.fromDecoded(file.getAbsolutePath()); 445 return new HierarchicalUri( 446 file, Part.EMPTY, path, Part.NULL, Part.NULL); 447 } 805 public static Uri fromParts(String scheme, String ssp, 806 String fragment) { 807 if (scheme == null) { 808 throw new NullPointerException(scheme); 809 } 810 if (ssp == null) { 811 throw new NullPointerException(ssp); 812 } 813 814 return new OpaqueUri(scheme, Part.fromDecoded(ssp), 815 Part.fromDecoded(fragment)); 816 } On Thursday, October 4, 2012 3:05:58 PM UTC-5, Lew wrote: bob wrote: Can someone help me understand why the android.net.Uri class is abstract? You got the what, now for the why. Naturally, I want to do something like this: I question the naturalness of that desire. Uri uri = new Uri(http://www.example.com/file.mp4;); It's more natural, some would say, to use a factory method. (Google Java factory method and you'll find, e.g., http://en.wikipedia.org/wiki/Factory_method_pattern#Java, complete with reference to Josh Bloch's advice on the matter.) It's entirely unnatural to want to call a constructor on an abstract class. Such a class with no obvious implementors is a signal that it has a factory method. This is quite prevalent in the Java API. The why is to save the client from messy and irrelevant details of the implementation. You shouldn't have to decide which particular flavor of 'Uri' to instantiate, especially if the thing is tricky (e.g., has to support an ever-expanding list of protocols). Let the factory manufacture you one and you save all that headache. Study up on the reasons to prefer a factory method, and when not to. -- Lew -- 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: Google has received a subpoena seeking information related to Android applications
On Tuesday, October 2, 2012 2:54:30 PM UTC-6, Ian wrote: Did those who received this email ever made DMCA copyright infringement notices to websites hosting/linking their apps illegaly? I did, several times. And now we've got this email; it may be related. I've sent DMCA notices, and I got the email, but I'm not sure how the two could be related. I didn't sent the DMCA notices to Google, after all, but to quasi-legal hosting sites (that often follow the letter of the law by taking down the content in question at the link you report, but not actually deleting all copies of it). Well...unless the FBI seized the servers of one or more of those sites, and found records of those DMCA notices? Or they could have otherwise subpoenaed the email records. Tim -- 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: getting this error The apk must be signed with the same certificates as the previous version.
Unfortunately not, because I was compiling my apk with Unity, and used an internal manager of keystore (and not knowing anything about jarsigner). So I unpublish my game and re-publish a new one, with a totaly new keystore and key. It works. I created a thread on Unity forums to alert them of JDK1.7 issue. Thanks again. I hope you have a backup of the original keystore. To change the signature you only need to change the parameters you pass to jarsigner, not the actual key. You are required to use the same key if you want to update the application on the Google Play store. -- 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: Google has received a subpoena seeking information related to Android applications
On Thursday, October 4, 2012, Tim in Boulder wrote: On Tuesday, October 2, 2012 2:54:30 PM UTC-6, Ian wrote: Did those who received this email ever made DMCA copyright infringement notices to websites hosting/linking their apps illegaly? I did, several times. And now we've got this email; it may be related. I've sent DMCA notices, and I got the email, but I'm not sure how the two could be related. I didn't sent the DMCA notices to Google, after all, but to quasi-legal hosting sites (that often follow the letter of the law by taking down the content in question at the link you report, but not actually deleting all copies of it). Well...unless the FBI seized the servers of one or more of those sites, and found records of those DMCA notices? Or they could have otherwise subpoenaed the email records. Tim I haven't read how the dmca process actually works so this is pure speculation: I've often read about the dmca agent on these websites. Maybe when receiving such notice, it's automatically transferred to an official? Or perhaps it's just what you suggest: the FBI found records of dmca notices received by one very popular direct download website... Who says megaupload? ^^ I, at least, remember having filed a dmca notice to megaupload... -- 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.comjavascript:_e({}, 'cvml', 'android-developers@googlegroups.com'); To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript:_e({}, 'cvml', 'android-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] breakpoint in onReceive
On Thu, Oct 4, 2012 at 3:34 PM, Harri Smått har...@gmail.com wrote: Maybe someone corrects me but it's quite often the case a breakpoint does not work unless you have some code there. E.g adding something gibberish; That's unnecessary, the break point will (or at least should) trigger on the next curly brace if there is no code to stop on. Of course, the OP did not clarify that he verified that the code is even running (via some logging, at least), so for all we know it's his own bug. - 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
Re: [android-developers] as a point of interest, spinners and widgets
On Tue, Oct 2, 2012 at 2:59 AM, To Wo themartini...@hotmail.com wrote: why is it that the spinner onItemSelect listener and such created and defined in the java code, whereas say button listeners are created in the XML? Buttons are far more common and the ability to add a listener in XML is a convenience. - 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
Re: [android-developers] Passing pending intent to an activity
On Wed, Oct 3, 2012 at 5:52 PM, Lucky varsheet.sha...@gmail.com wrote: The activity that should start when Ok button is clicked is not fixed and should be passed to the AlertDialogActivity. What do you mean is not fixed? What should be passed to your AlertDialogActivity? Regardless, I think the basis of your question is the fundamental Android principle of starting Activities and passing data via Intents. Read the docs. - 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
Re: [android-developers] is there any api to clone the behavior of Android Market application? is it even possible?
On Wed, Oct 3, 2012 at 7:47 AM, Hadi Tavakoli tahadaf.excha...@gmail.comwrote: maybe somehow connect to the current Google Play app installed on users devices and use it for the download and the installation process? AppBrain manages to do this, but it's an exploit. There's no official way of doing what you're asking. - 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
Re: [android-developers] breakpoint in onReceive
Ok, I goofed up. The HTTP server I was running (and downloading from) was on a different network. This is why the download never completed. On Thursday, October 4, 2012 4:46:40 PM UTC-5, TreKing wrote: On Thu, Oct 4, 2012 at 3:34 PM, Harri Smått har...@gmail.comjavascript: wrote: Maybe someone corrects me but it's quite often the case a breakpoint does not work unless you have some code there. E.g adding something gibberish; That's unnecessary, the break point will (or at least should) trigger on the next curly brace if there is no code to stop on. Of course, the OP did not clarify that he verified that the code is even running (via some logging, at least), so for all we know it's his own bug. - 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
Re: [android-developers] Re: Google has received a subpoena seeking information related to Android applications
FWIW: I got one of those messages too, and only sent a DMCA notice once, to Google, not some other site (a long time ago, perhaps close to two years). -- K 2012/10/5 Ian Thecleric ianthecle...@gmail.com On Thursday, October 4, 2012, Tim in Boulder wrote: On Tuesday, October 2, 2012 2:54:30 PM UTC-6, Ian wrote: Did those who received this email ever made DMCA copyright infringement notices to websites hosting/linking their apps illegaly? I did, several times. And now we've got this email; it may be related. I've sent DMCA notices, and I got the email, but I'm not sure how the two could be related. I didn't sent the DMCA notices to Google, after all, but to quasi-legal hosting sites (that often follow the letter of the law by taking down the content in question at the link you report, but not actually deleting all copies of it). Well...unless the FBI seized the servers of one or more of those sites, and found records of those DMCA notices? Or they could have otherwise subpoenaed the email records. Tim I haven't read how the dmca process actually works so this is pure speculation: I've often read about the dmca agent on these websites. Maybe when receiving such notice, it's automatically transferred to an official? Or perhaps it's just what you suggest: the FBI found records of dmca notices received by one very popular direct download website... Who says megaupload? ^^ I, at least, remember having filed a dmca notice to megaupload... -- 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] Connecting a OTG enabled phone to a USB device that is not handled by the OS (i.e. not a keyboard, mouse or mass storage device) -
I am using a USB to Serial adapter on my Samsung Nexus phone (Jelly Bean) and it works fine. I use the Slick USB 2 Serial Terminal application and the device gets detected and works. At the moment I write my own example to send and recive messages over RS232 but it's just at the beginning. Up to now the UsbManager detects one USB device if I connect the adapter. Roy 2012/10/4 Eduardo Alperin edr...@gmail.com I created a small USB device and expected the Android phone to provide some kind of feedback when the device is connected and there is no app that receives the intent that is created. The following facts were noticed: (b) Even if a new devices connection appears in the logs Android doesn't show notifications of the devices connected with the exception of mass storage and HIV devices (a) The USB host mode seems unstable. Using Android version - 4.0.3 On different phones (Samsung NOTE and S2) - In the first the device is recognized ( based on logs) in in the other not. Does anyone have related experience with this? Anyway to have a popup that calls for action to download an app? 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] Accessing a database hosted on a server
Your reply, TreKing, reminds me of the classic joke: you ask a programmer if he knows what time it is, and he says 'yes';) But a little more of a hint would have been quite appropriate. I take an especial interest in this because if I had been the one designing the Android database API, I like to think I would have made it a lot easier for the client programmer to use the exact same sequence (after initialization) of API calls whether the database is located on the phone or remotely accessible via (for example) HTTP. But they did not do this, and it it really not obvious how best to approach the problem. Even many of the people answering the same question on StackOverflow admit there is no one, good solution to this problem, saying instead disappointing generalities such as There is no easy way of connecting Android DIRECTLY to a remote database. No wonder all the answers got such low ratings! On Thursday, October 4, 2012 12:13:15 AM UTC-7, TreKing wrote: On Mon, Oct 1, 2012 at 3:38 PM, Leandro Rodrigues leud...@gmail.comjavascript: wrote: Is it possible to connect me to a database and insert and delete data? Yes, this is possible. - 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
Re: [android-developers] Unable to register CONNECTIVITY_ACTION in a service
You are registering in your constructor. I think you need to register in onCreate. You appear to not have a context when your constructor is called. On Wed, Oct 3, 2012 at 9:17 PM, Subodh Nijsure subodh.nijs...@gmail.comwrote: Hello Robert, Below is the stack trace that I see when system catches the exception: Not sure if you had any chance glancing at my sample code on original email, and see if anything obviously wrong there? I/System.out(12738): java.lang.NullPointerException I/System.out(12738):at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:341) I/System.out(12738):at com.mycompany.ScsService.ScsService.init(ScsService.java:50) I/System.out(12738):at java.lang.Class.newInstanceImpl(Native Method) I/System.out(12738):at java.lang.Class.newInstance(Class.java:1319) I/System.out(12738):at android.app.ActivityThread.handleCreateService(ActivityThread.java:2234) I/System.out(12738):at android.app.ActivityThread.access$1600(ActivityThread.java:123) I/System.out(12738):at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201) I/System.out(12738):at android.os.Handler.dispatchMessage(Handler.java:99) I/System.out(12738):at android.os.Looper.loop(Looper.java:137) I/System.out(12738):at android.app.ActivityThread.main(ActivityThread.java:4424) I/System.out(12738):at java.lang.reflect.Method.invokeNative(Native Method) I/System.out(12738):at java.lang.reflect.Method.invoke(Method.java:511) I/System.out(12738):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) I/System.out(12738):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) I/System.out(12738):at dalvik.system.NativeStart.main(Native Method) -Subodh On Wed, Oct 3, 2012 at 7:39 AM, Robert Greenwalt rgreenw...@google.com wrote: Checking network types explicitly like this is bad - what happens if the device is connected through a bluetooth tether or via ethernet adapter? You could use getActiveNetworkInfo() and check it's connection, but this is still polling. If you need to get notified when a connection comes or goes (have something to do on next connect, for example) The CONNECTIVITY_ACTION broadcast intent is the way to go. Note that this can be chatty - there are several secondary networks that currently cause this broadcast that you may have to weed out. You should use getActiveNetworkInfo in your handler to find the state that applies to you. Can you post the stack trace of the NPE? R On Wed, Oct 3, 2012 at 5:46 AM, Rahul Kaushik rahulkaushi...@gmail.com wrote: hi subodh try this package com.FranConnectMobile; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import android.app.Activity; import android.content.Context; import android.net.ConnectivityManager; public class chkInternet extends Activity { public boolean isInternetAvailable(Context context){ ConnectivityManager connec = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); android.net.NetworkInfo wifi = connec.getNetworkInfo(ConnectivityManager.TYPE_WIFI); android.net.NetworkInfo mobile = connec.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); if(wifi.isConnected() || mobile.isConnected()){ // Check for web site try{ // Create a URL for the desired page URL url = new URL(http://www.google.com;); // Read all the text returned by the server BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); in.close(); return true; } catch (Exception e) { return false; } } return false; } } TX RK On Wed, Oct 3, 2012 at 6:08 PM, Subodh Nijsure subodh.nijs...@gmail.com wrote: Hello, I am trying to implement a service that is supposed to download stuff from a cloud service. So I want this service to be notified whenever phone/tablet looses network connectivity. So I implemented code that looks like this: receiver = new ConnectivityReceiver(); filter = new IntentFilter(); filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); try { Intent i = registerReceiver(receiver, filter); } catch (Exception e) { } However when I have this code in a class that extends a Service registerReciver always throws a NullPointerException. However the same code in a class that extends an activity does not throw such an exception. I have attached my manifest file and the full code for
[android-developers] Re: Google account from different country
No, you cannot change the country of an account, but you can set up a new account with a new country and transfer all your apps there. You will need to submit a request to Google, but in my case, they transferred my apps in literally 10 minutes after submitting the request. I could not believe my eyes. So it's not like once you pick a country, you are stuck forever. On Thursday, October 4, 2012 10:26:06 PM UTC+8, Rudolf Hornig wrote: It will work. I'm using a Austrian bank account and my company is based in Hungary. i had to fax my official papers for the company and they did not say a word... Just keep in mind that once you have registered in a country you WILL NOT be able to change it. So prepare to keep that bank account as long as you sell on the market... Rudolf On Tuesday, October 2, 2012 11:41:01 AM UTC+2, Filip Vucetic wrote: Hi guys, my name is Filip and I am from Serbia, in few days I will have my app done and it is going to be free app with in-app purchase option. In Serbia it is not yet allowed to publish paid apps, but I am student in Czech Republic and I was wondering is it possible to open developer account as person from Czech Republic and use my Czech bank account for google merchant account, is it going to work and is it legal? Thank you, Filip -- 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: Google account from different country
In all countries, with the notable exception of the US, you pay taxes where you earn them. If you are a US national/PR, the US government expect you pay US taxes no matter where you earned the money. The first $X is a foreign tax credit which means you don't pay double taxes on the first $X you earn. X is around $95,000 these days. Anyway, this is the general idea, and I am not a tax accountant, so don't take this as an advice. With any questions, you need to consult a professional tax accountant. On Thursday, October 4, 2012 11:05:40 PM UTC+8, latimerius wrote: On Thu, Oct 4, 2012 at 4:26 PM, Rudolf Hornig rudolf...@gmail.comjavascript: wrote: It will work. I'm using a Austrian bank account and my company is based in Hungary. Just out of curiosity, how do you handle taxes under that arrangement? Specifically, do you pay any Austrian taxes, or deal with Austrian tax authorities at all? -- 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: What is the best phone to buy for Android Development?
It is true, but misleading that the emulator may work for most cases. Unless you are doing a very simple app, you should not even think of uploading it to the market until you have tested it on a real phone, preferably unrooted, since that is what most users will use. It is imperative if you are using OpenGL, the video, camera or sensors. This is because there really are different bugs in each of these areas not only on different phones, but even different software releases for each phone. This is the infamous fragmentation Google loves to pretend does not exist. But it is real, and that keeps companies like DeviceAnywhere in business, since they can test your software on a staggering variety of phones. On Tuesday, October 2, 2012 8:12:16 PM UTC-7, newkedison wrote: I also think some emulator may work for most case. I have a Galaxy Nexus phone for testing the release version and also send it to my friends who have a Android phone. On 1 October 2012 16:09, Peter Webb r.pete...@gmail.com javascript:wrote: Doesn't really matter. I find myself testing on 4 different devices in the emulator - corresponding to different screen sizes. I have a question: what's the config for the 4 different emulator? I think the OS may include 4.1 and 2.3, but how about the screen size? --- http://newkedison.tk -- 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: What is the best phone to buy for Android Development?
Everything you cay about command line vs. Eclipse window could be true yet there would still be one overwhelming advantage for the command line: the Eclipse UI and documentation for how to do all this filtering is limited and put in odd places; it is much easier to find out how to use command-line redirection and grep on command-line output, and those are both well documented. The documentation is easy to find, too. Also, when the Eclipse window simply fails to display the logcat output, I can never figure out why (except for one case: when 'Device' got mysteriously de-selected, which should never happen but does happen). When the command-line fails to display it, I can easily figure out why. On Wednesday, October 3, 2012 10:57:10 AM UTC-7, Lew wrote: On Wednesday, October 3, 2012 2:36:34 AM UTC-7, gjs wrote: Hi, debug messages was to imply anything emitted by locat, System.out.. , System.err.. , printStackTrace from Exception etc And yes it's the same whether through Eclipse or otherwise, I suggested it can be painful when debugging in Eclipse with some real (non Google sponsored) devices that emit an excessive amount of these messages to find your own messages within that mess, filtering and redirecting to file and grep and changing buffer sizes and other time wasting [sic] steps aside. Some of the carrier sourced devices fill the default Eclipse buffer in a minute or so, particularly when GPS is on, the Google devices Galaxy S, Galaxy Nexus, Nexus 7 don't. As you say, the volume of output can be excessive, but if so, it's the same excess as in command line. I don't believe the steps to filter output and adjust buffer sizes can be considered time wasting. Time is wasted if it produces less value than it costs. These steps produce more value than they cost. While I normally use only command line myself, I find the Eclipse logcat window to be very flexible. It has all sorts of convenient tools to help you filter your messages, so if anything folks would find it easier to use than command line, contrary to your conclusions. It lets you dynamically filter on debug level, process id (pid), regexes, app, tag or specific text. AFAICT it's infinite, so buffer size is a non-issue, and it has buttons to save the output and manage your filters. YMMV, but I don't recommend scaring people off the Eclipse logcat window. -- Lew -- 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] Code for sending data through usb from android tablet
This would be a good starting point: http://developer.android.com/guide/topics/connectivity/usb/index.html 2012/9/25 Rohit Jadhav rohit4...@gmail.com anyone..who can tell me that how to send data from android tablet through USB cable.. -- 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] Communication USB with electronic card
Perhaps you enabled hardware handshake on your serial line. (Flow control: http://en.wikipedia.org/wiki/Serial_port#Flow_control). So the hyperterminal responds on that handshake and the transmission starts. You should disable FlowControl in your application. Roy 2012/9/24 Christian Cadon silis.electroni...@gmail.com Hello, We are a design office electronics. We develop some applications to interact with our electronic cards (update, configuration, management, etc. ..). Bluetooth is the technology currently used for this task. We now want to communicate via USB. We develop an application test shipment via USB, the content of EditText when pressing a button and displays what you get in a TextView. We helped http://developer.android.com/guide/t.../usb/host.html and http://android.serverbox.ch/?p=549 # comments but we do not use arduino but a simple interface USB/RS232 where the RX and TX are connected and we check the result with an oscilloscope. We also have our tablet (Iconia A500) hyperterminal Slick USB 2 Serial Demo. Here is our problem: Our application works only if we have previously opened the hyperterminal. In fact, if we run our application directly, the code works correctly, and okay until the sending function bulkTransfert (which returns the size of datas to send) but sending does not occur (check on the oscilloscope). But when the previously opened hyperterminal, sending is successful. And when the application sends nothing (when it should) and you open the hyperterminal then we get our bytes sent on this one. We believe that open hyperterminal or authorizes the things we do not. Do you have an idea of what is missing in our program? -- 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: abstract Uri?
You question the 'naturalness' of his desire to use 'new', but you don't seem to notice: you have merely moved the question, not answered it. Of course it is 'unnatural' to call 'new' on an abstract class, but he was asking why it was made abstract in the first place. You did not address this. Nor does the Google documentation of the class. All you did was move the question to why is calling a factory method more 'natural'? After all, factory methods are for when you do NOT know ahead of time exactly which class the created method will be. But why would that be the case here? THAT is what needs to be explained. Nor is it clear why you think there should be no obvious implementors of a class named 'Uri'. One obvious implementation of a class with such a name would be 1) Constructor takes string, returns (opaque?) integer handle for uri 2) methods for opening, closing, fetching resource at uri given by handle. But this is not the way Google did it; the Uri class instead has a noticeably more restricted scope. It does not provide methods for opening a Uri and fetching resources. Instead, the main methods provided are for analyzing the Uri string itself, breaking it down into port, authority (if any), query string etc. Other objects are then responsible for fetching. What benefit they got from doing it this way is far from clear, especially since they are now recommending use of java.net for external HTTP access for recent versions of Java, using android.net mainly for the internal Uris used for Content Providers. As for using the Wikipedia entry, I have been often disappointed by Wikipedia entries on OOD topics before. This time also, since they put the reader through an alleged Java example of the Factory method (complex numbers), and then admit that strictly speaking, it is not even an example of the pattern. This is NO help to the learner, and little help to the seasoned programmer. Finally, it is ironic that you observe (correct though that is), that use of factory methods is prevalent throughout the Java API. For java.net.URI is NOT abstract, but android.net.Uri IS abstract. The similarity of these names is probably a large part of why the OP expected both to be concrete. Both claim, after all, to do roughly the same thing: represent a URI (one immutable, the other mutable). The differences in the API alone do not really explain why they made it abstract. bob wrote: Can someone help me understand why the android.net.Uri class is abstract? You got the what, now for the why. Naturally, I want to do something like this: I question the naturalness of that desire. Uri uri = new Uri(http://www.example.com/file.mp4;); It's more natural, some would say, to use a factory method. (Google Java factory method and you'll find, e.g., http://en.wikipedia.org/wiki/Factory_method_pattern#Java, complete with reference to Josh Bloch's advice on the matter.) It's entirely unnatural to want to call a constructor on an abstract class. Such a class with no obvious implementors is a signal that it has a factory method. This is quite prevalent in the Java API. The why is to save the client from messy and irrelevant details of the implementation. You shouldn't have to decide which particular flavor of 'Uri' to instantiate, especially if the thing is tricky (e.g., has to support an ever-expanding list of protocols). Let the factory manufacture you one and you save all that headache. Study up on the reasons to prefer a factory method, and when not to. -- Lew -- 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: HTTP server in Android
Hi, Change the port number in your request - PORT = 8765 not 8080 And yes you can write your own http server simply by using a server socket. http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html Regards On Thursday, October 4, 2012 3:57:58 PM UTC+10, Archana wrote: Hi, I want to develop HTTP server in Android. I used the link https://gist.github.com/1893396#gistcomment-582451 NanoHTTPD. But when I open the page http://10.0.2.15:8080, I am getting WebPage not found. In the logs, I am getting 10-04 05:55:39.106: E/Tab(499): onReceivedError -6 http://10.0.2.15:8697/The connection to the server was unsuccessful. Can anyone please tell me what the error is about? Or is there any other way to implement a HTTP server in Android? 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] video uploaded from galaxy tab not playing
Thanks for your reply.Its playing in vlc media player,but not in strobe media player.But i captured video from other mobile devices, and its playing well in strobe media player.Please guide me. On Thursday, October 4, 2012 6:55:32 PM UTC+5:30, Lokesh wrote: Did u try running it with some other media player in the same tab? On Oct 4, 2012 6:29 PM, mohana priya gpriy...@gmail.com javascript: wrote: I captured video from samsung galaxy tab (android), and tried to upload to server. i tried to play the video captured in galaxy tab in strobe media player,I can able to hear the audio,but video is invisible. When I try from other mobile devices, it's playing fine. Please kindly guide me. 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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