Re: [android-developers] Regarding maps
On Mon, May 21, 2012 at 12:54 AM, sourabh sahu souruit...@gmail.com wrote: There is a map a static image, and I have display the area where wheat grow,so I want to display that particular area as shaded one. OK. So do some custom drawing. Review the MavView and Overlay classes and their draw() methods. The Canvas class, and other related classes, will also be helpful. - 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] Regarding maps
Please can you post some sort of example or weblinks... Thanks, Sourabh On Mon, May 21, 2012 at 11:31 AM, TreKing treking...@gmail.com wrote: On Mon, May 21, 2012 at 12:54 AM, sourabh sahu souruit...@gmail.comwrote: There is a map a static image, and I have display the area where wheat grow,so I want to display that particular area as shaded one. OK. So do some custom drawing. Review the MavView and Overlay classes and their draw() methods. The Canvas class, and other related classes, will also be helpful. - 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] Localization of numerical edits
I have some numerical input fields an some ouput fields. In german locale the decimal symbol is ',' whereas in english locale it is '.' My program runs in a german environment of the OS but the input fields use the english locale. The number format of sTemp = String.format(%.2f m, 2 * rest); displays in the correct locale. How can I fix the input fields? TIA, Hans -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Button is not actionable when i set to button background color
Hi friends, i am facing the one issue in android. issue is in single alert box we display 16 buttons with different back ground colors and we handling the listener for getting the result which button is clicked(setonclick listener) but button is not actionable(requirement is Color selector box). Regards Srinivas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Spinner Help
Hi,, I'm new to android developing... I'm developing a simple app that have 5 spinners.. when I select 1 item in a spinner I want to auto select other spinner items that equals to the selected item position. I used setOnItemSelectedListner and it worked for the 1st spinner.. but others don't work. here's my code for 1st 2 spinners. any solution? spinner1.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView? parentView, View selectedItemView, int position, long id) { int pos1=spinner1.getSelectedItemPosition(); spinner2.setSelection(pos1); spinner3.setSelection(pos1); spinner4.setSelection(pos1); spinner5.setSelection(pos1); } public void onNothingSelected(AdapterView? arg0) { } }); spinner2.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView? parentView, View selectedItemView, int position, long id) { int pos2=spinner2.getSelectedItemPosition(); spinner1.setSelection(pos2); spinner3.setSelection(pos2); spinner4.setSelection(pos2); spinner5.setSelection(pos2); } public void onNothingSelected(AdapterView? arg0) { } }); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: GPS streams in Android to do DGPS
Hello , i'm searching in the same subject to make android device act like DGPS , i would like to know have found any solutions for this problem ? thanks in advance On Wednesday, November 3, 2010 11:27:07 AM UTC, facotl wrote: Hello, I have done a DGPS (to increase GPS accuracy) client in C on another target (i'm developper for embedded devices). I want to do it on Android too. My questions are : I guess that Android manage GPS, can I modify the GPS output stream for others applications (to apply a correction on NMEA positions) ? Some GPS chipsets allow a RTCM correction stream as input and apply correction themselves. Is this possible to send data to the GPS ? And to read the GPS chipset model (to evaluate if it allows RTCM) ? Thank you for your help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Samsung Galaxy Gio Stuck at Startup
Hi, I got galaxy gio, which has Android 2.3.3, today at a worse moment of my life, I update my gio from Setting About Phone Update then it ask me for sign in, I login then it start updating after some time it says your phone is now restarting, then a 20 - 30 mints loading comleted and it stucks, then I restart it doesn't do anything, it only stucks at boot up screen, on that my screen just showing me Galaxy Gio S5660 and then nothing happened just stuck, I again restart but it stuck. now I want to restore it to factory setting by pc, if it possible, I thing i have disturb the OS so I can only restore it by from my PC. plz help I think i have lost my 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] Android developer registration with Neteller
Hello everyone, I tried to register as an android developer with my Neteller card, but Google asks for the Bank code and my bank account number. I am registered with a local bank now, where I have these data, but I tried to add my Neteller card, so the money I earn would be transferred to that card from next month. How am I supposed to register/add this card? I contacted Neteller and they told me to contact Google... This was my question: I have created a Neteller account and have just activated my Neteller card. I want to register as an Android developer with this card and google asks for the bank code of your bank (Conister Bank?) and my account number. Can you help me? This is their bland answer: WIth regards to your inquiry, I asked my supervisor. I found that you need to put just your card information as usual credit card for purchase something. Therefore it should not be like that. Please ask the company and explain that. I don't even know if that is Conister Bank or Barclays Bank. Thanks, Balint -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bluetooth api connect to multiple devices at the same time
I am using the Android Bluetooth Chat Sample, and I was wondering how and where I should add codes to able to connect to multiple devices? On Wednesday, December 22, 2010 8:57:53 PM UTC-6, Kristopher Micinski wrote: Many people have this problem, this implements a Bluetooth Piconet, this is why this is using seven different UUIDs for the Bluetooth socket. I went through this example and saw how it is implemented, it is similar to how we implement this client/server functionality in a few of our applications in our research. I believe the key to getting this to work is inthe mUuid list. Take a close look at what this is doing? for (int i = 0; i Connection.MAX_SUPPORTED myBSock == null; i++) { for (int j = 0; j 3 myBSock == null; j++) { myBSock = getConnectedSocket(myBtServer, mUuid.get(i)); if (myBSock == null) { try { Thread.sleep(200); } catch (InterruptedException e) { Log.e(TAG, InterruptedException in connect, e); } } } } What this code does is looks to connect to the device, but how does it do so? It tries the socket multiple times, using multiple UUIDs for the session. In essence it means that we can use UUID only *once*. So instead this application implements using seven UUIDs, then the server listens and accepts each UUID on the server side, this is what is done with the following code: for (int i = 0; i Connection.MAX_SUPPORTED maxConnections 0; i++) { BluetoothServerSocket myServerSocket = mBtAdapter .listenUsingRfcommWithServiceRecord(srcApp, mUuid.get(i)); BluetoothSocket myBSock = myServerSocket.accept(); myServerSocket.close(); // Close the socket now that the // connection has been made. String address = myBSock.getRemoteDevice().getAddress(); mBtSockets.put(address, myBSock); mBtDeviceAddresses.add(address); Thread mBtStreamWatcherThread = new Thread(new BtStreamWatcher(address)); mBtStreamWatcherThread.start(); mBtStreamWatcherThreads.put(address, mBtStreamWatcherThread); maxConnections = maxConnections - 1; if (mCallback != null) { mCallback.incomingConnection(address); } } Now, on the client side of things what is done? The client does not know how many active connections the server currently has. If we have some agreed upon order that the clients must use we can simply use this, however, in our case, we simply just try *each UUID* in sequence until we find the right one. Hopefully this helps you, and everyone else who has questions about this problem, feel free to email me with problems you have. Short version: -- Use multiple UUIDs, you can only use one at once. So define seven (max for piconet usage) and try each one until you find the right one. Thanks, Kristopher Micinski Michigan State University 2010/12/22 苗鹏 mp870...@gmail.com I looked at the FBTClickLinkCompete'source, for (int i = 0; i Connection.MAX_SUPPORTED myBSock == null; i++) { for (int j = 0; j 3 myBSock == null; j++) { myBSock = getConnectedSocket(myBtServer, mUuid.get(i)); if (myBSock == null) { try { Thread.sleep(200); } catch (InterruptedException e) { Log.e(TAG, InterruptedException in connect, e); } } } } This code fragment shows a client that trys to connect the server... The sample of SDK(BluetoothChat) used same code except for (int i = 0; i Connection.MAX_SUPPORTED myBSock == null; i++) { for (int j = 0; j 3 myBSock == null; j++) { I don't understand why? what'more, it can't connect to multiple devices at the same time! Thanks!!! 2010/12/21 Morrison Chang morrison.ch...@gmail.com Look at http://code.google.com/p/apps-for-android/ Specifically the code for BTClickLinkCompete for a sample of Bluetooth connectivity. http://code.google.com/p/apps-for-android/source/browse/#svn%2Ftrunk%2FBTClickLinkCompete I think the air hockey sample supports 4 other devices along with the server device. -Morrison On Dec 20, 3:37 am, 苗鹏 mp870...@gmail.com wrote: could you share me your code?Thanks! 2010/12/20 James 030440...@163.com of course you can, On Dec 18, 9:25 am, 苗鹏
[android-developers] Unlock bootloader
Hello, I wanted to unlock the bootloader, but when i have to inser my IMEI it asks for a 14 digit number, mine is 15 digits. How can i get the right code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Contact Groups
Hi , I need help in contact groups add, delete and modify. I had a business requirement to perform all these actions through xml. Please provide me any tutorial and links to work ahead. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Read Heap from DDMS
Hi, I have the same problem and a similar dominator tree.Did you guys find a solution ??? On Thursday, 2 February 2012 22:27:31 UTC-5, Dmitrij wrote: I have the same problem https://lh5.googleusercontent.com/-itXwQBVHmOA/TytT8nWvLqI/ALQ/XgQqXx932p8/s1600/2012-02-03-062503_1920x1080_scrot.png On Thursday, 2 February 2012 22:27:31 UTC-5, Dmitrij wrote: I have the same problem https://lh5.googleusercontent.com/-itXwQBVHmOA/TytT8nWvLqI/ALQ/XgQqXx932p8/s1600/2012-02-03-062503_1920x1080_scrot.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Picture.createFromStream gets stuck - does not return new picture
Anybody could use Picture.createFromStream successfully? When using static method Picture.createFromStream (static Picture createFromStream (InputStream stream))on a file created by writeToStream, it does not return new picture(actually does not return at all). Here is the snapshot of the code public boolean streamPicture(Picture p) { if(_outStream == null) return false; else { p.writeToStream(_outStream); if(fileOutputStream != null ) { p.writeToStream(fileOutputStream); // retrieved by fileOutputStream = new FileOutputStream(/data/picture.nubo) ; try { fileOutputStream.flush(); fileOutputStream.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } try { Picture p_check = Picture.createFromStream(new FileInputStream(/data/picture)); //*** gets stuck here } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } return true; } } } The code gets stuck at *** 1. I checked and saw that the file /data/picture is created before line ***. 2. Picture p is retrieved by capturePicture() in webview (I did not use startRecording) Any ideas anybody? Thanks, Asi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] DrmManagerClient and base DRM agents
DrmManagerClient::getAvailableDrmEngines can provide the information about the DRM plug-ins or agents. Is there a standard list of DRM Agents that are always there on Android platform irrespective of the Device manufacturer ? What DRM agents are always supported on ICS ? Thanks Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 MonkeyRunner to test apps on several emulators
Hi there, I am writing a set of scripts that drive an app on several emulators simultaneously. My main script spawns several threads, each of which runs an instance of MonkeyRunner and I am using a Monkey script to interact with the app and using a loop calling repeatedly device.getProperty('am.current.comp.class') to identify the class that originates the current activity. This is to react differently by performing different actions depending on the activity being displayed. This seems to work reasonably well for one emulator, but the moment I have two or more emulators running at the same time, the call to device.getProperty('am.current.comp.class') seems to get stuck on a class that displayed an earlier activity. Any idea why that might be? Note that I am connecting to the correct emulator by using device = MonkeyRunner.waitForConnection(deviceId=emulatorName) where emulatorName starts off tipically at 'emulator-5554'. Alternatively, is there a more reliable way to achieve this with a sort of monitoring app that sits in the emulator and, somehow (not sure how), communicates with the driving script? Many thanks, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Altering UserAgent for the Emulator
First, I'm not a developer, I'm QA. Part of my role in QA is to find some answers to questions which apparently not many are asking. Can I change the user agent of the Emulator to match that of an actual device? By using about:debug I can change to desktop, iphone, ipad, froyo, and android, however using just android results in generic build/unknown My website and app contain an error with some Motorola devices (specifcally the Droid Razr and Photon) where users are unable to submit a search within a search field (the search field is jquery or jscript, whatever one of the newest ones is). This ONLY happens, so far, on these devices and I am able to reproduce using the emulator for these devices (other emulated devices function ok). So, either we need to fix the issue (which is preferred but unknown as to how), or we have to add useragents for every device that ends up broken (which seems to trend towards Motorola devices). So back to the question(s): Can I change the user agent of the Emulator to match that of an actual device? This would assist immensly for fix verification How can I reliably find the user agent of devices? Currently the only place I've found, though it uses WURFL (and I'm not sure howe correct it is), is: http://www.tera-wurfl.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Impact of Android Customizations by device manufacturers
Hi all, I am trying to write an android application that uses several of the android apis(like policy manager, package manager, wifi apis etc). The concern i have is, android being open, manufacturers/carriers are free to take any specific version of android as their start point and customize the same and ship it with the device. Note:Please excuse me if this post is in anyway a repeat of earlier posts on the same/similar topic. In such a case, appreciate anyone sharing the earlier post. Few things that bother me are: - Does android enforce/require manufacturers/carriers to retain the default apis and only over-ride/customize the look-and-feel? - even if manufacturers change the implementation/behavior of the basic apis that comes from android, do they adhere to the interfaces so that my code doesnt break? - how do i ensure/test that my code works on all of the android devices since there is a possibility that one or more customizations could break my whole application? I know these are some naive questions for many of you who may have been on android for a while, but any pointers in this regard would be of immense help. Any other information in general w.r.t cross version, cross device incompatibilities and strategies to deal with them would be very helpful. Thanks a lot in advance. Regards, Deepak -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AsyncTask in Android 4.0
I'm trying to update my codebase to use ThreadPoolExecutor, but I found this to be odd: /** @hide */ public static void setDefaultExecutor(Executor exec) { sDefaultExecutor = exec; } So why is this method hidden? So I can't globally set the DefaultExecutor to ThreadPool? Or is this subject to change that is why its marked as @hide? Currently the Solution I came up with is subclass the AsyncTask: public abstract class ThreadPoolAsyncTaskParams, Progress, Result extendsAsyncTaskParams, Progress, Result { public void executeOnThreadPool(Params...params) { /* * This is a helper method to allow ICS AsyncTask to run in a thread pool, * without break API compatability with pre-ICS devices. * If you don't want a threadpool use the default AsyncTask since that is the * default for ICS. If you don't want a threadpool for pre-ICS (API level 13) * then you need to write your own AsyncTask. Use the AsyncTask.java source as a starting point. */ if (Build.VERSION.SDK_INT = Build.VERSION_CODES.ICE_CREAM_SANDWICH) { this.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); } else { this.execute(params); } } } I'm just wondering if this is the best solution? That way I can use a ThreadPoolAsyncTask if I really want Parallel task and use AsyncTask directly if I want Serial execution. Am I understanding this correctly? Thanks, On Friday, April 20, 2012 3:16:35 PM UTC-4, Nathan wrote: Still adjusting to the changes in Android 4.0 regarding AsyncTask. If I understand right, the default behavior of execute is changing to one single thread pool with only one thread? With the reason cited that programmers are not capable of handling a bigger threadpool (I'm paraphrasing). Does that mean, that absent some code changes, all asynctasks inside a process will only happen sequentially? So therefore, if I have a service running DownloadDictionaryTask in the background, and the user chooses a menu item that starts CheckDiskSpaceTask, the progress bar will cycle without any progress because the task never makes progress? A user and I could briefly reproduce a situation where, as far as I could tell, no asynctasks were running, yet my AsyncTask would not even start. In this case, I couldn't even get one thread. Alas, I cannot reproduce that situation, which appeared to fix itself without any code changes. But in any case, this isn't really acceptable to have only one asynctask task run at once. But there is no central way to control that behavior, is there? I would have to replace 83 instances of task.execute with task.executeonExecutor. Since the above method is only available in SDK11, this isn't a one line change - it's more like 10-20 lines of code with reflection, and some extensive testing. In my opinion, this a deplorable punishment for those developers who have dutifully followed the AsyncTask pattern, which, to this day, the Android platform has encouraged. Or perhaps I am reading this wrong. Maybe all DownloadDictionaryTasks share one pool, and all CheckDiskSpaceTasks share another pool. In that case, the rule is that only one task *of the same concrete type* can run at once. This rule, I can probably live with, as I've used my own threading pools for tasks that are truly data parallel. Can anyone enlighten me more? Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AlarmManager doesn't start service
I have a big problem with my app for serveral days now. I appologize if my english is not so native in advance. I implemented an AlarmManager to give the user of my app the option to start a certain service at any time of the current or the next day. So e.g. the user might choose to set the time for my service to tomorrow at 08:00 a.m. and then starts the service. The alarm manager should now wait the calculated time from now till the chosen time (i calculated the time also manually and it is correct!) and then start the service. My problem now is that sometimes the alarmmanager is starting my service and somtimes not. It seems that if it has to wait for lets say more than 4 hours it is not working any more and my service is not called. I have set all neccessary permission otherwise it would not work at all. You can have a look at the code of the alarmmanager below: someIntent = new Intent(START_SERVICE); AlarmManager alarams ; alarmIntent = PendingIntent.getBroadcast(MainActivity.this, 0, someIntent, PendingIntent.FLAG_CANCEL_CURRENT); alarams = (AlarmManager) getSystemService(Context.ALARM_SERVICE); alarams.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()+delay, alarmIntent); The broadcast receiver is implemented like this (and it is registered!): alarmReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Intent myIntent = new Intent(MainActivity.this, MyService.class); startService(myIntent); } }; I read smth. about the WAKE_LOCK and that my Service might not be called anymore before the phone goes into sleep mode after the broadcast receiver is being called. Can this be the reason? I really hope you can help me Best Regards eMu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AsyncTask in Android 4.0
On Friday, April 20, 2012 3:16:35 PM UTC-4, Nathan wrote: Still adjusting to the changes in Android 4.0 regarding AsyncTask. If I understand right, the default behavior of execute is changing to one single thread pool with only one thread? With the reason cited that programmers are not capable of handling a bigger threadpool (I'm paraphrasing). I'm also trying to figuring out why setDefaultExecutor is hide but public? /** @hide */ public static void setDefaultExecutor(Executor exec) { sDefaultExecutor = exec; } Is this because it is subject to change and non-framework clients (i.e. third party dev) should be use this? For my app I wanted to globally change the Executor to ThreadPool, but that doesn't seem possible. So what I'm currently doing is subclass the AsyncTask like so: public abstract class ThreadPoolAsyncTaskParams, Progress, Result extendsAsyncTaskParams, Progress, Result { /* * This is a helper method to allow ICS AsyncTask to run in a thread pool, * without break API compatability with pre-ICS devices. * If you don't want a threadpool use the default AsyncTask since that is the * default for ICS. If you don't want a threadpool for pre-ICS (API level 13) * then you need to wrote your own AsyncTask. Use the AsyncTask.java as a good starting point. */ public void executeOnThreadPool(Params...params) { if (Build.VERSION.SDK_INT = Build.VERSION_CODES.ICE_CREAM_SANDWICH) { this.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); } else { this.execute(params); } } } I'm just wondering is this is a good solution? This way I can use ThreadPoolAsyncTask for task that can run in parallel and don't have any implicit dependence on other tasks. And use AsyncTask directly if i want them to run in serial. 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] Screen Lock Dialog.
I am trying to implement a Screen Lock Dialog for an application, much like the 3x3 pattern unlock for the phone. I currently have full functionality except I cannot draw the lines that is drawn between the dots. Tips? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 2.2 Problem about Video Scaling
In my application I need to show videos in some boxes with different dimensions. So I am currently giving some dimension to my videoview however videos that I gave could not scale into those regions. They are just cut off from those dimensions. I already tried to implement my own onMeasure method but It didn't help me too. So anyone knows how to scale videos for different boxes? Thanks in advance. Deniz Tuna -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AT commands on android emulator
Hello, Is there any way to send directly AT commands on /dev/sdm0 on Android SDK emulator. On real phone it works but I cannot find /dev/smd0 on emulator. Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Storing data on the SD card in Froyo - files deleted when upgrading revisited
I'm using: android.content.ContextWrapper.getExternalFilesDir(null) as the location to store my app's files. The app is designed to run on API versions 8 (Android 2.2) onwards. Whilst testing on the emulator running 2.2 I find that if I upgrade the application then it deletes the existing files in this location. This has been discussed before: https://groups.google.com/d/topic/android-developers/to1AsfE-Et8/discussion Dianne Hackborn gave details of the patch which was made to Froyo, presumably in a subsequent build. According to: http://developer.android.com/resources/dashboard/platform-versions.html 2.2 still comprises about 20% of devices so I'd like to support it but I don't want to risk deleting users' data which in my app is user generated and might not be recoverable. The Platform Versions report doesn't break the figures down by build number so it's difficult to know how many users could be affected by this. Can anyone help? Am I worrying unnecessarily? Were many 2.2 devices released with this bug still in? If the emulator had been patched I might not have spotted the problem but the fact that it isn't makes me reluctant to ignore it. I know I could sidestep the issue by simply choosing my own directory but I'd like to follow best practices if I can. TIA Simon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 voice modulation
i m making an application based on voice modulation. i got success to record and play audio file using media recorder: now i want to convert my audio file(.3gp) in float array. i have tried a lot but still i dont get any proper solution : can somebody tell me how to achieve 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] How to get a reference to the stock launcher activity object?
I want to read out the shortcuts' and widgets' position and name on the screens of the launcher. Since every launcher is different, I will focus on the stock launcher of Android for the moment. I have not found an API to do this, so I am trying my luck with Java's Reflection API. So far I have been able to get the class and read out the type of the variable holding the items on the desktop called mDesktopItems: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.2.2_r1/com/android/launcher2/Launcher.java#201But to read out the variable's content, I need a reference to the launcher activity object. It's obvious that this object does not have to exist, but I can probably check regularly and once it does, I would fetch the data. So how do I get a reference to the launcher activity object? Or could you think of a better way of fetching the required data? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.2 VideoView Scaling
I have also the same exact problem as Richard does. Anyone knows how to make those videos fit into the region that is given by me? Thanks in advance. 3 Mayıs 2012 Perşembe 13:13:25 UTC+3 tarihinde Richard Davison yazdı: Hi, I'm trying to create an app that plays a rtsp stream. I'm having no problem doing that, the problem I'm having is that the VideoView simply cuts out a box of the dimensions I set it to, rather than scaling the video to fit the dimensions. I have tried creating my own custom VideoView and overriding the onMeasure method, but this does not scale the video to fit either, it simply cuts out a box of the set dimensions. Does anyone have any idea how to fix this, or if this is an already known bug with 2.2? Thanks, Rick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] consuming data from google doc...
i want to consume data from an excel sheet in google doc.how it is done?the doc is updated by admin and the data on my app should be updated accordingly... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] proguard.cfg filling is miising when try to deploy app connected android project
1 I have installed Eclipse (Eclipse IDE for Java EE Developers 3.7.2) + latest version of Android SDK + ADT Plugin + GPE (Google Plugin for Eclipse). When I created *Android Engine Connected Android Project* I got Creation of Element Failed Reason: C:\Android...\tools\lib\proguard.cfg (The system cannot find the file specified) and Creation of element failed. Reason: Resource '/myc2dm.project.test-AppEngine/war/WEB-INF/appengine-web.xml' already exists. I repeated the same installations on different PC (Window 7) and got the same problems. I created Android Hello World project fopr test and it worked well. Did I use wrong Eclipse version or I miss some configurations? Really apprciate your help, thank you 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] Android Play - How Set a price for each country/region
Hi, I'm trying to set a price other than the default for some countries and regions. But this option does not appear to me. Someone has got to do it? Seen in: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=1169947 that this option exists at least for others. thank you Daniel www.neoage.com.br My apps https://play.google.com/store/apps/developer?id=neoage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] factory data reset in source code?
Hi guys, can someone tell me which class in the source code of Android 2.x.x implements a function for menu icon Settings/Privacy/Factory data reset? 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] Re: How to detect screen rotation through 180 degrees from landscape to landscape orientation?
Date: Fri, 18 May 2012 16:23:02 -0700 Subject: [android-developers] Re: How to detect screen rotation through 180 degrees from landscape to landscape orientation? From: joachim.pfeif...@gmail.com To: android-developers@googlegroups.com On May 18, 4:20 pm, JP joachim.pfeif...@gmail.com wrote: to conclude Infer, rather, being nitpicky... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Picasa Image Uploader
Hi, I am looking samples to upload a selected picture from my device to Picasa Album. Is there any way? I tried this snippet: Intent temp = new Intent(Intent.ACTION_SEND); temp.setType(image/png); temp.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); temp.putExtra(Intent.EXTRA_STREAM, fileUri); temp.setComponent(new ComponentName( com.google.android.apps.uploader, com.google.android.apps.uploader.clients.picasa.PicasaSettingsActivity)); try { startActivity(temp); } catch (android.content.ActivityNotFoundException ex) { Log.d(TAG, Errore upload Picasa); } which works, but in this way I can't insert a comment (only a legendy that will be displayed above the pic), while to insert a comment I have to do it manually from browser (after upload). I'd like to know if there's a way to get the image URL after uploading it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get stream video(m3u8 format) resolution from url link, android2.3.3?
I have tried many ways to retrieve the video meta data from url like (http://xxx.xxx.xxx.xxx/streams//playlist.m3u8), the project is useing android 2.3.3 SDK. 1. As I know the MediaMetadataRetriver can solve it with capture_mode but it needs the android vesion level after 14, but android 2.3.3 is level 10. (it doesnt work in project). MediaMetadataRetriever retr = new MediaMetadataRetriever(); retr.setDataSource(mContext , video.getUriWithDrmCheck()); retr.setMode(MediaMetadataRetriever.MODE_CAPTURE_FRAME_ONLY); Bitmap bm = retr.captureFrame(); int wVideo = bm.getWidth(); int hVideo = bm.getHeight(); 2. I have been used vetamio to retrieve the video resolution, but the system crashed. io.vov.vitamio.MediaPlayer m= new io.vov.vitamio.MediaPlayer(this); m.prepareAsyc(); m.setDataSource(url); m.getVideoAspectRatio(); m.release(); 3. The default android.media.mediaplayer in android could not retrieve the url video information. The video height I got from it is 0. 4. I tried thumbnail method to retrieve the video information, but the Thumbnail method seems can only phase the localPath, not the url link path. Bitmap bMap = ThumbnailUtils.createVideoThumbnail(url, MediaStore.Video.Thumbnails.MICRO_KIND); So does any one know how to retrieve a stream video (m3u8 format) resolution from url link in android?? 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] How to start a new activity when the client side socket is connected?
Hi, i am building and app which requires Server PC and Android client. Although i am unable to call and activity using intend right after the client connects. Any ideas? I really need help on this. I am posting my files here 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=enpackage my.hasham.joy.app; import android.app.Activity; import android.os.Bundle; public class Acontroller extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.main); } } package my.hasham.joy.app; import java.net.Socket; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.View.OnKeyListener; import android.view.Window; import android.view.WindowManager; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public class MyAppActivity extends Activity { /** Called when the activity is first created. */ Button mButton; EditText mEdit; String ip; Socket s; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.addip); mButton = (Button)findViewById(R.id.button1); mEdit = (EditText)findViewById(R.id.editText1); mButton.setOnClickListener( new View.OnClickListener() { public void onClick(View v) { String ip = mEdit.getText().toString(); Wificlient getip = new Wificlient(); getip.createsock(ip,s); Wificlient sock = new Wificlient(); sock.status(s); if(sock==true){ Intent startAcontroller = new Intent(my.hasham.joy.app.ACONTROLLER); startActivity(startAcontroller); } else{ Intent startAcontroller = new Intent(my.hasham.joy.app.ACONTROLLER); startActivity(startAcontroller); } } }); } } package my.hasham.joy.app; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.net.Socket; public class Wificlient { String ip; public Socket s; public void createsock(String ip, Socket s){ try{ s = new Socket(ip,); InputStream is = s.getInputStream(); InputStreamReader isr = new InputStreamReader(is); BufferedReader br = new BufferedReader(isr); OutputStream os = s.getOutputStream(); PrintWriter pw = new PrintWriter(os,true); } catch(Exception ex){ //System.out.println(ex); } } //connection check public int status(Socket s){ boolean mysocket = s.isConnected(); if (mysocket==true){ return 1; } else{ return 2; } } }
Re: [android-developers] ActivityNotFound issue
Hi, Are you sure you have declared your activity in your manifest file .99% i am sure it will work. like this. activity android:name=.DynamicTableActivity / On Tuesday, May 15, 2012 6:07:18 PM UTC+5:30, Peeyush wrote: As your activity is not present, attach the logs also if it is possible. On Mon, May 14, 2012 at 10:13 AM, DMac danielmac...@gmail.com wrote: I am trying to test the progress of my program so far with a statement. The statement is within an activity that is called by another activity before, and that one is called by another activity before that (so an activity within an activity within an activity). The problem is when I run the program, I come into an error that says ActvityNotFoundException and the emulator has to force close, however, all my classes extend the Activity class. I am not sure how to solve the problem since I do not think I should have one. I uploaded my files to allow for checking. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank Regards Peeyush Varshney -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: java.lang.OutOfMemoryError on 4.0.3 APV and phone not in 2.1 2.3
Hi , i am using following attached three class to download images in my list view but when i display some of images on screen after that i got out of memory error and hang the application.in my app i am download thousands of images on a single screen. is it possible or not??. Thanks On Thursday, May 17, 2012 10:22:19 AM UTC+5:30, huberte wrote: I used the method from Renaud here http://stackoverflow.com/questions/7524725/android-passing-variable-from-intent-extra-to-imageview/10604079#10604079 This works fine on 2.1 2.3 phone and AVD when I tunr the phone from landscpae to portrait and vice versa Not in 4.03 phone and AVD, I get a java.lang.OutOfMemoryError, note that my bitmap eg, my png file is only 189ko heavy 05-17 04:29:53.532: E/AndroidRuntime(1227): FATAL EXCEPTION: main 05-17 04:29:53.532: E/AndroidRuntime(1227): java.lang.OutOfMemoryError 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.nativeCreate(Native Method) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createBitmap(Bitmap.java:605) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createBitmap(Bitmap.java:551) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:437) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:524) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:499) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:351) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:374) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:404) 05-17 04:29:53.532: E/AndroidRuntime(1227): at com.android.fbd.Images.onCreate(Images.java:35) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.Activity.performCreate(Activity.java:4465) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3351) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.access$700(ActivityThread.java:123) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1151) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.os.Handler.dispatchMessage(Handler.java:99) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.os.Looper.loop(Looper.java:137) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.main(ActivityThread.java:4424) 05-17 04:29:53.532: E/AndroidRuntime(1227): at java.lang.reflect.Method.invokeNative(Native Method) 05-17 04:29:53.532: E/AndroidRuntime(1227): at java.lang.reflect.Method.invoke(Method.java:511) 05-17 04:29:53.532: E/AndroidRuntime(1227): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 05-17 04:29:53.532: E/AndroidRuntime(1227): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 05-17 04:29:53.532: E/AndroidRuntime(1227): at dalvik.system.NativeStart.main(Native Method) On Thursday, May 17, 2012 10:22:19 AM UTC+5:30, huberte wrote: I used the method from Renaud here http://stackoverflow.com/questions/7524725/android-passing-variable-from-intent-extra-to-imageview/10604079#10604079 This works fine on 2.1 2.3 phone and AVD when I tunr the phone from landscpae to portrait and vice versa Not in 4.03 phone and AVD, I get a java.lang.OutOfMemoryError, note that my bitmap eg, my png file is only 189ko heavy 05-17 04:29:53.532: E/AndroidRuntime(1227): FATAL EXCEPTION: main 05-17 04:29:53.532: E/AndroidRuntime(1227): java.lang.OutOfMemoryError 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.nativeCreate(Native Method) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createBitmap(Bitmap.java:605) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createBitmap(Bitmap.java:551) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:437) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:524) 05-17 04:29:53.532:
[android-developers] sound
hey im a beginner in android im using a webview just uploading my html5 and javascripts but my problem is sound im using jquery sound but it cant play on android emulator. any help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Connecting via WiFi
You need to create sockets between the two devices one must pe the server others must be the clients see java.net.socket On Monday, 14 May 2012 13:15:18 UTC+5, BArtWell wrote: How to programmatically connect two devices via WiFi? May be I have some way to initialize AdHoc or HotSpot on device? Which classes I need to use? It is desirable on Android 2.x. I will be indebted for any suggestions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Add multiple list view inside the scroll view
Here is the layout to use for adding multiple list view inside the table row with its index and finally it will in scroll view for scrolling horizontally and vertically but i am unable to scroll it how to solve this...so that i can scroll and call get view method of adapter...Please guide Me i have lot goggling on it...but there is no solution...is it possible in this way or another way 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] Re: Uploading large files - using setChunkedStreamingMode
Hi All, I have also problem during lazy loading of images.the out put of log is like this. please guide me if .. (28446): cache size=4191750 length=107 05-16 15:33:06.110: I/MemoryCache(28446): cache size=2952450 length=81 05-16 15:33:06.250: I/MemoryCache(28446): cache size=4228200 length=108 05-16 15:33:06.270: I/MemoryCache(28446): cache size=4902525 length=129 05-16 15:33:06.590: D/dalvikvm(28446): GC_FOR_ALLOC freed 1009K, 3% free 62703K/64455K, paused 192ms 05-16 15:33:06.600: I/MemoryCache(28446): cache size=2642625 length=72 05-16 15:33:06.600: I/MemoryCache(28446): cache size=4938975 length=130 05-16 15:33:06.600: I/MemoryCache(28446): cache size=4501575 length=124 05-16 15:33:06.610: I/MemoryCache(28446): cache size=4975425 length=131 05-16 15:33:06.610: I/MemoryCache(28446): cache size=4538025 length=125 05-16 15:33:06.610: I/MemoryCache(28446): cache size=5212350 length=137 05-16 15:33:06.630: I/MemoryCache(28446): cache size=4574475 length=126 05-16 15:33:06.720: I/MemoryCache(28446): cache size=5248800 length=138 05-16 15:33:06.850: I/MemoryCache(28446): cache size=5011875 length=132 05-16 15:33:06.880: I/MemoryCache(28446): cache size=2679075 length=73 05-16 15:33:07.070: I/MemoryCache(28446): cache size=5285250 length=139 05-16 15:33:07.100: I/MemoryCache(28446): cache size=5048325 length=133 05-16 15:33:07.380: D/dalvikvm(28446): GC_FOR_ALLOC freed 790K, 3% free 63129K/64903K, paused 177ms 05-16 15:33:07.390: I/MemoryCache(28446): cache size=3134700 length=86 05-16 15:33:07.390: I/MemoryCache(28446): cache size=4610925 length=127 05-16 15:33:07.390: I/MemoryCache(28446): cache size=4264650 length=109 05-16 15:33:07.410: I/MemoryCache(28446): cache size=2988900 length=82 05-16 15:33:07.660: I/MemoryCache(28446): cache size=5321700 length=140 05-16 15:33:08.610: I/MemoryCache(28446): cache size=4647375 length=128 05-16 15:33:09.050: I/MemoryCache(28446): cache size=5358150 length=141 05-16 15:33:09.110: I/MemoryCache(28446): cache size=3025350 length=83 05-16 15:33:09.210: I/MemoryCache(28446): cache size=4301100 length=110 05-16 15:33:09.390: I/MemoryCache(28446): cache size=4337550 length=111 05-16 15:33:09.470: I/MemoryCache(28446): cache size=5084775 length=134 05-16 15:33:09.640: I/MemoryCache(28446): cache size=4374000 length=112 05-16 15:33:10.080: I/dalvikvm-heap(28446): Clamp target GC heap from 64.109MB to 64.000MB 05-16 15:33:10.080: D/dalvikvm(28446): GC_FOR_ALLOC freed 930K, 3% free 63490K/65287K, paused 190ms 05-16 15:33:10.080: I/MemoryCache(28446): cache size=4683825 length=129 05-16 15:33:10.090: I/MemoryCache(28446): cache size=4683825 length=129 05-16 15:33:10.090: I/MemoryCache(28446): cache size=5121225 length=135 05-16 15:33:10.090: I/MemoryCache(28446): cache size=5157675 length=136 05-16 15:33:10.090: I/MemoryCache(28446): cache size=2715525 length=74 05-16 15:33:10.150: I/MemoryCache(28446): cache size=4720275 length=130 05-16 15:33:10.200: I/MemoryCache(28446): cache size=5394600 length=142 05-16 15:33:10.330: I/MemoryCache(28446): cache size=5157675 length=136 05-16 15:33:10.360: I/MemoryCache(28446): cache size=2751975 length=75 05-16 15:33:10.550: I/dalvikvm-heap(28446): Clamp target GC heap from 64.279MB to 64.000MB 05-16 15:33:10.550: D/dalvikvm(28446): GC_FOR_ALLOC freed 555K, 3% free 63663K/65543K, paused 173ms 05-16 15:33:10.550: I/dalvikvm-heap(28446): Forcing collection of SoftReferences for 36466-byte allocation 05-16 15:33:10.750: I/dalvikvm-heap(28446): Clamp target GC heap from 64.279MB to 64.000MB 05-16 15:33:10.750: D/dalvikvm(28446): GC_BEFORE_OOM freed 9K, 3% free 63654K/65543K, paused 188ms 05-16 15:33:10.750: E/dalvikvm-heap(28446): Out of memory on a 36466-byte allocation. 05-16 15:33:10.750: I/dalvikvm(28446): pool-5-thread-3 prio=5 tid=37 RUNNABLE 05-16 15:33:10.750: I/dalvikvm(28446): | group=main sCount=0 dsCount=0 obj=0x41981bd8 self=0x424c10 05-16 15:33:10.750: I/dalvikvm(28446): | sysTid=28483 nice=0 sched=0/0 cgrp=default handle=4412056 05-16 15:33:10.750: I/dalvikvm(28446): | schedstat=( 1152779000 227827000 2242 ) utm=98 stm=17 core=0 05-16 15:33:10.750: I/dalvikvm(28446): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 05-16 15:33:10.750: I/dalvikvm(28446): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587) 05-16 15:33:10.750: I/dalvikvm(28446): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:643) 05-16 15:33:10.750: I/dalvikvm(28446): at utils.ImageLoader.getBitmap(ImageLoader.java:88) 05-16 15:33:10.750: I/dalvikvm(28446): at utils.ImageLoader.access$0(ImageLoader.java:57) 05-16 15:33:10.750: I/dalvikvm(28446): at utils.ImageLoader$PhotosLoader.run(ImageLoader.java:151) 05-16 15:33:10.750: I/dalvikvm(28446): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) 05-16 15:33:10.750: I/dalvikvm(28446): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 05-16 15:33:10.750: I/dalvikvm(28446):
[android-developers] Android Code Architecture
I started learning Java and Android yesterday, so I`m totally a newbie... I`m developing an app, it will have some basic functions: authentication, post comments, location... My doubt is how to organize the code, I`m asking now because my code is small, but in a few months... I want to make everything very organized! I`ve done a basic authentication... I`ve only one activity, here it is: http://pastebin.com/Zt9fiq7r and here is my Authentication class: http://pastebin.com/kBS7pDJM I added this part to be sure that session is working: if (user) { Toast.makeText(this, Usuário logado., Toast.LENGTH_LONG).show(); sessionEditor.remove(user).commit(); } How can I change the layout when the app open if there`s a logged user? When should I create new Activities? What`s the best way to change the layout? 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: Android bluetooth api connect to multiple devices at the same time
i have tried this solution.. but it does not work. it crashes on the third device connction. We get an error like this 05-12 15:41:55.463: I/net.clc.bt.ConnectionService(10793): IOException in getConnectedSocket 05-12 15:41:55.463: I/net.clc.bt.ConnectionService(10793): java.io.IOException: Service discovery failed On Saturday, December 18, 2010 6:25:08 PM UTC+4, 枫儿 wrote: It is possible to connect simultaneously to multiple bluetooth 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] Pasar de una pantalla a otra
La pregunta es como pasar de una pantalla a otra. Por ejemplo desde la pantalla actual hago click en un boton. Quiero que este botón me presente otra pantalla para poder presentar los nuevos controles. Estoy usando Eclipse. Por favor su ayuda. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] changing process priority
Hi all, I am trying to change the priority of another process through the method, setThreadPriority (int tid, int priority) how ever I am getting the security exception saying I don't have permission to modify the given thread. Is there any permission that I must add to the android manifest? will it be possible to issue setThreadPriority (int tid, int priority) on another process if my app runs as root? currently it has app_someOn. if so how can I make my app run as root? Thanks, Regards, Kani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Long click on list activity item
Ah, this was exactly what I needed. Thanks for the tip! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Webkit browser plugin detection
Hi all, I've gp the sample code for Browser plugin from the Froyo source code: /development/samples/BrowserPlugin/ I built the plugin and install it on emulators (GingerBread and Honeycomb). I test it with opening a local html file with the web browser and it works/ However, when I install the plugin on my device and I open the same html file with my browser, nothing happens. The plugin is not loaded. Do you have any idea ? Here the trace of the Log 05-18 21:43:38.180: D/PackageManager(105): Scanning package com.android.sampleplugin 05-18 21:43:38.190: I/PackageManager(105): Unpacking native libraries for /data/app/com.android.sampleplugin-1.apk 05-18 21:43:38.230: D/installd(70): DexInv: --- BEGIN '/data/app/ com.android.sampleplugin-1.apk' --- 05-18 21:43:38.310: D/installd(70): DexInv: --- END '/data/app/ com.android.sampleplugin-1.apk' (success) --- 05-18 21:43:38.330: D/PackageManager(105): Services: com.android.sampleplugin.SamplePlugin 05-18 21:43:38.330: I/ActivityManager(105): Force stopping package com.android.sampleplugin uid=10079 05-18 21:43:38.480: I/installd(70): move /data/dalvik-cache/ data@a...@com.android.sampleplugin-1.apk@classes.dex - /data/dalvik- cache/data@a...@com.android.sampleplugin-1.apk@classes.dex 05-18 21:43:38.480: D/PackageManager(105): New package installed in / data/app/com.android.sampleplugin-1.apk 05-18 21:43:38.480: W/PackageManager(105): Unknown permission android.webkit.permission.PLUGIN in package com.android.sampleplugin 05-18 21:43:39.800: D/VoiceDialerReceiver(4549): onReceive Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.android.sampleplugin flg=0x1000 cmp=com.android.voicedialer/.VoiceDialerReceiver (has extras) } Thank in advance Megaman X -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Learing Hint
Hai Guys im very new to android development. Can u guys guide me to develop an application. I have Android sdk and i have completely update upto date, and im using Eclipse Helios as an IDE and i using Windows xp os. So far instalation process is completed for. Can u guys help me to learn this technology. im waiting 4 u valuable reply... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Recording system calls
Hi, Could someone tell me what is the best way to record system calls in an android emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Software and Game dedicated keyboards
Dedicated keyboard skins are available like this http://www.solotype.com/images/thumbs/0001168_430.jpeg which showed shortcut keys cheat sheets directly on the keys. This is called a dedicated keyboard. I was thinking I would be great if these dedicated keyboard skins were available on tablets I haven't seen this type of thing yet. Even an on-screen keyboard for pc's to use as a cheat sheet could be helpful there are not many option available to help mesmerising these - I'm always forgetting the Photoshop shortcut keys. When I'm working between after effects, and illustrator and autocad it's gets very confusing each software has different shortcuts. If I could work on tablet and either preview the shortcut key by having them display beside the key letters or switch between a visual text keyboard and a shortcut keyboard I could be more productive, I'm not suggesting keys in that link I've supplied are good design it's just an example. I will make a keyboard if someone wants to make this just email me template... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] VOIP call hand off from 3G/4G to wifi and back or vice versa
I am curious if anyone has played around with the VOIP stack in ICS. I have found that durning a voip call over 3g/4g if you move into an area with a known associated wifi network the phone will connect to this wifi network and drop the 3g connection and along with it the voip call. this does the exact same thing from wifi to 3g/4g as well. now my question is how can one get it to hand off the active call when switching between cellular and wifi networks.? In theory i know how this should work.. has google just not implemented this into the VOIP stack of ICS..? this would be a killer feature and take the android OS over the top.. Thanks for your time.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] noob developer, application keeps restarting
Hi everyone, I'm working on developing my first real application beyond the basic tutorials. It is a fairly simple flashcard program for me to use in school and I have it up and running smoothly. It utilizes a set of variables to keep track of how many and which cards I have seen, nothing too fancy. However, sometimes when I switch to another application and come back to my program, it restarts everything, while in other instances it will pick up where the program left off. There doesn't seem to be any pattern to when the program resets, and I don't have any task killer software installed that would end the program without my knowledge. I am inquiring how I tell the program to simply continue running in the background, and then if there is a function I can insert to quit the program so I can assign that to a button? I posted the start up code below, and would be happy to post more if someone could direct me to what would be relevant. As you can see I have it programed to go to the app's home screen when the app loads for the first time, which works if the app has quit and is restarting, but in most circumstances it resumes the flashcard portion, almost as if you had loaded the program and pressed the resume button from the home screen (which is what I want to happen all the time). I would be fine with loading the home screen every time someone switched out of the application, as long as the variables didn't reset when that happens. Any advice would be much appreciated. @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.home); goHome(); } public void goHome(){ //defines the home screen setContentView(R.layout.home); final Button instructionButton = (Button) findViewById(R.id.instructionButton); instructionButton.setOnClickListener(this); final Button newButton = (Button) findViewById(R.id.newButton); newButton.setOnClickListener(this); final Button resumeButton = (Button) findViewById(R.id.resumeButton); resumeButton.setOnClickListener(this); final Button reviewButton = (Button) findViewById(R.id.reviewButton); reviewButton.setOnClickListener(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] Thread usage
Hi all, I have created a thread using C++ under mediaserver application. When I am doing 'top' it is showing only cpu usage of all including 'mediaserver' but the newly created thread. can someone help how to get thread level cpu consumption for the newly created thread. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] jquery sound
hi is it possible to play sound on android from jquery sound plugin. im designing an app which should play sound after some time but i cant get the sound issue right :( thanx for helping or atleast trying :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Publishing free and paid versions of the same app
Hi all, I have a free version of my app posted on Google Play. I have had some demand to provide a paid version also. When I tried ti upload the APK for the paid version, Google Play complained because it used the same package name as the free version. What is the recommended way to handle this? Obviously the free and paid version are very similar in their code base. I don't want to maintain 2 different projects if I can help it. Any recommendations for solving this problem? Is there a standard way to organize projects to achieve this goal? Many thanks in advance! - Kaos -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] consuming data from google doc...
see this site,here answer been for your question http://tamil-androiddeveloping.blogspot.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding maps
On Mon, May 21, 2012 at 1:04 AM, sourabh sahu souruit...@gmail.com wrote: Please can you post some sort of example or weblinks... I've named the exact names of the classes you should consult. I'm sure you are quite capable of finding the relevant classes in the documentation and examples using a Google search. - 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] AT commands on android emulator
Hello, Is there any way to send directly AT commands on /dev/sdm0 on Android SDK emulator. On real phone it works but I cannot find /dev/smd0 on emulator. Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] re: for help
Hi All, i can create the text view dynamically using code can any help me in deleting the text view programatically using java code in android please help me, Thanks Naveen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
How can hide my application in android mobile?, but application running background. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Licensing response with release APK
My understanding is that if you are logged in with your developer account on your device then it will always show whatever the test license status is from the server. If not and it's a draft (not yet published) app, then it will always return LICENSED. See http://developer.android.com/guide/market/licensing/licensing-reference.html#server-response-codes under LICENSED On May 17, 7:27 am, robertfoster onetwof...@gmail.com wrote: Hi all, I'm going through the final phases of testing with Google Play licensing with my finished APK. I've created an entry on Google Play for my App and uploaded the same testing APK I'm using on my device. The APK is a release signed version too. However when I run the APK on my device (Not downloaded from Google Play), the license response is LICENSED. Should it not be NOT_LICENSED? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bitmap rotation performance
Hi you all, the question is simple: how to accomplish the bitmap rotation for big size bitmap without blocking the user for a lot of seconds? For example in the default android gallery you can rotate an image in a very fast manner. I thought to apply the matrix rotation on the ImageView (which can be done in a few time) and compute the same matrix rotation for the bitmap on an AsyncTask, but if the app is stopped before the task termination i get an inconsistent state. Any help will be appreciated. Thanks, Mauro. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 integrating Android application with Postgresql database
I am developing a Android application with target Android 2.1. In this application I try to integrate my application with Postgresql database using jdbc driver(Drivers with which I have tested the application are: postgresql-9.0-801.jdbc4.jar postgresql-9.0-801.jdbc3.jar postgresql-8.3-606.jdbc4 Also I have added in my application AndroidManifest.xml file following line: uses-permission android:name=android.permission.INTERNET / But on running android emulator I am getting this error: Caused by: java.lang.NoClassDefFoundError: org.postgresql.Driver Please suggest me some work around to solve this 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] Access to VideoView on WebView in fullscreen
Hi, I want to access to video on html5 page when it goes to fullscreen. Unfortunately I can cast it only to SurfaceView (there is a HTML5VideoFullScreen object). Is it possible to cast it to VideoView somehow? Regards, Mariusz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to Intercept Post request in Android WebView?
Hi, I've found an ugly solution working for android 2.3 (implementing an android.net.http.RequestQueue and gluing it into the framework with reflection) but it doesn't work on ICS anymore... If your ICS is compiled with CHROME_NETWORK_STACK you are out of look. The idea with a proxy is ok, but if you want to read post-headers for SSL sites you get in even more trouble. Cheers Leif -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 custom Event to javascript EventListener
Is it possible to create in Android event, witch send data to javascript EventListener in WebView? For example: In background, I start thread what search updates on server. When updates was found I send event to update data on user page(in WebView). And I dont want reload view. Thanks for help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to detect Mobile Acess Point network mode?
WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); Method[] wmMethods = wifi.getClass().getDeclaredMethods(); for(Method method: wmMethods){ if(method.getName().equals(isWifiApEnabled)) { try { method.invoke(wifi); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } I understand it's not in time, but it may help others. вторник, 7 декабря 2010 г., 3:19:43 UTC+2 пользователь edrowland написал: I'd like to be able to distinguish between Mobile non-Access-Point, and Mobile with-Access-Point mode, but I can't seem to figure out how to do it. When a 2.2 phone is configured as a Mobile Access Point, WifiManager says that the wifi is disconnected. ConnectionManager says pretty much the same: that the connection is mobile rather than wifi. The only distinction I seem to be able to make is that the IP address when acting as an Access Point is 192.168.*, rather than 10.*.*.*. That doesn't seem like an entirely safe way to do things. The application: I really don't want to send SSDP broadcast packets onto a 3G network. I can't imagine it would actually work. But if it did, the results would be truly catastrophic. So I'd just plain rather not. I'd like a safe way to distinguish the two case: Mobile/no- AccessPoint, and Mobile/with access point. Anyone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [NFCSTATUS_PENDING] in packages/apps/Nfc/jni layer of Android stack
We were facing a problem during firmare download part of the jni code in com_android_nfc_NativeNfcManager.cpp file. So we commented the code which was responsible for firmware download. Now phLibNfc_Mgt_Initialize() function in same file retuned nfcstatus as [NFCSTATUS_PENDING]. We dont know were the context is being set to NULL. The device /dev/pn544 is opened and appropriate log msg is being displayed. But phHciNfc_Initialise() function returns NFCSTATUS_PENDING in phHal4Nfc.c. Please do reply if anything can be done. Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to convert .swf to .apk ?
confused, Your link cannot be found by my browser (404 not found). Could you check it, 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
Re: [android-developers] Publishing free and paid versions of the same app
Your pro version must have a different package name from the free one. This means, when the users download the pro version, they will also have the free version installed on their phone. This is how I usually do it and have not found other ways yet, i guess this is the general solution. 2012/5/17 Kaptkaos kaptkao...@gmail.com Hi all, I have a free version of my app posted on Google Play. I have had some demand to provide a paid version also. When I tried ti upload the APK for the paid version, Google Play complained because it used the same package name as the free version. What is the recommended way to handle this? Obviously the free and paid version are very similar in their code base. I don't want to maintain 2 different projects if I can help it. Any recommendations for solving this problem? Is there a standard way to organize projects to achieve this goal? Many thanks in advance! - Kaos -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] noob developer, application keeps restarting
When it is in the background, Android kills your application when it needs more resources. One way to keep your data would be to write it to SharedPreferences in onPause(), and read it from the same in onResume(). http://developer.android.com/reference/android/content/SharedPreferences.html Thanks On Thu, May 17, 2012 at 12:33 AM, jon dattilo j.dattil...@gmail.com wrote: Hi everyone, I'm working on developing my first real application beyond the basic tutorials. It is a fairly simple flashcard program for me to use in school and I have it up and running smoothly. It utilizes a set of variables to keep track of how many and which cards I have seen, nothing too fancy. However, sometimes when I switch to another application and come back to my program, it restarts everything, while in other instances it will pick up where the program left off. There doesn't seem to be any pattern to when the program resets, and I don't have any task killer software installed that would end the program without my knowledge. I am inquiring how I tell the program to simply continue running in the background, and then if there is a function I can insert to quit the program so I can assign that to a button? I posted the start up code below, and would be happy to post more if someone could direct me to what would be relevant. As you can see I have it programed to go to the app's home screen when the app loads for the first time, which works if the app has quit and is restarting, but in most circumstances it resumes the flashcard portion, almost as if you had loaded the program and pressed the resume button from the home screen (which is what I want to happen all the time). I would be fine with loading the home screen every time someone switched out of the application, as long as the variables didn't reset when that happens. Any advice would be much appreciated. @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.home); goHome(); } public void goHome(){ //defines the home screen setContentView(R.layout.home); final Button instructionButton = (Button) findViewById(R.id.instructionButton); instructionButton.setOnClickListener(this); final Button newButton = (Button) findViewById(R.id.newButton); newButton.setOnClickListener(this); final Button resumeButton = (Button) findViewById(R.id.resumeButton); resumeButton.setOnClickListener(this); final Button reviewButton = (Button) findViewById(R.id.reviewButton); reviewButton.setOnClickListener(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 -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Samsung Galaxy Gio Stuck at Startup
This list is for developing applications with the Android SDK. For help with your phone, try finding a phone specific forum. Thanks On Thu, May 17, 2012 at 11:56 PM, andrew smart andrewsmart...@gmail.comwrote: Hi, I got galaxy gio, which has Android 2.3.3, today at a worse moment of my life, I update my gio from Setting About Phone Update then it ask me for sign in, I login then it start updating after some time it says your phone is now restarting, then a 20 - 30 mints loading comleted and it stucks, then I restart it doesn't do anything, it only stucks at boot up screen, on that my screen just showing me Galaxy Gio S5660 and then nothing happened just stuck, I again restart but it stuck. now I want to restore it to factory setting by pc, if it possible, I thing i have disturb the OS so I can only restore it by from my PC. plz help I think i have lost my 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 -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding maps
I know ...I browse a lot for some example..but no help..thats why I asked you to put some example. Sourabh On Mon, May 21, 2012 at 12:12 PM, TreKing treking...@gmail.com wrote: On Mon, May 21, 2012 at 1:04 AM, sourabh sahu souruit...@gmail.comwrote: Please can you post some sort of example or weblinks... I've named the exact names of the classes you should consult. I'm sure you are quite capable of finding the relevant classes in the documentation and examples using a Google search. - 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] Publishing free and paid versions of the same app
Move all of the common code to a library project. You will need two different package names to upload the apps still, but it will save you from having two different projects altogether. Thanks On Mon, May 21, 2012 at 12:37 PM, Balint Farago balintfar...@gmail.comwrote: Your pro version must have a different package name from the free one. This means, when the users download the pro version, they will also have the free version installed on their phone. This is how I usually do it and have not found other ways yet, i guess this is the general solution. 2012/5/17 Kaptkaos kaptkao...@gmail.com Hi all, I have a free version of my app posted on Google Play. I have had some demand to provide a paid version also. When I tried ti upload the APK for the paid version, Google Play complained because it used the same package name as the free version. What is the recommended way to handle this? Obviously the free and paid version are very similar in their code base. I don't want to maintain 2 different projects if I can help it. Any recommendations for solving this problem? Is there a standard way to organize projects to achieve this goal? Many thanks in advance! - Kaos -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] camera preview formats and sizes
hello, i would need to process camera preview frames of high quality in android. Is there a list of devices which are capable of using the ImageFormat.RGB_565 camera preview format? i would need to know supported preview formats and supported preview size before buying the device... (i can't use the YUV420 format, i need color information of the frame) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Banned For title Of App(hungry Hippo's)
The best option for your app would be to stop using a hippo character and switch to a different animal, like pigs. Right now your app has text and characters that are similar to the hungry hippo's board game and no matter where you post it will probably get DCMA'd. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Performance issues on android
Hi - I have an android app that is continuing to have loading and speed issues, regardless of the numbers of users. Does anyone have experience is performance optimization on android that might be able to help? Please let me know Thanks, Henry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ICS don't give you a real multitasking.
Yes, Fragments helps a lot. I did multi tasking using activities, Asyctask, hidden layouts in a Relative lout,etc. But Fragments is the best solution, I believe.Not sure about compatible jars of fragments that works in lower versions, but heard that it works equally good. I think every knows that some UI features still very in iPhone, we can easily overlay a screen on another without coding effort or less coding. But Android certainly gives the rich ness and User friendly experience with fragments that are better than iPhone in some scenarios. regards On Wednesday, May 16, 2012 8:13:12 PM UTC+5:30, Streets Of Boston wrote: from your talking it seems that in your mind the app needs to store every user's move in database and restore it in every onCreate(), hey, have you every programmed an android app? If you write an app that allows the user to change an Activity's data and state (that is not backed by input fields such as EditText, etc), you'd need to persist this data when the activity (and application) is restarted. However, you don't need to implement you own database/persistence/storage for this. Just implement the callback method onSaveInstanceState correctly (save the data/state into the provided bundle) and read the data from this bundle in the onCreate. Easy peasy. Or use a (hidden) Fragment. Even more easier peasier. And yes, I have programmed an Android app On Wednesday, May 16, 2012 10:01:35 AM UTC-4, sblantipodi wrote: As the graph I posted explain the app is not restarted, but the latest activity is. If the activity is restarted, user needs to reinput the input it submitted, variables needs to be re-populated, etc. from your talking it seems that in your mind the app needs to store every user's move in database and restore it in every onCreate(), hey, have you every programmed an android app? On May 16, 3:51 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, May 16, 2012 at 10:43 PM, sblantipodi perini.dav...@dpsoftware.org wrote: don't try to justify a broken system, please. Take a fresh new galaxy nexus, install on it three small apps, choose you the apps and start them, now open two tabs on your browser, choose you the site, now come back at the first apps opened, you will see that the activity has been restarted, now open the other two apps, now return to browser, the page needs a refresh on every tabs. Even if you are right, what is the problem with the apps being restarted? If they have been implemented properly it shouldn't matter. If they haven't, well, get whoever wrote them to fix them. This is obviously a broken multitasking system. Really? Define a non-broken multitasking system then. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need Help Im beginner
i want to put advertisement on my android application. i use admob sdk in my library. but whenever i try to put import com.admob . it became red, pls help me to fix that -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Listview with multiple layout
Layout: Two layout xml files: 1)one layout for listview 2)another layout for list items. use two textview widget and arrange it one below other. Layout: 1)linear layout 2)relative layout or use combination of relative and linear application code: use i)SimpleCursorAdapter ii)custom adapter that fits your requirement Referece : http://developer.android.com/reference/android/app/ListActivity.html Use list adapter similar to examles in listing 4 and 14 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List4.html On Friday, May 18, 2012 11:39:48 AM UTC+5:30, Jovish P wrote: In our app we have to show a screen just like below. The data is in a hash map with key value pairs. We want to show the keys of hashmap as header item of Listview and values for that keys as item layout under that key. Please help us how to implement this. Regards, Jovish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Deleting from item from listview using OnItemLongClickListener
Hello, In code I have listview which is saving in ArraylistDay. Everything with item adding work, but i want to delete it using long click listener. I use some tutorials but it doesn't work - when i run program it get froce close. i use this source code. listView_monday = (ListView) findViewById(R.id.myListview_monday); listView_monday.setAdapter(new ArrayAdapterDay(this,R.layout.list_view_monday, SilentClockActivity.listas_monday)); listView_monday.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView? arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub return false; } }); If i understand good i need to get postition of lsitview item, and romeve it, but how to do it? P.S Later i save all my list in file, but know i just want to delete it from listview after long press. https://lh5.googleusercontent.com/-CLaBX-eFbkY/T7Y0r8bDZvI/ABM/kf45jhiYBa0/s1600/Untitled.jpg This is picture of my project, i think it will be easier to understand for you. If you need more info or source code, write here :) I hope someone helps for me! 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: Accessing Front and Back Camera at the same time
From what i know is that it is not possible. You are right the hardware is different for both but the software that accesses the camera is same and it can only use one camera at a time. On Monday, May 21, 2012 9:05:58 AM UTC+5:30, perumal316 wrote: Hi All, I want to access the front and back camera at the same time. Is this possible? From what I tested, this could not be done. It crashes if an application is already accessing the back camera and another app is trying to access the front camera. But what I don't understand is why is there such a limitation? Isn't front and back cameras are two different pieces of hardware? Or can this be done and am I wrong? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] call an Activity by intend and callbyvalue
Hi, i´ll want to call the NextActivity, give an integer to its creation and identify whats to create by the given int. My existing code is like: 1. Intent dosth = new Intent(ThisActivity.this, NextActivity.class); 2. startActivity(dosth); what i simply want to have is: 1. Intent dosth = new Intent(ThisActivity.this, NextActivity(integervalue).class); 2. startActivity(dosth); The called activity looks like this at the moment: 1.public class NextActivity extends ListActivity{ 2. private final int idoflist; 3. 4. public NextActivity(Integer idoflist) { 5. this.idoflist = idoflist; 6. } 7. @Override 8. public void onCreate(Bundle savedInstanceState) { 9. super.onCreate(savedInstanceState); 10. final String[] text = getResources().getStringArray(R.array.text_array); 11. setListAdapter(new ImagedArrayAdapter(this, beverages, idoflist)); 12. 13. ListView listView = getListView(); 14. listView.setTextFilterEnabled(true); 15. 16. listView.setOnItemClickListener(new OnItemClickListener() { 17. public void onItemClick(AdapterView? parent, View view, int position, long id) { 18. System.out.println(id); 19. } 20. }); 21. 22. } 23.} the actual problem is that the 1. Intent dosth = new Intent(ThisActivity.this, NextActivity(integervalue).class); doesn´t work like expectet cause i don´t know what i have to do :D -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] get the color pallete of image
how to get color pallete of image 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] How to Show the full image on clicking the Discard button using the crop app?
I was working with these code which i Googled and found here http://www.londatiga.net/featured-articles/how-to-select-and-crop-image-on-android/ The built in crop app has these discard button which completely cancels the activity bt i want to capture the original selected image and send it to another activity without cropping. Any ideas would help... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth
Hello guys, i've been looking for some docs about bluetooth in android Can you guy show me some docs about it? 'cause i've been trying to use the google documents explanations about bluetooth, but that was a full waste of time -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Content Providers
Hi All, I am developing an application which will have to catch notifications for Incoming SMS, Outgoing SMS, Missed Calls, Incoming Outgoing E-mails. Now I have found a way to get all these notifications except for the e-mail which seems impossible at the moment, but my question is will these be supported in future OS as well. What i saw was that managedQuery function has been deprecated in 4.0.3, so now before writing this app I need to be sure whether these features will remain as is and the content that content providers provide will be the same across all android phones. Since it is a sponsored a app I need to convince the investors that the app will work. Any thoughts on this will be greatly appreciated. Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to check which button is clicked
hii just implement your class activity from onclickListener and implement its method onclick and in that method you can use switch to get which button is pressed like switch (v.getId()) { case R.id.im1: { button1.setImageResource(R.drawable.p1o); break; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can I get user's city without using GPS?
How to develope android application? Plz give the answerwith coding. On 15 May 2012 17:33, Perry168 perry...@gmail.com wrote: Hi all, ** I hope to get user's country and city without using GPS. Basically, I know how to get user's country. I searched some post from the web. It can use LocationManager through NETWORK_PROVIDER to have the Latitude Longitude. From Latitude Longitude, use GeoEncoder to find the city. The follow is my LocationManager part: ** ** 1.public void onCreate(Bundle savedInstanceState) { 2.** ** 3.super.onCreate(savedInstanceState); 4.** ** 5.setContentView(R.layout.main); 6.** ** 7.loMgr = (LocationManager) getSystemService(LOCATION_SERVICE); 8.** ** 9.loMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this); 10. ** ** 11. } 12. ** ** 13. ** ** 14. ** ** 15. public void onLocationChanged(Location location) { 16. ** ** 17.TextView tv01 = (TextView)findViewById(R.id.TextView01); 18. ** ** 19.TextView tv02 = (TextView)findViewById(R.id.TextView02); 20. ** ** 21.tv01.setText(Latitude: + String.valueOf(location.getLatitude())); 22. ** ** 23.tv02.setText(Longitude: + String.valueOf(location.getLongitude())); 24. ** ** 25.} Also I added the android.permission.ACCESS_FINE_LOCATION in AndroidManifest. After testing, it is no result. Can anyone tell me how to fix it? Thanks a lot! ** ** ** ** -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 live vedio streaming project
i am in a project of live viedo streaming from android device but the time of viedio uploaded doesnt matches it shows 12hrs later helpme -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] fatelexception main,nullpointer exception
hi am doing one app .here i have 50 buttons when i clcik each button that time i need to display some images in gallery.its working fine.but at the same time i need to play that image related sounds also that time i am getting error. same app i run emulator its working fine. but in samsung galaxy gt-p1010 when run the app images scrolling time i am getting error.in this gt-1010 also before adding music to each image its working good.but after adding music i am facing this prblm.. any suggest me... logcat error: 05-16 09:00:43.292: E/AndroidRuntime(12799):at android.widget.Gallery.onScroll(Gallery.java:933) 05-16 09:00:43.292: E/AndroidRuntime(12799):at android.view.GestureDetector.onTouchEvent(GestureDetector.java:541) 05-16 09:00:43.292: E/AndroidRuntime(12799):at android.widget.Gallery.onTouchEvent(Gallery.java:842) my code: public class HomE extends Activity implements AdapterView.OnItemSelectedListener, ViewSwitcher.ViewFactory{ private TextSwitcher mSwitcher; private TextSwitcher mSwitcher3; private TextSwitcher mSwitcher7; ImageButton home, sound; Gallery g; static int nextbtn = 0; static int prebtn = 0; ImageAdapter iadapter; int galpos; // int countin,counta,countb,countc,countd,counte,countf,countg,counth,counti,countj,countk,countl,countm,countn,counto,countp,countq,countr,counts,countt,countu,countv,countw,countx,county,countz,countae,countqo,countao,countqy,countau,countei,countal,countalp,countbok; int countk1 = 0; int countk2; int countk3 = 0; int countk4 = 0; int count111 = 0; int count111i = 0; int count111l = 0; int count111s = 0; public static int countin,counti,countl,counts; public static int countin1=0; public static int countini=0; public static int countinl=0; public static int countins=0; public int ht; public int wt; MediaPlayer intro1, intro2, intro3, intro4, intro5, intro6, intro7, intro8, intro9, intro10, intro11, intro12, intro13; MediaPlayer medial1, medial2, medial3, medial4, medial5, medial6, medial7, medial8, medial9, medial10, medial11, medial12, medial13, medial14; public static int motiongal = 3000; RelativeLayout l1, l2; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.home1); intro1 = MediaPlayer.create(this, R.raw.abcsongnorwegianonlymusic); intro2 = MediaPlayer.create(this, R.raw.bokstavslottet_2); intro3 = MediaPlayer.create(this, R.raw.bokstavslottet_3); intro4 = MediaPlayer.create(this, R.raw.bokstavslottet_4); intro5 = MediaPlayer.create(this, R.raw.bokstavslottet_5); intro6 = MediaPlayer.create(this, R.raw.bokstavslottet_6); intro7 = MediaPlayer.create(this, R.raw.bokstavslottet_7); intro8 = MediaPlayer.create(this, R.raw.bokstavslottet_8); intro9 = MediaPlayer.create(this, R.raw.bokstavslottet_9); intro10 = MediaPlayer.create(this, R.raw.bokstavslottet_10); intro11 = MediaPlayer.create(this, R.raw.bokstavslottet_11); home = (ImageButton) findViewById(R.id.homeimage); home.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub Intent i = new Intent(HomE.this, HomeDEmo.class); startActivity(i); return false; } }); sound = (ImageButton) findViewById(R.id.soundimage); sound.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub return false; } }); DisplayMetrics displaymetrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(displaymetrics); ht = displaymetrics.heightPixels; wt = displaymetrics.widthPixels; l1 = (RelativeLayout) findViewById(R.id.linear); l2 = (RelativeLayout) findViewById(R.id.linear1); l1.setVisibility(View.INVISIBLE); l2.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub l1.setVisibility(View.VISIBLE);
[android-developers] Implementing OnGestureListener on SurfaceView
Hi Folks, I wanted to check on android gestures . I did implement a SurfaceView derived class which implements OnGestureListener. However, I was not able to get any logs w.r.t gesture methods. Here's the code . Am I missing out something here ? package com.srj.mygame; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.os.Bundle; import android.util.Log; import android.view.GestureDetector; import android.view.GestureDetector.OnGestureListener; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.SurfaceView; public class Main extends Activity{ ADummyView v; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); v = new ADummyView(this); setContentView(v); } @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); v.pause(); } @Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); v.resume(); } public class ADummyView extends SurfaceView implements Runnable, OnGestureListener{ SurfaceHolder h; GestureDetector gd; private boolean bRun = false; Thread t; public ADummyView(Context context) { super(context); // TODO Auto-generated constructor stub h = getHolder(); gd = new GestureDetector(this); } @Override public void run() { // TODO Auto-generated method stub while( bRun == true ) { Log.d(SRJ, run); } } public void pause() { bRun = true; while(true){ try { t.join(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } break; } t = null; } public void resume() { bRun = true; t = new Thread(this); t.start(); } @Override protected void onDraw(Canvas canvas) { canvas.drawARGB(255, 255, 255, 255); } @Override public boolean onDown(MotionEvent e) { // TODO Auto-generated method stub Log.d(SRJ, onDown); return false; } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { // TODO Auto-generated method stub Log.d(SRJ, onDown); return false; } @Override public void onLongPress(MotionEvent e) { // TODO Auto-generated method stub Log.d(SRJ, onDown); } @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { // TODO Auto-generated method stub Log.d(SRJ, onDown); return false; } @Override public void onShowPress(MotionEvent e) { // TODO Auto-generated method stub Log.d(SRJ, onDown); } @Override public boolean onSingleTapUp(MotionEvent e) { // TODO Auto-generated method stub Log.d(SRJ, onDown); return false; } } // ADummyView } Thanks in Advance, Surej -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TimePicker 24hours
Hello, How to do 24hours time picker becouse now it 12hours with pm and am. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help with removing item from listview using long click listener
Hello, I need to delete item from list view. i serch in google for examples but no one work. Here is a picuture of my project https://lh6.googleusercontent.com/-z78McA3Jyxw/T7Y3ghXZkrI/ABY/xsJY7SuaOaY/s1600/Untitled.jpg Everything with adding work. But i need to delete one of them after long click. If i understand good i need to get index/id of added item and delete it. Something like what - listView_monday = (ListView) findViewById(R.id.myListview_monday); listView_monday.setAdapter(new ArrayAdapterDay(this,R.layout.list_view_monday, SilentClockActivity.listas_monday)); listView_monday.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView? arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub return false; } }); Thats all, if You need more info or source code - write here, I think someone helps for me! :) 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] Android WebDriver does not support JS execution
I am using Android latest SDK Tool(rev.19), and the google web driver rev.2. I found the js execution does not support on android framework mode whatever on emulator 4.0.3 or real 2.3 driver, but it works well on remote android web drvier. Any one know why? is it a bug of google web driver? This is my code: driver = new AndroidWebDriver(getActivity()); driver.get(http://fe.baidu.com/~tpl/websrc/;); JavascriptExecutor js = ((JavascriptExecutor) driver); js.executeScript(alert(\test\);); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TimePicker 24hours
http://developer.android.com/reference/android/widget/TimePicker.html Especially: http://developer.android.com/reference/android/widget/TimePicker.html#setIs24HourView(java.lang.Boolean) setIs24HourViewhttp://developer.android.com/reference/android/widget/TimePicker.html#setIs24HourView(java.lang.Boolean) (Boolean http://developer.android.com/reference/java/lang/Boolean.html is24HourView) Set whether in 24 hour or AM/PM mode. On Sun, May 20, 2012 at 6:17 PM, Tadas Martinkus tadas...@gmail.com wrote: Hello, How to do 24hours time picker becouse now it 12hours with pm and am. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Contacting Google - how things are done... by Google
Hello to group! I have nothing much to say, see link below: http://www.wgmetal.hr/documents/contacting_google.pdf -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Softkeyboard
I want to program a softkeyboard where you click on a key, and instead of outputting an alphabet into the textediting area, i want it to output a different letter or symbol. Sort of like how a japanese romaji keyboard would work. (eg: when you click on the a, r, i, g, a, t, o, u keys, it would output あ、り、が、と、う, instantly as you type them. Anybody have any suggestions on how to set that up? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help
OOPS.. Here is the code This all happens from a button pressed on the 2nd layout (items.xml) private View.OnClickListener onAddItem = new View.OnClickListener() { public void onClick(View v) { setContentView(R.layout.additem); //final AlertDialog dialog = null; EditText txtItem = (EditText) findViewById(R.id.txtgroceryItem); InputMethodManager inputMgr = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); inputMgr.showSoftInput(txtItem, 0); Button btnDone = (Button) findViewById(R.id.btnDone); btnDone.setOnClickListener(onDone); Button btnAddItem = (Button) findViewById(R.id.btnAddGItem); btnAddItem.setOnClickListener(onAddTheItem); } }; On May 16, 3:50 pm, Justin Anderson magouyaw...@gmail.com wrote: Any Ideas? Maybe, if you share your layout code with us... Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Wed, May 16, 2012 at 2:26 PM, Mark vbreneg...@sbcglobal.net wrote: Hello Everyone. ** ** I seem to have this problem in a app I am creating. I have 3 different layouts . The 3rd layout has a EditText but when I click on it The soft keyboard will not show up. But on the Main layout it will Any Ideas? ** ** Thanks Mark ** ** -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why none of the Motorola add-ons in the SDK cannot be launched in emulator
Hi, I have the latest Android SDK r19 with several Motorola device add-ons: Atrix2, xt882, etc. None of them can be successfully run in the emulator. Logcat reports all kinds of error, like file not found, cannot cache xyz, no space left on device, etc. I also have a LG Real3D add-on, and it runs in the emulator with no problem. I just create the AVD with default settings and it runs. Any idea why the Motorola add-ones, doesn't how I tweak the AVD settings, will not run in SDK r19 (or r17) emulator? 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