[android-developers] Re: PushNotifications GCM problem
Once your app is registered with GCM you should have a broadcast receiver that receives the GCM message. Even if your process is dead then it will be started when the message arrives. This should also apply in the case where the phone rebooted. On Wednesday, October 3, 2012 7:46:16 AM UTC-7, apanizo wrote: Hi all, I am experiencing problems with GCM. I understand that if you force stop one app is no longer available for receiving notifications. You can see the explanation herehttp://stackoverflow.com/questions/11614521/how-can-i-receive-notifications-from-gcm-when-application-is-stopped and herehttp://stackoverflow.com/questions/12073449/android-gcm-push-notification-device-doesnt-receive-notification-if-applicat . *But how can I receive notifications just after turning on the phone?* Because now, I am able to receive push notifications* if I start the app first *(and this is a waste of time). Any special configuration in the AndroidManifest.xml ?? Thanks in advance, Adolfo. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Acting on broadcast intent when switching apps
Your activitys onResume() will get called in that case. You should check the status of your downloads and re do your logic there. On Tuesday, October 2, 2012 8:45:51 PM UTC-7, albnok wrote: I have an button in an activity, that calls an IntentService and shows a ProgressBar. After it is done downloading large files, it then creates a notification and broadcasts an intent with a String message stating 3 files downloaded. or Unable to connect to server. The activity registers a receiver in onResume and unregisters it in onPause. In the BroadcastReceiver's onReceive it displays a DialogFragment with a message from the intent. It also hides the notification and hides the ProgressBar. If the app is not in the foreground, and you click on the notification, it triggers the activity's onNewIntent. It then displays a DialogFragment with a message from the intent. It also hides the ProgressBar. If the app is not in the foreground however, and you use the App Switcher to return to the app, the notification does not clear and the DialogFragment never shows. The ProgressBar is also still visible. Is there a way within the Android framework to handle the last situation? I'm thinking of a hack by not actually bothering with the message in the intent, and storing it in SharedPreferences, but is there another way? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detect AdMob AdView tap?
I would like to detect (and then pass on through) AdMob clicks but I'm not sure how to do this. My efforts so far have not been entirely fruitful. Has anyone done this before? I overrode the AdView class and detected touch events in onInterceptEvent(), but only tap events actually trigger an ad and I can't detect those (I implemented OnGestureListener but onSingleTapUp() isn't called). There's no easy easy to determine that an 'up' event is a tap in onInterceptEvent(). 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] Re: Sudden Drop in App Usage and New Users
I'm experiencing the same thing too. Starting Sept 23rd, I'm seeing a sudden drop in New Users. It is still dropping as of today. Do we know why? On Monday, September 24, 2012 10:32:09 PM UTC-5, Neil Johnston wrote: I have had two apps in the last couple weeks that had sudden drops in the market. They're in the same position in the market app results. But the daily New Users has went from 400 to 45. What can explain such a huge drop in New Users? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Dynamic loading of complete layout file.
what about using webview idea? the dynamic template and data all using backend to handle, webview just include the url -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google has received a subpoena seeking information related to Android applications
So it seems to be rather good news, isn't it? The FBI is hunting down pirate sites... 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. On Tuesday, October 2, 2012 1:46:58 AM UTC+2, Tom wrote: I just spoke to a representative who said Google should not have sent those emails. I just said I received an email and she immediately knew what I was referring to, no reference number needed. She told me to forget it was sent, and that the FBI will contact me directly if there is any issue pertaining to my account specifically (someone uploading one of my applications illegally to another application market). Hope that clears things up for people, I feel bad for the representatives at that number who must be receiving tons of calls. Anyway, nothing to worry about (at least for now). On Monday, October 1, 2012 7:14:18 PM UTC-4, Lew wrote: For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. On Monday, October 1, 2012 3:50:20 PM UTC-7, Streets Of Boston wrote: Got the same e-mail. Asked the same question on 'android-discuss' :-) I'm curious what this is all about? BlueStack? Aliyun/Acer? On Monday, October 1, 2012 6:45:39 PM UTC-4, Andrei wrote: I received this email But i am not interested and want my account to be excluded What do i need to do? Thanks Google has received a subpoena seeking information related to Android applications that may have been made available on alternative markets without the consent of the developer. The subpoena seeks information about those Android applications, including contact information for the developers of the applications. Our records show that your Android developer account will be included in the information Google will provide in response to this subpoena. Google is not in a position to provide you with legal advice or discuss the substance of the process in our possession. For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] textAppearance style not overriding theme
Hi there, I'm having a situation with themes and styles and I don't know if I'm doing the wrong thing, or if I bumped into a bug or a limitation. The scenario is the following I have a Theme that just contains a windowNoTitle style name=Theme.Frotcom parent=android:Theme item name=android:windowNoTitletrue/item /style and I have a TextAppearance style to specify text size and color style name=textWeirdo parent=@android:style/TextAppearance item name=android:textSize24sp/item item name=android:textColor#CFCA42/item /style Then I have an activity that uses the theme, and the layout being loaded, has a textview that uses the textWeirdo style in textAppearance. I expected the textview to use the size and color defined in the style, but it's not. If I remove the theme from the activity, then it works. Is this a bug, or theme always overlaps everything? Cheers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AVD: Failed to allocate memory: 8
I'm sure you guys have received this question numerous times...but how do I keep this error from happening? I need to work on an assignment for my CS class that requires a tablet emulator...what's strange is that the phone emulators all work just fine but as soon as I try to open a tablet emulator I get this error. Thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Screen Lock Security
Hi all, Is there any way to add new entry to Screen Lock Security in System Settings (e.g. for usb sensors), or access from application to one of available in that list? 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
[android-developers] Missing, Incorrect ImageView/Backgrounds during program execution
Hello, I was hoping someone here might have an idea what causes this sort of behaviour: Throughout my application, in seemingly random places and in random conditions I'm observing this strange UI issue. Images are on occasion being loaded black (with the correct bounds) or with the incorrect image source. This effects ImageViews and has effected android:background tags with references to colour resources. My application relies on 6 library projects, it runs Native Code via a Service and Activities in the App use GlSurfaceViews (although, not all Activities which display the problem contain OpenGL components). The problem could I suppose be from any of these places or a combination of them through using large amounts of memory. You can see this behaviour in the following screen shots: This is actually a 6 or so pixel wide column separator image which has been incorrectly drawn into my ImageView (the ImageView seems to have correctly sized itself). http://i.stack.imgur.com/fzfm9.png When going out of the Application and then back in again (repeatedly) it instead appeared (and remained) like so: http://i.stack.imgur.com/ILEWB.png After a Force Clear and a Clear App Data it returned to the correct format: http://i.stack.imgur.com/q4Xa4.png As you can also see the Magnifying Glass image next to it is displaying fine in each of these. The problems with these missing/incorrect images and backgrounds seems to happen randomly, throughout the application and have yet been unable to find a way of reproducing it. The layouts for these images are nothing special, I'm not doing anything funny during the rendering lifecycle (i'm not overriding onDraw or onMeasure or the like). The source of these images aren't being set dynamically but via the XML tag. As you can see from the above example, it's not a build issue as it occurs between app lifecycles not between installs. It seems to me to be some sort of error with the reference table, could it perhaps have been nudged by my native code? Or is it an effect of me in some stages of the application using too much memory? I've got this question up on StackOverflow here: http://stackoverflow.com/questions/12562896/black-incorrect-blurred-or-torn-images-throughout-application where you can see the layout files and another example of this happening. Anyone seen this behaviour before? Graeme -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: My First App
Hi Divya, Thanks for sharing. It help . THANK YOU very much! On Friday, August 17, 2012 10:13:11 AM UTC-7, Divya wrote: Hi, I had the smae problem. I could install the support library when I ran SDK Manager as an administrator by right click on SDK manager.exe 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] Google account from different country
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
[android-developers] Want to develop my application as offline
Hello there! I'm new here, and also relativelly new to mobile development so don't bother the possible imprecisions of my speech. I'm currently developing a music application, which scans an user music library and tries to find similarities with near music libraries using lastfm apis. I put the process of scanning library and building a database with the similar artists in a background service that wakes up when the user turns the internet on. The objective is to only use network in this process. With the database updated, I only need a way of passing information between different devices and it's important to me that this is a *offline* process (I think it's one of the valuable assets of my application). For my research, the only offline connection between devices I know is * Bluetooth* . However, as you know, this technology is kind of deprecated and it's not always reliable, principally because you can only communicate in short distances. Do you have a hint of doing this in other ways? I thought about *socket*connections, but for that you need to have a network connection. I also thought about creating this connection using *ad-hoc* networks programatically, but that I don't know if it is possible (at least, not in earlu versions of the android OS). Thank you very much, it is a pleasure writing in this forum! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Simulating Mouse Click
Hi there Have someone found solution for this yet? I built a device which can control cursor, but i still can not click On Wednesday, February 1, 2012 7:13:20 AM UTC+2, Dritan wrote: OK so first things first, yes I was kind of angry/upset because it seemed like I had tried all possible routes and have no solution. I apologize if my threat to re-post this question every week (lol) came off too strong. But honestly, I've been at this for nearly a month where I bought a Bluetooth adapter for $80 and hooked it up to Arduino as my driver- interface. I used Arduino to communicate with the adapter, but because the adapter does not have a HID profile, I am kind of stuck. (Re-)write a HID profile? how to add profile to BT stack? Re-invent the wheel? Are my #googling skills up to par? So I resorted to reading a bluetooth stream from the device via BT. I manually send signals to Arduino (from button or typing) which get sent over BT to the tablet. I've got IME's down. But for mouse clicks and motions and pressure and all the goodies ... I've been royally stuck :( I'm sorry but in the name of learning I shall continue to ask! ..and thank you for replying :) Dritan On Jan 31, 1:20 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Tue, Jan 31, 2012 at 4:01 PM, Dritan djdea...@gmail.com wrote: Thank you for your reply Kris. I am trying to create a low-level mapping where some button press on my 22-button device is to be seen as leftclick, by following this configuration: http://source.android.com/tech/input/key-layout-files.html I know Android is a flexible system and without rooting a device, it is TOTALLY possible to create your own input device as amouse+ keyboard + touchpad + braille + whatever kind of input you wish to send to android. (NOT simulate keys, but actually send the corresponding byes for LeftClick or RightClick or move pointer). I totally agree with you. It's not that what you're doing is fundamentally flawed, it's that you're thinking about it the wrong way. You're looking to solve it using the naive hackey behavior typical of malware. You have to remember that your app would be potentially killed off at any time, so even if you launched it as a background and were able to register clicks to the toplevel view, your app could always annoyingly disappear! Consider a professional artists who purchases a digital drawing pad *with* a stylus pen for accuracy and all his/her drawings on the drawing pad are directly sent to Android as legitmouseor stylus events. This includes the pressure of the lines drawn as well, without having to directly simulate each event. True. It just seems that not one Google employee seems to know about this. Documentation is barely existent (and whatever is there is very poor), books don't help (not one book dares touch on this topic). I've gone back and forth all over the web to find an answer and unfortunately, only someone in this area of expertise can actually help me. Well, to be fair, this list isn't something that Google is responsible for answering questions on. What better place to post a question about Android than the source itself? Personally I did not know that you could add such low level support at the application level. The only thing I'm aware of is adding HID profiles, and the docs for those are here: http://source.android.com/tech/input/overview.html Thank you, Dritan p.s. If I don't get a reply from a competent Google employee (or really, anyone who's competent in this area), I shall re-post this question with a different title, every single week. I don't want to root the phone, nor do I feel like re-compiling the source to get the .java files for the source (even then it's a tremendous headache). Any help related directly to this matter is greatly appreciated, thank you! That's a very passive aggressive threat.. I'm sure the discussion around the office will be something like did you answer that guy yet, tom? No, he said he would repost every week until I did, I figured I'd see how long he could keep it up. What do you mean by recompiling the source to get the java files for the source? That doesn't make any sense, you already have all the system source, it's in the public repository, and you can browse and modify it yourself. The reason you don't want to do so is that if you do, nobody will have your hacked firmware, unless Google accepted your patch, which they might do. Your problem is that what you're wanting to write isn't an app, it's a driver for the device. You won't be able to do that through an app, the system doesn't work like that. There isn't much HID support, from cupcake onward, iirc, because it's just not very
[android-developers] how to get current playing song track information from media player in android
i have read many documents for how to get current playing song track information from media player in android. But i did n't get, please help to me how to get song track information. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enpackage com.test.music; import java.io.IOException; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.media.MediaPlayer; import android.media.MediaPlayer.OnPreparedListener; import android.os.Bundle; import android.util.Log; import android.widget.Toast; public class Playsong extends Activity { String song = null; MediaPlayer mm=null; public static final String SERVICECMD = com.android.music.musicservicecommand; public static final String CMDNAME = command; public static final String CMDTOGGLEPAUSE = togglepause; public static final String CMDSTOP = stop; public static final String CMDPAUSE = pause; public static final String CMDPREVIOUS = previous; public static final String CMDNEXT = next; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle bb = getIntent().getExtras(); if (null != bb) { song = bb.getString(filepath); song=song.replace( ,%20); } IntentFilter iF = new IntentFilter(); iF.addAction(com.android.music.metachanged); iF.addAction(com.miui.player.metachanged); iF.addAction(com.htc.music.metachanged); iF.addAction(com.nullsoft.winamp.metachanged); iF.addAction(com.real.IMP.metachanged); registerReceiver(mReceiver, iF); Log.i(Playsong,==playsong url===+song); mm=new MediaPlayer(); try { mm.setDataSource(song); mm.prepare(); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SecurityException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } mm.setOnPreparedListener(listener); } OnPreparedListener listener=new OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { mp.start(); } }; protected void onDestroy() { super.onDestroy(); mm.stop(); }; private BroadcastReceiver mReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); String cmd = intent.getStringExtra(command); Log.d(mIntentReceiver.onReceive , action + / + cmd); String artist = intent.getStringExtra(artist); String album = intent.getStringExtra(album); String track = intent.getStringExtra(track); Toast.makeText(getApplicationContext(),album,Toast.LENGTH_SHORT).show(); Log.d(Music, artist + ==:== + album + := + track); } }; }
[android-developers] Re: Sudden Drop in App Usage and New Users
I am experiencing the same problem since Sept 23rd. Our Daily new install is still dropping Have you found out why? Thanks On Monday, September 24, 2012 10:32:09 PM UTC-5, Neil Johnston wrote: I have had two apps in the last couple weeks that had sudden drops in the market. They're in the same position in the market app results. But the daily New Users has went from 400 to 45. What can explain such a huge drop in New Users? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Country selection and app update
Some time ago I published an app in the Play Store, later I removed some countries from the country list in the publication options (Android Developers Console). Now I want to update the app and my question is: will the users of my app who bought it or downloaded the free version before I removed their country from the publication options country list still get the update? I don't want them to get the update. Regards, Marcel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] page curl animation
i am working on a app in which i have to give curl animation activity on button click .I am using google page curl code but problem is i have to convert the view in bitmap . each time button click will display new text .and there more than 5000 text .and its not a good way to convert all of them in bitmap . my question is is there any way to give curl effect to my activity on button click without converting to bitmap.Please help me to 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
[android-developers] Sudden drop in Daily User Install since Sept 23rd...
Hello guys, We are experiencing sudden drop in Daily User Install for our apps, since *Sept 23rd*. We are seeing 30%+ drop and we're still dropping to this day. We have not updated our apps, and I checked search ranking for various keywords, everything seemed normal. Is Google making any changes in Google Play that we need to be aware of? I searched online and it seems like very few people are experiencing this issue. It'd be greatly appreciated if anyone can shed some light on this. Thank you so much! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 account from different country
It should work. Is it legal? Ask your lawyer -- no body here will give you legal advice. On Tuesday, October 2, 2012 5:41:01 PM UTC+8, 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
[android-developers] BroadCastEvent not recieved when media files added/removed/edited for MTP devices
*Hi folks,* Stuck with this problem, need more info about this problem i am facing. *I need to handle events when MediaStore is changed over MTP. I already have a receiver for android.intent.action.MEDIA_SCANNER_FINISHED action, but it is useful only for Universal Mass Storage(UMS). The scanner is not launched over MTP, because the MTP changes the MediaStore database directly.* *This is handled in native gallery properly. Please would you be so kind and help me how to detect this events. Thank you very much for any help!* *Thanks Regards, Lohit* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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?
If your needs aren’t satisfied by the emulator, as gjs suggested, I would look into purchasing any of the pure google devices. They have all the binaries and factory images available via Google's developer site. https://developers.google.com/android/nexus/drivers https://developers.google.com/android/nexus/images On Monday, October 1, 2012 4:06:33 AM UTC-4, gjs wrote: Hi, I'd suggest using the latest Google Android device, currently that is the (Samsung) Galaxy Nexus, but rumors suggest it is to be updated very soon (?) Main reason is that the Google phones allow you to see your own debug message on the console pretty easily, where as most other phones have so such junk debug messages on the console, that they swamp your own debug messages making it difficult to test debug your own apps. You can filter debug messages but the console fills quickly (in Eclipse) anyway then has to be reset. If you can live without relying on debug messages through Eclipse then any good recent phone will likely do, eg Samsung Galaxy S3, HTC One X, etc. The Google phones get OS updates before other phones as well. Regards On Monday, October 1, 2012 5:54:28 AM UTC+10, Nilashis Dey wrote: I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] REQUEST
Hi, Actually I´m working in a very important project at UDFJC University In Colombia. I have an idea--- Create a software application about structural design... Do you give me some information of resources what I need for this development??? The application includes 3D Modeling, calculation of materials and basic costs module. I´m a little confused about how to start, what platforms to generate code that is compatible with android and other--- Could you please help me??? Some info, please let me know!!! Regards! -- ANDRÉS LEONARDO MOLINA B. Tecnólogo Mecánico Universidad Distrital Francisco José de Caldas Diseñador • ezGo S.A. (57) 1 747 0252 Ext. 406 • 313 264 6258 Bogotá, Colombia *P Salva un árbol... no imprimas este e-mail si no es necesario.* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: hi...
You can also checkout the guide on the Android Developer's website. http://developer.android.com/guide/topics/data/data-storage.html#db On Monday, October 1, 2012 2:59:59 AM UTC-4, Ibrahim wrote: Hi Dear. Can any one help me out how to store and retrive data in sqlite db in android Thanx 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
[android-developers] Explore by touch with physical navigation keys
Hi, I seek to develop an application that is accessible to visually impaired users. I was playing around a bit with explore by touch on a SGS2 running 4.0.3. I noticed that I do not get feedback when using the physical buttons (menu, home, back). Additionally, there is only one click necessary to activate the button. This is inconsistent with the usual explore by touch experience. In contrast, on a 4.0.3 device with soft keys (Huwawei Mediapad), the explore by touch applies to the navigation keys just like to the other screen elements. This complicates developing an application with the same user experience on different devices which is particularly important for visually impaired users. Is this a bug (e.g. will be changed in future releases) or a feature existent on all physical key devices? Jason82 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Dynamic .APK from GooglePlay store / Android
i haven't used this myself, but look into com.android.vending.INSTALL_REFERRER. apparently it is possible for the Play Store to pass information to the newly-installed app. On Friday, September 28, 2012 11:52:26 AM UTC-7, Marcelo Tomio Hama wrote: My issue is very related with *this*http://stackoverflow.com/questions/11407019/dynamic-apk-in-android question. I'm working in a app that must implement a very uncommon behavior and, in my current overview, I don't know if it is a possible implementation. The main sequence of my desired behavior is: 1. The user is navigating in a browser, that can be either Android's browser or a desktop/remote browser, in a webpage (let's say http://somewebpage.com;); 2. The user access my dynamic website, that has a button to redirect him to GooglePlay store; 3. The user downloads my Android app from GooglePlay; 4. When the app download finishes, in the first open of the Adroid app, it has a reference to the first visited page in item 1 ( http://somewebpage.com;). So, how can I properly implement this? Does GooglePlay store provide a way to pass dynamic arguments to downloaded apps? Is it possible to pass a dynamic configuration file coupled with the .apk in app download-time? I've already spent lots of time in this, but I'm still with no solutions. 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
[android-developers] Re: Billing is not supported on this version of android market!
Same error. Running AOKP JellyBean build 2 on a Galaxy Nexus. Might have something to do with Visidon facial recognition app or Tasker as well. Would love to know if there's any way to resolve. Thanks. On Thursday, June 21, 2012 6:58:05 PM UTC-7, Manoj wrote: Hi, I am using EURO 2012 application, and suddenly getting Billing is not supported on this version of android market error and device is freezing. Could any one please tell the reason why this happens? Thanks, Manoj. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 RTP send and receive for api10
I am new to android programming and i need idea about android RTP programming stuff. Questions 1. How to capture the microphone audio data on android device by using android API coding? 2. How to construct RTP packet by using captured microphone audio data ? 3. How to transmit RTP packet to other android device? 4. How to play received RTP packet in android ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] nested library code visibility
Library One defines a set of AIDL interfaces. Library Two references Library One and builds functionality on top of these AIDL interfaces and exposes them to app developers. When MyApp references Library Two, it sees both the friendly API provided by Library Two as well as the AIDL defined in Library One. Is there some way to prevent Library Two from exposing the contents of Library One to MyApp? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 SDK Tools
hi, while installing the android sdk tool i am having the following error, please tell me how to remove this. Problem signature: Problem Event Name:APPCRASH Application Name:installer_r20.0.3-windows.exe Application Version:1.16.0.0 Application Timestamp:4b1ae3cc Fault Module Name:ntdll.dll Fault Module Version:6.1.7600.16385 Fault Module Timestamp:4a5bdb3b Exception Code:c005 Exception Offset:000332a8 OS Version:6.1.7600.2.0.0.256.1 Locale ID:1033 Additional Information 1:0a9e Additional Information 2:0a9e372d3b4ad19135b953a78882e789 Additional Information 3:0a9e Additional Information 4:0a9e372d3b4ad19135b953a78882e789 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In App Billing V2: Item not found, but purchase OK
hi, I seem to be having the same problem. But after the message ITEM NOT FOUND google wallet asks for the correct money and the correct item. However, upon clicking ACCEPT to make the purchase I get message YOUR ORDER CANNOT BE PROCESSED, PLEASE TRY AGAIN. Did you have the same? Is the problem gone entirely? Thank you, Michele Diblasi On Saturday, 16 June 2012 06:23:02 UTC+2, John wrote: Have In App Billing V2 incorporated into my code and be able to buy one-time purchase item and yearly subscription item. But when purchasing one-time purchase item, always get the message Item not found. Is this a Google bug? Any help? Thanks in advance. -John -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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?
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.peter.w...@gmail.com 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] Accessing a database hosted on a server
I am new to android programming and I have a doubt Have a data base for access for testing only. Is it possible to connect me to a database and insert and delete data? If anyone can help me thank Best Regards Leandro Rodrigues -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using NFC on Android
Hi I'm working on a project for Uni and I was wondering which is the lowest level of the Android API I would need to use for accessing NFC functions etc. Thank you very much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] the Welcome to Android Development window doesn't appears
Hi, i've followed the installation instructions, when i install the ADT and restart Eclipse, the Welcome to Android Development window doesn't appears...why? In the Eclipse - Preference doesn't appear Android and the Android buttons in the GUI doesn't appear. Eclipse version: 4.2.1 ADT version: 20.0.3 Can you help me please? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Nexus 7 device not being detected by Eclipse
Thanks Ravin Chris. This post solved my problem just like yours. Thansk :) Ravin於 2012年9月4日星期二UTC+8下午12時16分29秒寫道: Right after I posted the previous message I got the device to work. After rebooting the PC I went into the device manager and saw that there was no driver for the Nexus 7. This allowed me to select the driver I had downloaded from the ASUS website and I now can see and load the app for debugging. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Country selection and app update
I don't know the answer, but I wouldn't worry about since you cannot change the behavior it anyhow short of publishing your app anew. On Thursday, October 4, 2012 4:52:20 AM UTC+8, groups.mh wrote: Some time ago I published an app in the Play Store, later I removed some countries from the country list in the publication options (Android Developers Console). Now I want to update the app and my question is: will the users of my app who bought it or downloaded the free version before I removed their country from the publication options country list still get the update? I don't want them to get the update. Regards, Marcel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 account from different country
The reason I am saying it should work is because I am American, but could open an account no problems in Singapore with my Singapore bank account. I think the only requirement is, and this may vary from country to country, is that you have a bank account in that country. They are not asking for a proof of citizenship or anything. On Thursday, October 4, 2012 2:47:16 PM UTC+8, Zsolt Vasvari wrote: It should work. Is it legal? Ask your lawyer -- no body here will give you legal advice. On Tuesday, October 2, 2012 5:41:01 PM UTC+8, 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] Using NFC on Android
On Mon, Oct 1, 2012 at 7:57 AM, William Chan kao...@gmail.com wrote: I'm working on a project for Uni and I was wondering which is the lowest level of the Android API I would need to use for accessing NFC functions etc. Can't you answer this for yourself by reading the documentation on NFC? - 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] Using NFC on Android
I would think Gingerbread would be fine for NFC. Br, Yogi On Thu, Oct 4, 2012 at 12:29 PM, TreKing treking...@gmail.com wrote: On Mon, Oct 1, 2012 at 7:57 AM, William Chan kao...@gmail.com wrote: I'm working on a project for Uni and I was wondering which is the lowest level of the Android API I would need to use for accessing NFC functions etc. Can't you answer this for yourself by reading the documentation on NFC? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Accessing a database hosted on a server
On Mon, Oct 1, 2012 at 3:38 PM, Leandro Rodrigues leudas...@gmail.comwrote: 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] Sudden drop in Daily User Install since Sept 23rd...
On Tue, Oct 2, 2012 at 12:57 PM, YS erichu...@gmail.com wrote: Is Google making any changes in Google Play that we need to be aware of? I'm not sure if you're seriously expecting an answer about Google Play issues here, but you're not going to get one. Questions about Google Play should be directed towards the Google Play support channels: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 - 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: Sudden Drop in App Usage and New Users
Questions about Google Play should be directed towards the Google Play support channels: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 - 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] Like facebook message notification on Android
Hi friends , i want to ask how to develop facebook type incoming message notification on Android. Please see attach image file. 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=enattachment: msg.JPG
[android-developers] Re: Like facebook message notification on Android
If any body have any suggestion or source code for it please provide me. Thanks On Thursday, October 4, 2012 12:40:54 AM UTC-7, amit wrote: Hi friends , i want to ask how to develop facebook type incoming message notification on Android. Please see attach image file. 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] Any pointers?
On Tue, Oct 2, 2012 at 8:56 PM, Brian besi...@gmail.com wrote: When I co to compile and run the activity_main.xml file An xml file is not something you compile and build. - 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] image processing in android
i am making an app where i need the phone to automatically click pictures,atleast 10 photos in 2 seconds. also the photos should be clicked in the background ,where the current activity,say my net browser, will be on the screen, and the phots will be contunuasly clicked, also please help me with the classes to use, the functions,and other help is welcome -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Memory Management
I am working on an Android project for last few months. This is my first android project. Basically we have to create a form to fill. Problems forms are long ... very very long ... Client use to use paper form before and each form was normally 10 to 12 page. So we are putting all those large forms in to android. Another major task was to be able to create PDF on the fly and send them by email (each PDF becomes normally 20 pages). Main problem out of memory exception after filling three/four forms. I have already used large heap true which is helping a lot ... allowing me to fill more then two forms but this is not a solution I am calling system.gc() after every major task completion. I have made almost every thing static and no useless variables or memory leak is found. This is just a big hungry application. Each time after loading a form on the screen heap size becomes around 20 MB After sending a pdf email it becomes around 30 MB So when I load a second form heap becomes around 40 MB . Means though I am doing finish() on each component it is not releasing the memory ... Any advice -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 the images in int the form of pixels or matrix, like we have in matlab...
how do i get an image in the form of a array of pixels , just like we have images stored in matlab.like x(i,j).. pleas ehelp.. if not that way, is there any other way to compare two images, and how? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to implement ffmpeg video codec for video player +android
Hi, i am trying to change the bit-rate of a audio file(mp3 format) but i am unable to do it as i don't know native android so, can any one tell me the solution to change the bit-rate of a audio file(mp3 format) , i will be more help full if you send me an example which can change the bitrate Thanks in advance Shiva Shankar On Wednesday, September 21, 2011 8:16:56 PM UTC+5:30, NAVI NEW wrote: Please give me a guideline for implementing ffmpeg on android app. On Wed, Sep 21, 2011 at 7:05 PM, John navi...@gmail.com javascript:wrote: how to implement ffmpeg video codec for video player +android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-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
[android-developers] Re: My First App
El viernes, 17 de agosto de 2012 12:13:11 UTC-5, Divya escribió: Hi, I had the smae problem. I could install the support library when I ran SDK Manager as an administrator by right click on SDK manager.exe Thanks Thanks Divya, it works -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google play
Hi i would like to use google play app in android application to show all the applictions, i am using intent.setComponent(new ComponentName(com.android.browser, com.android.browser.BrowserActivity)); to open it in browser and i need the setcomponent to open in the google play 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
[android-developers] Problem in the map display (gray pixels appear on the map)
[Problem] Problem in the map display (gray pixels appear on the map) [Devices we are experiencing the problem and how to reproduce the problem] With large-screen tablets (e.g. 1280 x 800), display MapView in full-screen or equivalent size. When MapView is updated* (invalidate()) in the following conditions, gray pixels appears on the map. 1)Switch Activity When gone from MapActivity to other activity, then came back to MapActivity. 2)Resume When resumed in MapActivity screen. *Problematic MapView updates Auto map update by API when the map screen is swiped Explicit update by using invalidate() in com.google.android.maps.MapView The problem only occurs when above updates are performed (in other words, we don’t get gray pixels while MapView is not loading). Please advise us if there is any solution to the problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] it doesn't fire, setOnLongClickListener on AppWidgetHostView
i set OnLongClickListner, but it doesn't fire. Can anybody help me? i just follow [url]http://www.anddev.org/appwidgethost_tutorial-t10329.html[/url], and change some, as it is posted in 2010. Some part of code: //declare under class private AppWidgetHostView widgets[] = new AppWidgetHostView[16]; widgets[widgCount] = attachWidget(mAppWidgetHost.createView(this, appWidgetId, appWidgetInfo), width, height); parent.addView(widgets[widgCount]); widgets[widgCount].setOnLongClickListener(new OnLongClickListener() { public boolean onLongClick(View v) { Toast.makeText(MainActivity.this, hello hello , Toast.LENGTH_SHORT).show(); return true; } }); My code: package com.example.test5; import java.util.ArrayList; import android.os.Bundle; import android.app.Activity; import android.appwidget.AppWidgetHost; import android.appwidget.AppWidgetHostView; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProviderInfo; import android.content.ComponentName; import android.content.Intent; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnLongClickListener; import android.view.ViewGroup.LayoutParams; import android.widget.Button; import android.widget.RelativeLayout; import android.widget.Toast; public class MainActivity extends Activity { private Button b1; private AppWidgetManager mAppWidgetManager; private AppWidgetHost mAppWidgetHost; static final int APPWIDGET_HOST_ID = 2037; private static final int REQUEST_CREATE_APPWIDGET = 5; private static final int REQUEST_PICK_APPWIDGET = 9; private AppWidgetHostView widgets[] = new AppWidgetHostView[16]; private int widgCount = 0; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); b1=(Button)findViewById(R.id.button1); b1.setOnLongClickListener(new OnLongClickListener() { public boolean onLongClick(View v) { doWidgetPick(); return false; } }); mAppWidgetManager = AppWidgetManager.getInstance(this); mAppWidgetHost = new AppWidgetHost(this, APPWIDGET_HOST_ID); mAppWidgetHost.startListening(); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); menu.add(0, 1, 0, Add Widget); return true; } public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case 1: doWidgetPick(); return true; } return false; } protected void doWidgetPick() { int appWidgetId = this.mAppWidgetHost.allocateAppWidgetId(); Intent pickIntent = new Intent(AppWidgetManager.ACTION_APPWIDGET_PICK); pickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); /* custom extra that has to be there or else NPE will happen due to android bug */ //this is pulled from the Launcher source, I just changed a few things as it's just a dummy entry at this point ArrayListAppWidgetProviderInfo customInfo = new ArrayListAppWidgetProviderInfo(); AppWidgetProviderInfo info = new AppWidgetProviderInfo(); info.provider = new ComponentName(getPackageName(), XXX.YYY); info.label = i love android; info.icon = R.drawable.ic_launcher; customInfo.add(info); pickIntent.putParcelableArrayListExtra( AppWidgetManager.EXTRA_CUSTOM_INFO, customInfo); ArrayListBundle customExtras = new ArrayListBundle(); Bundle b = new Bundle(); b.putString(custom_widget, search_widget); customExtras.add(b); pickIntent.putParcelableArrayListExtra( AppWidgetManager.EXTRA_CUSTOM_EXTRAS, customExtras); /* that's a lot of lines that are there for no function at all */ // start the pick activity startActivityForResult(pickIntent, REQUEST_PICK_APPWIDGET); //because we've defined ourselves as a singleTask activity, it will allow this intent to be part of the task } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.v(result,requestCode + , + resultCode + , + data); //when the user completes the pick process, both these cases come back, according to log. //looks like this is happening because Pick does a check to see if a config needs to be launched first //if not it just sends the create intent if (resultCode == RESULT_OK) { switch (requestCode) { case REQUEST_PICK_APPWIDGET: addAppWidget(data); break; case REQUEST_CREATE_APPWIDGET: completeAddAppWidget(data); break; } } else if ((requestCode ==
[android-developers] Multiple MapActivity instances in a task
I have an app with a number of activities, one of which subclasses MapActivity. It has a single MapView. For reasons I won't go into, I have situations where I may need more than instance of this MapActivity to be launched. I know the Maps API docs says Only one MapActivity is supported per process. Multiple MapActivities running simultaneously are likely to interfere in unexpected and undesired ways. (linkhttps://developers.google.com/maps/documentation/android/reference/com/google/android/maps/MapActivity). So, what are my options? Use a singleTask or singleInstance flag for this MapActivity subclass? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using NFC on Android
Hi Min sdk version should be of *9* to use nfc Thanks shiva shankar On Thu, Oct 4, 2012 at 12:29 PM, TreKing treking...@gmail.com wrote: On Mon, Oct 1, 2012 at 7:57 AM, William Chan kao...@gmail.com wrote: I'm working on a project for Uni and I was wondering which is the lowest level of the Android API I would need to use for accessing NFC functions etc. Can't you answer this for yourself by reading the documentation on NFC? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Beam: Beam did not complete
I was trying to transfer a file(about 3 mb) using android beam, using the setPushBeamUris(). The transfer seems to be initiated but I am getting the Beam did not complete notification on the receiving device. Both the devices are running jelly bean(Nexus 7 tabs). Dont know what I am not doing right. Here is brief snippet of my code mNfcAdapter = NfcAdapter.getDefaultAdapter(this); if (mNfcAdapter == null) { Toast.makeText(this, NFC is not available, Toast.LENGTH_LONG).show(); finish(); return; }else{ mPDFFileName = grabFileName(); if(mPDFFileName!=null){ Uri fileUri=Uri.fromFile(new File(mPDFFileName)); mNfcAdapter.setBeamPushUris(new Uri[]{fileUri},this); } } 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] How to get pictures save selected pictures as a preference?
I was make an XML file full of my app's settings, and I became stuck on how to get the user to select pictures (or take one from the camera). I figured it would be DialogPreference, but I am not sure how to set it up to give the user an option to select photos from. Basically I want to know how to make a thing in a live wallpaper's preference screen that prompts the user to select photos from the gallery or by capture a photo and save selected/captured photo list into the app's preferences. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiple layout / pages for my android app!
Hello! I have a button in my app. When I press that button, I want it to open a new page or layout as you call it, for that button. Then you should be able to go back somehow. How can I do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android based robot
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
[android-developers] Custom drawables in xml
Hi, I just have a really uncommon question. Is there a way to implement custom drawable (like you implement custom drawables, and then reference them by fully qualified class name in xmls)? I would like to implement AlphaDrawable that would change its alpha based on supplied level (setLevel method). I would like to use it as a part of ProgressBar.progressDrawable :P. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using NFC on Android
Android API level 9 supports NFC functions but Android API level 10 has more functionalists in terms of NFC. So better to use API level 10. On Mon, Oct 1, 2012 at 6:27 PM, William Chan kao...@gmail.com wrote: Hi I'm working on a project for Uni and I was wondering which is the lowest level of the Android API I would need to use for accessing NFC functions etc. Thank you very much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Linkify EditText Android 4
I have tv = (EditText)findViewById(R.id.someid); tv.setLinksClickable(linkify); if(linkify) { tv.setAutoLinkMask(Linkify.ALL); } else { tv.setAutoLinkMask(0); } In Android 4 links are created but nothing happens when touching them. This works in Android 2 correctly. Does anybody know what is issue here? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HTTP server in Android
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
[android-developers] How to get the layout / views info from activity name or package name.
I am creating an android application where I want to access the views/layouts info. I know the package name and the Activity name of the application. Suppose the package is com.hello and the activity is com.hello.HelloWorldActivity. Now based on this information I need to find the layouts and views in the HelloWorldActivity. Is there a way to do this. Can someone help me on 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] android based robot
On Tue, Oct 2, 2012 at 3:26 AM, Rajat Trivedi rajat1.triv...@gmail.comwrote: 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.. Start by working on your English grammar and spelling. Then go to Google and start doing some research. Then, if you're not completely overwhelmed with your endeavor, try something. Then, if and when you get stuck, ask us a detailed question. Good luck. - 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] Multiple layout / pages for my android app!
On Wed, Oct 3, 2012 at 11:56 AM, Ahmad Ardal songul...@gmail.com wrote: How can I do this? Read the documentation and review the samples. This is as basic as it gets in 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
[android-developers] Re: When will releaseYoutube Android Player API
The recent You Tube change that broke the OpenYouTubeActivity has been identified and a fix is posted here: http://code.google.com/p/android-youtube-player/issues/detail?id=14 Martin. On Wednesday, October 3, 2012 10:38:17 PM UTC+1, Viktor Vologzanin wrote: Hi guys, I would like to know when will release Youtube Android API. Is there any concrete date of it? Maybe, it is possible to use demo library? If so where I can get it? I tried to use old openyoutubeactivity library to play video of different quality but there is some problem with link generation in the lib. Always get the error Sorry, this video cannot be played. Maybe, someone has any solution how to play different video quality on android based with ability to change quality and other common youtube features? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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?
On 03/10/2012 03:56, 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 may have a syntax error in your file. If not, and if you work with eclipse, perform a project-clean. - Fabien -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: VideoView, Flash integration and PopupWindow
Hi. I finally found how to do that and build an native video player as a native extension for AIR (the solution was the first one, but adding a setZOrderOnTop on the right place ;o) ). Le mercredi 3 octobre 2012 12:08:56 UTC+2, Jean-Luc TRESSET a écrit : Hi. I'm currently trying to integrate some Android native features to a Flash AIR application. One of these feature deals with the integration of a native VideoView to support all the video formats supported by Android devices. I've tried two things : - creating a VideoView in a native interface as usual and adding it beside the Air surface view, but Flash Air seems to force his own view to be in the front and the videoview becomes visible only after a standby/wakeup of the device (before doing this, only the sound is played). This solution works fine with a TextView or Button, so why not with a VideoView ? Any idea ? - creating a VideoView and adding it to a PopupWindow. In this case I got thi exception on the Java side : Attempted to add window with token that is a sub-window: android.os.BinderProxy@417a2860. Aborting. and the application fire an alert popup saying that the video canot be played. Any idea ? Thanks a lot if any idea/suggestion. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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?
Can you please share the whole project ? On Thu, Oct 4, 2012 at 2:02 PM, Fabien R theedge...@free.fr wrote: On 03/10/2012 03:56, 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 may have a syntax error in your file. If not, and if you work with eclipse, perform a project-clean. - Fabien -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Country selection and app update
Thanks for the answer. Publishing the apps (10) anew would be a solution to make sure that previous users from the excluded counties won't get the updates, but that is alot of work and I would lose the downloads and ratings. I hope there is someone who knows how the app updates are handled in the 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
[android-developers] Consume POJO based web services
How can i consume POJO based web services i -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Consume POJO based web services
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 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: Country selection and app update
On Thu, Oct 4, 2012 at 3:49 AM, groups.mh groups...@gmail.com wrote: I hope there is someone who knows how the app updates are handled in the Play Store. There probably is. The question is will they read your questions and answer it if they do? The answer to that is no. - 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] Consume POJO based web services
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 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 http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ccc..
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] compiler compliance problem
Try this. It will help you out. Thanks and Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] compiler compliance problem
On Thu, Oct 4, 2012 at 3:06 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: http://stackoverflow.com/questions/7637144/android-requires-compiler-compliance-level-5-0-or-6-0-found-1-7-instead-plea Try this. It will help you out. Thanks and Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
I tried once, using the bluetooth of my smartphone to communicate with an arduino-based motorcontroller - Stopped after a bit of experimenting though. On Tuesday, October 2, 2012 10:26:05 AM UTC+2, 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] Uploading video to Youtube
Hi Asheesh arya Thanks for providing me the link. I had successfully uploaded the video to YouTube but i need to get the URL of uploaded video in my application. Any Help Thanks Ravi On Wednesday, October 3, 2012 12:24:45 PM UTC+5:30, asheesh arya wrote: please check this link http://code.google.com/p/ytd-android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Uploading video to Youtube
get the url auhmmm please can you elaborate more. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Uploading video to Youtube
I mean to say, i need to get the URL of the uploaded video. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Predictable search for google places in android
ASALAM O ALAIKUM. Hope every body is fine out there.i need your valuable suggestion on this topic. i am working on application in which there is edit text(input) field when the user enter 3 or 4 characters then i want to show a predictable list of all matching location,just like when we type something in google search,and it shows us list with all matching type..i am using google places api for finding location, so i need your kind attention to how to achieve this. thanks; Best Regards Sultan Ibrahim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ccc..
HI ibrahim sada : first how you stored image and list view values if u stored image path .. i will send u link On Thu, Oct 4, 2012 at 2:49 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote: 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 TextureView canvas drawing problems
Please ignore this it is a duplicate of https://groups.google.com/forum/?fromgroups=#!topic/android-developers/ClKJXc0AgHA On Wednesday, 3 October 2012 10:03:57 UTC+2, Conrad Chapman wrote: I have an app that used SurfaceView to draw dynamic 2D graphs. It worked ok but transformations 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 not accelerated (the view is) does not display initially but if I touch the screen onSurfaceTextureUpdated (currently with no code inside) is called and it displays??? protected void RenderCanvas(){ //mCanvas = null; Canvas c = null; //synchronized (mCanvas) { //mCanvas = null; try { c = mChartView.lockCanvas(null); if (!c.isHardwareAccelerated()) { Log.w(GVIEW, A TextureView or a subclass can only be + used with hardware acceleration enabled.); } synchronized (mCanvas) { c.drawBitmap(buffBitmap, 0, 0, null); } } finally { // do this in a finally so that if an exception is thrown // during the above, we don't leave the Surface in an // inconsistent state if (c != null) { mChartView.unlockCanvasAndPost(c); //mSurfaceHolder.updateTexImage(); } } } I implement the SurfaceTextureListener within my TextureView and all of the program flow seems fine a real surface is handed to the plotting thread by @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); mChart.Redraw(true) } This void finishes with the RenderCanvas() above. Redrawing the view also doesn't work unless i again touch the screen. Cannot I not use TextureView like this? Does it have to be openGl content stream? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MEDIA_MOUNTED broadcast not being recieved when Application is installed on SD card
How do i start my application on startup in case when application is installed on SD card? If i application is installed on Internal memory then using `BOOT_COMPLETED` completed broadcast we can achieve our requirements but this BOOT_COMPLETED intent is broadcasts before the media is mounted so we can not use this broadcast. What i tried so far is, i used the another intent which is `MEDIA_MOUNTED` but don't know why broadcast is not being received. **Here is my code**:br AndroidManifest.xmlbr receiver android:name=.ui.Receiver android:enabled=true intent-filter action android:name=android.intent.action.MEDIA_MOUNTED / data android:scheme=file / /intent-filter intent-filter action android:name=android.intent.action.BOOT_COMPLETED / action android:name=android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE / action android:name=android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE / category android:name=android.intent.category.DEFAULT / /intent-filter intent-filter action android:name=android.intent.action.PACKAGE_REPLACED / data android:scheme=package / data android:path=org.sipchat.sipua / /intent-filter /receiver **Receiver.java**br public void onReceive(Context context, Intent intent) { String intentAction = intent.getAction(); if (intentAction.equals(Intent.ACTION_BOOT_COMPLETED)) { Toast.makeText(context, BOOT Completed, Toast.LENGTH_LONG).show(); on_vpn(false); engine(context).register(); } else if (intentAction.equals(Intent.ACTION_MEDIA_MOUNTED)) { Toast.makeText(context, Media is Mounted, Toast.LENGTH_LONG) .show(); engine(context).register(); } else if (intentAction.equals(ConnectivityManager.CONNECTIVITY_ACTION) || intentAction.equals(ACTION_EXTERNAL_APPLICATIONS_AVAILABLE) || intentAction .equals(ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE) || intentAction.equals(Intent.ACTION_PACKAGE_REPLACED)) { engine(context).register();}} Any help and suggestion will be appreciatedbr 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] Re: Dynamic loading of complete layout file.
The way you describe this there's no real reason to perform any dynamic loading of anything...Your page design seems to be pretty constant. Just design the second page to appear the way you want it to be, then set everything (text, visiblity and etc) once the activity is loaded according to the choices you made. Since your design seems to also be repetitive, you can even use a similar design pattern used to create lists (using adapters) to inflate sections. i.e - create an xml of a single section (biller label, amount textbox and the image seperator) then use an adapter to inflate the proper amount of these sections with the appropriate text and information. Just follow tutorials regarding ListViews to get the general sense of things. On Thursday, July 1, 2010 8:41:14 AM UTC+3, ABhi wrote: Hi All, I'm dealing with a problem you guys might not have faced earlier. I'm having a use-case in my Android application where the actual screen that i want to show to user is not stored in any layout file of my application. The layout of the of the screen is designed by server in this case, based on selection made by user on first screen. Let me elaborate here, 1st Screen : List of check box with different biller names. (Imagine i've selected 2 billers from this screen) 2nd Screen : (The screen that server has decided how it should look like) * Header, * 1st Biller name (Label) * Amount for 1st Biller TextBox * Image (a Separator image) * 2st Biller name (Label) * Amount for 2st Biller TextBox. * Here there can be a checbox/radio/another TextBox anything. * Image (a Separator image) * Button (to submit above form back to server) I hope makes some sense in what i'm planning to design. - The current issues i'm dealing with are as below. 1). How to draw this dynamic widgets? 2). How to fetch user Inputs from this dynamically created widgets? Thanks in advance. Regards Abhishek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multiple MapActivity instances in a task
singleInstance. Create a history machenism that stores the Intents this activity gets (it will get the first in onCreate and the rest on onNewIntent) so you'd be able to re-create the history of the requests. Do notice that in either case, if your map activity is part of some chain of activities, you'll have a hard time maintaining the activity stack you want. On Wednesday, October 3, 2012 10:40:36 PM UTC+2, Partho Bhowmick wrote: I have an app with a number of activities, one of which subclasses MapActivity. It has a single MapView. For reasons I won't go into, I have situations where I may need more than instance of this MapActivity to be launched. I know the Maps API docs says Only one MapActivity is supported per process. Multiple MapActivities running simultaneously are likely to interfere in unexpected and undesired ways. (linkhttps://developers.google.com/maps/documentation/android/reference/com/google/android/maps/MapActivity). So, what are my options? Use a singleTask or singleInstance flag for this MapActivity subclass? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Want to develop my application as offline
Android doesn't support ad-hoc wifi through programming currently as far as i know. Either way, such a method requires users to choose to connect to each other just to establish a connection which isn't that different than just using Bluetooth. The way you describe your application it seems to me like the pair of finding similarities with near music libraries sounds perfect for NFC. Although it is very short distance, but it makes the app more of a social interaction with those around you than just snooping on people and also makes the network setup and data exchange very simple. If the distance is important for you, i guess you can set up some sort of local server in the app that looks up other instances of the app in your local network (WiFi obviously), not the easiest way. On Wednesday, October 3, 2012 3:21:55 PM UTC+2, Henrique Rodrigues Granja da Cruz Lima wrote: Hello there! I'm new here, and also relativelly new to mobile development so don't bother the possible imprecisions of my speech. I'm currently developing a music application, which scans an user music library and tries to find similarities with near music libraries using lastfm apis. I put the process of scanning library and building a database with the similar artists in a background service that wakes up when the user turns the internet on. The objective is to only use network in this process. With the database updated, I only need a way of passing information between different devices and it's important to me that this is a *offline * process (I think it's one of the valuable assets of my application). For my research, the only offline connection between devices I know is * Bluetooth* . However, as you know, this technology is kind of deprecated and it's not always reliable, principally because you can only communicate in short distances. Do you have a hint of doing this in other ways? I thought about *socket*connections, but for that you need to have a network connection. I also thought about creating this connection using *ad-hoc* networks programatically, but that I don't know if it is possible (at least, not in earlu versions of the android OS). Thank you very much, it is a pleasure writing in this forum! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MEDIA_MOUNTED broadcast not being recieved when Application is installed on SD card
If you want your app to start at boot then you should not allow it to be installed on external storage. http://developer.android.com/guide/topics/data/install-location.html#ShouldNot On Thursday, October 4, 2012 1:58:22 PM UTC+2, Juned Khan wrote: How do i start my application on startup in case when application is installed on SD card? If i application is installed on Internal memory then using `BOOT_COMPLETED` completed broadcast we can achieve our requirements but this BOOT_COMPLETED intent is broadcasts before the media is mounted so we can not use this broadcast. What i tried so far is, i used the another intent which is `MEDIA_MOUNTED` but don't know why broadcast is not being received. **Here is my code**:br AndroidManifest.xmlbr receiver android:name=.ui.Receiver android:enabled=true intent-filter action android:name=android.intent.action.MEDIA_MOUNTED / data android:scheme=file / /intent-filter intent-filter action android:name=android.intent.action.BOOT_COMPLETED / action android:name=android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE / action android:name=android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE / category android:name=android.intent.category.DEFAULT / /intent-filter intent-filter action android:name=android.intent.action.PACKAGE_REPLACED / data android:scheme=package / data android:path=org.sipchat.sipua / /intent-filter /receiver **Receiver.java**br public void onReceive(Context context, Intent intent) { String intentAction = intent.getAction(); if (intentAction.equals(Intent.ACTION_BOOT_COMPLETED)) { Toast.makeText(context, BOOT Completed, Toast.LENGTH_LONG).show(); on_vpn(false); engine(context).register(); } else if (intentAction.equals(Intent.ACTION_MEDIA_MOUNTED)) { Toast.makeText(context, Media is Mounted, Toast.LENGTH_LONG) .show(); engine(context).register(); } else if (intentAction.equals(ConnectivityManager.CONNECTIVITY_ACTION) || intentAction.equals(ACTION_EXTERNAL_APPLICATIONS_AVAILABLE) || intentAction .equals(ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE) || intentAction.equals(Intent.ACTION_PACKAGE_REPLACED)) { engine(context).register();}} Any help and suggestion will be appreciatedbr 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] EditText linkify in Android 4 issue
I have tv = (EditText)findViewById(R.id.someid); tv.setLinksClickable(true); tv.setAutoLinkMask(Linkify.ALL); In Android 4 links are created but nothing happens when touching them. This works in Android 2 correctly. Does anybody know what is issue here? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MEDIA_MOUNTED broadcast not being recieved when Application is installed on SD card
Yeah thats true, but if i want to perform the action on ACTION_MEDIA_MOUNTED. and using that action i can start my application in background even if its on SD Card -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] video uploaded from galaxy tab not playing
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-developers@googlegroups.com To unsubscribe from this group, 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
Did u try running it with some other media player in the same tab? On Oct 4, 2012 6:29 PM, mohana priya gpriyara...@gmail.com 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-developers@googlegroups.com To unsubscribe from this group, 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] In-App Billing Example (Dungeons) does not increment purchases.
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
Re: [android-developers] REQUEST
May be this is a long shot. But may be you can look at 3D modelling tools like AutoDesk and see if you can export the 3D structures to be consumed by Android. Just a thought. I expect lot of work but worth doing... Tue, Oct 2, 2012 at 4:18 PM, ANDRÉS LEONARDO MOLINA Good luck http://satyakomatineni.com/android/training http://satyakomatineni.com http://androidbook.com http://twitter.com/SatyaKomatineni moland...@gmail.com wrote: Hi, Actually I´m working in a very important project at UDFJC University In Colombia. I have an idea--- Create a software application about structural design... Do you give me some information of resources what I need for this development??? The application includes 3D Modeling, calculation of materials and basic costs module. I´m a little confused about how to start, what platforms to generate code that is compatible with android and other--- Could you please help me??? Some info, please let me know!!! Regards! -- ANDRÉS LEONARDO MOLINA B. Tecnólogo Mecánico Universidad Distrital Francisco José de Caldas Diseñador • ezGo S.A. (57) 1 747 0252 Ext. 406 • 313 264 6258 Bogotá, Colombia P Salva un árbol... no imprimas este e-mail si no es necesario. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] New Item in Unlock Selection
Hello There, I am using the ApiDemo sample application. I am trying to understand how the DeviceAdminInfo and the DevicePolicyManager work. I want to add a new mechanism programatically to lock the screen. I was wondering if someone could guide me in the right direction. Attached is the screen shot of the Unlock Selection Screen when we navigate to API Demos - App - Device Admin - Password Quality - Set Password None Slide Pattern PIN Password ?? Is it possible to add a new item in this list E.g. Wifi and give some settings to lock the screen on Wifi. I want to lock the screen if the phone is not in a particular WiFi area. Need to give an SSID as the unlock policy. Is there a way to do it ? Any help would be appreciated. thanks Dom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: unlock_selection.png
[android-developers] Re: Google account from different country
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: android based robot
You could use a USB to Serial converter to communicate with motor controller. To start you can use the Slick USB 2 SERIAL Terminal application. What type of controller are you using? Roy Am 04.10.2012 18:01 schrieb Christian Nikolaj Thomsen c...@nodes.dk: I tried once, using the bluetooth of my smartphone to communicate with an arduino-based motorcontroller - Stopped after a bit of experimenting though. On Tuesday, October 2, 2012 10:26:05 AM UTC+2, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en