[android-developers] Not toasting the suspected string value
I'm new to android development and am trying to start learning the basics by decoding a RSS feed. I want to store the appropriate info (title, link, etc) into the appropriate corresponding strings. I have the below, which will search for anything that starts with t (for title), and store the corresponding values into a char array. I then search for the end bracket ('/) and stop storing the information. I then convert the char array into a string, and toast the string when I press button 1. My problem is, when I press the button, it toasts a blank box, meaning that the string is empty. Does anyone have any idea on how to fix this? Thanks! My Code: package rssread.withoutinernet; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class RssReaderNoInternetActivity extends Activity { Button button1; Button button2; Button button3; String RSS_String = ?xml version='1.0' encoding='UTF-8'?rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http:// a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/ georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0' + channelatom:idtag:blogger.com,1999:blog-7784086607297621793/ atom:idlastBuildDateThu, 01 Dec 2011 20:42:16 +/ lastBuildDatetitleBird's eye view/title + description/descriptionlinkhttp://blogname.blogspot.com// linkmanagingEditornore...@blogger.com (blonde ambition)/ managingEditor + generatorBlogger/generatoropenSearch:totalResults0/ openSearch:totalResultsopenSearch:startIndex1/ openSearch:startIndexopenSearch:itemsPerPage25/ openSearch:itemsPerPage/channel/rss; int counter = 0; int title_counter = 0; int bounce; char[] rss = RSS_String.toCharArray(); char[] title; String Title_String; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); RSSDecode(); test(); Listeners(); } public void Listeners() { // Title button1 = (Button) findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), RSS_String, Toast.LENGTH_SHORT).show(); } }); // Description button2 = (Button) findViewById(R.id.button2); button2.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), Title_String, Toast.LENGTH_SHORT).show(); } }); // Link button3 = (Button) findViewById(R.id.button3); button3.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), Var3Goeshere, Toast.LENGTH_SHORT).show(); } }); } public void test(){ title[1]= 'c'; title[2]= 'o'; Title_String = title.toString(); } public void RSSDecode() { try { while (counter = 500) { if (RSS_String.charAt(counter) == '') { if (RSS_String.charAt(counter + 1) == 't') { counter = counter + 8; bounce = 0; while (bounce == 0) { // Test if its the end if (RSS_String.charAt(counter) == '') { if (RSS_String.charAt(counter + 1) == '/') { bounce = 1; } } //Store values into char array and convert into string title[title_counter] = (RSS_String.charAt(counter)); counter = counter + 1; title_counter = title_counter + 1; }
[android-developers] Re: RemoteControlClient in Android 4.0
Did you find a solution for that? I am stuck in the same situation. My code looks like this: final ComponentName receiverComponentName = new ComponentName(context, MediaControlEventReceiver.class); context.getPackageManager().setComponentEnabledSetting(receiverComponentName, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP); getAutioManager().registerMediaButtonEventReceiver(receiverComponentName); // build the PendingIntent for the remote control client final Intent mediaButtonIntent = new Intent(Intent.ACTION_MEDIA_BUTTON); mediaButtonIntent.setComponent(receiverComponentName); PendingIntent mediaPendingIntent = PendingIntent.getBroadcast( context.getApplicationContext(), 0, mediaButtonIntent, 0); // create the remote control client remoteControlClient = new RemoteControlClient(mediaPendingIntent); getAutioManager().registerRemoteControlClient(remoteControlClient); remoteControlClient.setTransportControlFlags( RemoteControlClient.FLAG_KEY_MEDIA_PLAY_PAUSE | RemoteControlClient.FLAG_KEY_MEDIA_NEXT | RemoteControlClient.FLAG_KEY_MEDIA_PREVIOUS | RemoteControlClient.FLAG_KEY_MEDIA_FAST_FORWARD | RemoteControlClient.FLAG_KEY_MEDIA_REWIND); and afterwards I call the remoteControlClient.setPlaybackState() methods and set the meta data. The ICS lock screen doesn't care at all (have tested on a Galaxy Nexus). The funny thing is, that in the ICS sources of the music application everything related to the RemoteControlClient seems to be commented out: http://android.git.r3pek.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/MediaPlaybackService.java;h=d8ac015452c0a084383a27983c025a54afe75ec1;hb=HEAD -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Gridview issues
Hi, I have problem with how can refresh gridview data every time and how create gridview through java excluding xml file.Both are my issues.Please find out my solution. Waiting for solution Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to register a new network service? (with tun device)
Hi, in my project I am trying to provide a network service through Bluetooth. I create a tun device and it works fine for many applications. The problem is some apps use ConnectivityManager to test if there is an active network connection, and the result is no. I am seeking for a way to register my network service so the system can recognize it and so those apps. Currently I am using android.intent.action.ANY_DATA_STATE to notify the OS there is an active network connection. But I need to sign my app using system certificate since this is a system broadcast. Most manufactures use their own certificates so it's not feasible for public release. Is there another way to register a network service? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Media Recorder start() throwing error
12-19 12:10:58.014: I/dalvikvm(250): threadid=7: reacting to signal 3 12-19 12:10:58.014: I/dalvikvm(250): Wrote stack trace to '/data/anr/ traces.txt' 12-19 12:14:41.104: E/MediaRecorder(282): start failed: -1 12-19 12:14:41.104: E/AudioRecordTest(282): start() failed 12-19 12:14:41.114: E/MediaRecorder(282): stop called in an invalid state: 0 12-19 12:14:41.114: E/AudioRecordTest(282): stop() failed I am getting these errors in logcat. I thought, am getting error because I am using emulator, but I tries with Sony Xperia X10, still I am geting 0. Can any help me to get out of this problem... Here is my code -- public class HelloAndroid extends Activity { protected int text; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button btnGetDecibels; btnGetDecibels = (Button) findViewById(R.id.btnGetDecibels); final TextView tv = new TextView(this); final String LOG_TAG = AudioRecordTest; final String mFileName = null; final MediaRecorder mRecorder = new MediaRecorder(); btnGetDecibels.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mRecorder.setOutputFile(/dev/null); try { mRecorder.prepare(); } catch (IllegalStateException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } try { mRecorder.start(); } catch (Exception e) { Log.e(LOG_TAG, start() failed); } double amp = 0.0; mRecorder.getMaxAmplitude(); amp = mRecorder.getMaxAmplitude() / 2700.0; try { mRecorder.stop(); mRecorder.release(); } catch (Exception e) { Log.e(LOG_TAG, stop() failed); } tv.setText( Amplitude:+amp); setContentView(tv); } }); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Should i develop for android 2.1, 2,2 or 2.3?
Hello there, im new arround here :) I hope you can answer my question: I am going to initiate a project with android 2.1 (there is still a 9% of dispositives using 2.1, and as i dont know if 2.2 worths it, i will just use 2.1 for compatibility issues). My project will be using in-app purchases, the other stuff is basic but maybe i will add notifications and curl downloads in the future. Is it a good idea to use 2.1? Is there anything nice in 2.2 or 2.3 you can not do with 2.1? In what version is in-app purchases supported? In what version is notifications supported? In what version is online file downloads to the dispositive silently supported? (for when you purchase something) 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] Creating shortcuts to other Apps at a specified position on Home Screen
Hi all, I'm developing an App that creates shortcuts to other Apps on Home Screen, by using Intents and CREATE_SHORTCUT, etc etc. It works fine, but I have no control over where the shortcuts are placed. Is there any way to do that? If specifying an exact position is impossible, how about specifying the page number? (for example, on the 2nd page on a 5-page device) Thanks. Regards, Eric -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Right click on browser doesnot respond
Right mouse click wasn't supported in Android until ICS. On Dec 16, 1:51 am, adip adi.prav...@gmail.com wrote: Hi, I am working on a set top box product with Froyo. I see that sometimes, the browser doesnt respond to the right click on my mouse and also it doesnt respond to any link. All I can see is a zoom on broswer. The event hub reports: E/EventHub(2407): iev.code=273 outKeycode=0 outFlags=0x err=-19 Any ideas please? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Right click on browser doesnot respond
Right mouse click is not supported in Froyo. Some work was done externally to make it work in Gingerbread, but Gingerbread uses a different event model, so it would be difficult to back port. Official Android support for right mouse click didn't exist until ICS. On Dec 16, 1:51 am, adip adi.prav...@gmail.com wrote: Hi, I am working on a set top box product with Froyo. I see that sometimes, the browser doesnt respond to the right click on my mouse and also it doesnt respond to any link. All I can see is a zoom on broswer. The event hub reports: E/EventHub(2407): iev.code=273 outKeycode=0 outFlags=0x err=-19 Any ideas please? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Will the running application show in batter usage indicator?
As we know, the batter usage indicator is the highlight for SDK 1.6. When I used batter usage indicator, I cannot find any of my RUNNING applications list in it. Just find Cell standby, WLAN, Phone idle and Display for categories. Question: 1. Can list the running appcation in the battery usage indicator? 2. If yes, all the RUNNING application can be shown in battery usage indicator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 develop video conference call?
Hi, I want to develop a application for video conference call base on android.media.MediaRecorder. I've tried to record the video with android.net.LocalSocket, but it didn't work yet. And I heard that there will be some delay when get the stream from recorder because there is some buffer in the recorder. So can you tell me whether it's feasible? And is there any demo for it? Thank you very much. -=- Huang, Habzy(Shan) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unrealated but urgent Help : Custom Search API-connection refused !!!!!
Dear all,this is my first time posting on google in general and this post may not be related to above topic but trust me, I am writing it out of desperacy. I could NOT get anywhere suitable to post it and I need your help. Forgive me for mixing butter and milk ! my Custom search url : https://www.googleapis.com/customsearch/v1?key=MY-KEY-HEREcx=LONG-NUM:CX-IDq=Latest from NASAalt=json is working perfectly on the browser but invoking custom search from java code(all of the below codes are throwing the same exception: java.net.ConnectException: Connection refused: connect).I know I have valide key and CX values and google API explorer proved me right as well as any browser. here are a few snipet that all throw the same execption: (1) public void method1(){ String search = NASA latest research; String charset = UTF-8; try{ //Reader reader = new InputStreamReader(new URL(the url).openStream()); // Reader reader = new InputStreamReader(new URL(google).openStream(), charset); Reader reader = new InputStreamReader(new URL(google+ URLEncoder.encode(search, charset)).openStream(), charset); GoogleResults results = new Gson().fromJson(reader, GoogleResults.class); //Listcom.google.api.services.customsearch.model.Result result = new Gson().fromJson(reader, List.class); System.out.println(results.getResponseData().getResults().get(0).getTitle()); System.out.println(results.getResponseData().getResults().get(0).getUrl()); }catch(MalformedURLException urle){ urle.printStackTrace(); } catch(UnsupportedEncodingException ence){ ence.printStackTrace(); } catch(IOException ioe){ ioe.printStackTrace(); } } (2) String google = the url; public void search0(){ try{ GoogleSearchQueryFactory factory = GoogleSearchQueryFactory.newInstance(MY-KEY-HERE); WebSearchQuery query = factory.newWebSearchQuery(); PagedListWebResult response = query.withQuery(Latest from NASA).list(); System.out.println(response.getCurrentPageIndex()); System.out.println(response.getEstimatedResultCount()); System.out.println(response.getMoreResultsUrl()); System.out.println(response.getPages()); for (WebResult result : response) { System.out.println(result.getTitle()); System.out.println(result.getContent()); System.out.println(result.getUrl()); System.out.println(===); } }catch (Exception e) { e.printStackTrace(); } }and (3) public class GoogleQuery { private final String HTTP_REFERER = http://www.example.com/;; public GoogleQuery() { makeQuery(questio verum); makeQuery(info:http://frankmccown.blogspot.com/;); makeQuery(site:frankmccown.blogspot.com); } private void makeQuery(String query) { System.out.println(\nQuerying for + query); try{ // Convert spaces to +, etc. to make a valid URL query = URLEncoder.encode(query, UTF-8); String url_=the url; URL url = new URL(url_); URLConnection connection = url.openConnection(); connection.addRequestProperty(Referer, HTTP_REFERER); // Get the JSON response String line; StringBuilder builder = new StringBuilder(); BufferedReader reader = new BufferedReader( new InputStreamReader(connection.getInputStream())); while((line = reader.readLine()) != null) { builder.append(line); } String response = builder.toString(); JSONObject json = new JSONObject(response); System.out.println(Total results = +json.getJSONObject(responseData).getJSONObject(cursor).getString(estimatedResultCount)); JSONArray ja = json.getJSONObject(responseData).getJSONArray(results); System.out.println(\nResults:); for (int i = 0; i ja.length(); i++) { System.out.print((i+1) + . ); JSONObject j = ja.getJSONObject(i); System.out.println(j.getString(titleNoFormatting)); System.out.println(j.getString(url)); } } catch (Exception e) { System.err.println(Something went wrong...); e.printStackTrace(); } } public static void main(String args[]) { new GoogleQuery();` } } None of the above would work and all return the same e. does it mean this can work only via the :com.google.api.services.customsearch.Customsearch. well ,I have tried that too but with compiler errors on these deprecated mthods: I really need a urgent help.Thanks in Advance !! Really grateful 1 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
[android-developers] Up and down gesture detection or OnTouch event from an AppWidget
How can I detect if one swipes up or down over my AppWidget? I used to do this inside a normal Activity using OnTouchListener and later with the gesture detection stuff. I (think I) have seen this work with an HTC photo frame AppWidget on my Hero, but can't figure out how to do this myself. Any ideas? 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] unknow extend an ArrayAdapter
Dear all,this is my first time posting on google in general and this post may not be related to above topic but trust me, I am writing it out of desperacy. I could NOT get anywhere suitable to post it and I need your help. Forgive me for mixing butter and milk ! my Custom search url : https://www.googleapis.com/customsearch/v1?key=MY-KEY-HEREcx=LONG-NUM:CX-IDq=Latest from NASAalt=json is working perfectly on the browser but invoking custom search from java code(all of the below codes are throwing the same exception: java.net.ConnectException: Connection refused: connect).I know I have valide key and CX values and google API explorer proved me right as well as any browser. here are a few snipet that all throw the same execption: (1) public void method1(){ String search = NASA latest research; String charset = UTF-8; try{ //Reader reader = new InputStreamReader(new URL(the url).openStream()); // Reader reader = new InputStreamReader(new URL(google).openStream(), charset); Reader reader = new InputStreamReader(new URL(google+ URLEncoder.encode(search, charset)).openStream(), charset); GoogleResults results = new Gson().fromJson(reader, GoogleResults.class); //Listcom.google.api.services.customsearch.model.Result result = new Gson().fromJson(reader, List.class); System.out.println(results.getResponseData().getResults().get(0).getTitle()); System.out.println(results.getResponseData().getResults().get(0).getUrl()); }catch(MalformedURLException urle){ urle.printStackTrace(); } catch(UnsupportedEncodingException ence){ ence.printStackTrace(); } catch(IOException ioe){ ioe.printStackTrace(); } } (2) String google = the url; public void search0(){ try{ GoogleSearchQueryFactory factory = GoogleSearchQueryFactory.newInstance(MY-KEY-HERE); WebSearchQuery query = factory.newWebSearchQuery(); PagedListWebResult response = query.withQuery(Latest from NASA).list(); System.out.println(response.getCurrentPageIndex()); System.out.println(response.getEstimatedResultCount()); System.out.println(response.getMoreResultsUrl()); System.out.println(response.getPages()); for (WebResult result : response) { System.out.println(result.getTitle()); System.out.println(result.getContent()); System.out.println(result.getUrl()); System.out.println(===); } }catch (Exception e) { e.printStackTrace(); } }and (3) public class GoogleQuery { private final String HTTP_REFERER = http://www.example.com/;; public GoogleQuery() { makeQuery(questio verum); makeQuery(info:http://frankmccown.blogspot.com/;); makeQuery(site:frankmccown.blogspot.com); } private void makeQuery(String query) { System.out.println(\nQuerying for + query); try{ // Convert spaces to +, etc. to make a valid URL query = URLEncoder.encode(query, UTF-8); String url_=the url; URL url = new URL(url_); URLConnection connection = url.openConnection(); connection.addRequestProperty(Referer, HTTP_REFERER); // Get the JSON response String line; StringBuilder builder = new StringBuilder(); BufferedReader reader = new BufferedReader( new InputStreamReader(connection.getInputStream())); while((line = reader.readLine()) != null) { builder.append(line); } String response = builder.toString(); JSONObject json = new JSONObject(response); System.out.println(Total results = +json.getJSONObject(responseData).getJSONObject(cursor).getString(estimatedResultCount)); JSONArray ja = json.getJSONObject(responseData).getJSONArray(results); System.out.println(\nResults:); for (int i = 0; i ja.length(); i++) { System.out.print((i+1) + . ); JSONObject j = ja.getJSONObject(i); System.out.println(j.getString(titleNoFormatting)); System.out.println(j.getString(url)); } } catch (Exception e) { System.err.println(Something went wrong...); e.printStackTrace(); } } public static void main(String args[]) { new GoogleQuery();` } } None of the above would work and all return the same e. does it mean this can work only via the :com.google.api.services.customsearch.Customsearch. well ,I have tried that too but with compiler errors on these deprecated mthods: I really need a urgent help.Thanks in Advance !! Really grateful 1 thanks On Mon, Dec 19, 2011 at 10:16 AM, TreKing treking...@gmail.com wrote: On Fri, Dec 16, 2011 at 3:46 AM, nguyendu_vietnam dunq...@gmail.comwrote: Thanks for answer everybody I doubt you'll get an answer since you didn't ask a question, and what you did post doesn't make a
Re: [android-developers] Should i develop for android 2.1, 2,2 or 2.3?
Hi : I think all version can support these features started from Android 1.6. 2011/12/19 Bahamut bahamut.a...@gmail.com Hello there, im new arround here :) I hope you can answer my question: I am going to initiate a project with android 2.1 (there is still a 9% of dispositives using 2.1, and as i dont know if 2.2 worths it, i will just use 2.1 for compatibility issues). My project will be using in-app purchases, the other stuff is basic but maybe i will add notifications and curl downloads in the future. Is it a good idea to use 2.1? Is there anything nice in 2.2 or 2.3 you can not do with 2.1? In what version is in-app purchases supported? In what version is notifications supported? In what version is online file downloads to the dispositive silently supported? (for when you purchase something) 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 -- Best Regards Felix Long -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: executable files on android
So is there a way to convert the .exe files to .apk files ?? You bet there is. It's quite straighforward actually. The only thing you need to do is run the exe file on your PC, study in detail which functionality it provides and then go ahead and implement the same functionality in Java using Android SDK. As a final step you can follow the Android documentation on how to sign your APK file etc etc etc. The needed effort is open to discussion but I'm almost sure you can convert any exe file to APK in this way ;-) - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Up and down gesture detection or OnTouch event from an AppWidget
You cannot detect events directly on a widget. Normally, a click will fire a PendingIntent attached to the RemoteView. But with Android 3.0, scrolling and swiping are supported also, but those aren't events either. On Dec 19, 5:36 am, Lourens goo...@lourensrozema.nl wrote: How can I detect if one swipes up or down over my AppWidget? I used to do this inside a normal Activity using OnTouchListener and later with the gesture detection stuff. I (think I) have seen this work with an HTC photo frame AppWidget on my Hero, but can't figure out how to do this myself. Any ideas? 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: Not toasting the suspected string value
Are you new to development in general? If not, I am sure you have debugged code before, so do that. On Dec 19, 3:23 pm, Taylor Niver tniver1...@gmail.com wrote: I'm new to android development and am trying to start learning the basics by decoding a RSS feed. I want to store the appropriate info (title, link, etc) into the appropriate corresponding strings. I have the below, which will search for anything that starts with t (for title), and store the corresponding values into a char array. I then search for the end bracket ('/) and stop storing the information. I then convert the char array into a string, and toast the string when I press button 1. My problem is, when I press the button, it toasts a blank box, meaning that the string is empty. Does anyone have any idea on how to fix this? Thanks! My Code: package rssread.withoutinernet; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class RssReaderNoInternetActivity extends Activity { Button button1; Button button2; Button button3; String RSS_String = ?xml version='1.0' encoding='UTF-8'?rss xmlns:atom='http://www.w3.org/2005/Atom'xmlns:openSearch='http:// a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/ georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0' + channelatom:idtag:blogger.com,1999:blog-7784086607297621793/ atom:idlastBuildDateThu, 01 Dec 2011 20:42:16 +/ lastBuildDatetitleBird's eye view/title + description/descriptionlinkhttp://blogname.blogspot.com// linkmanagingEditornore...@blogger.com (blonde ambition)/ managingEditor + generatorBlogger/generatoropenSearch:totalResults0/ openSearch:totalResultsopenSearch:startIndex1/ openSearch:startIndexopenSearch:itemsPerPage25/ openSearch:itemsPerPage/channel/rss; int counter = 0; int title_counter = 0; int bounce; char[] rss = RSS_String.toCharArray(); char[] title; String Title_String; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); RSSDecode(); test(); Listeners(); } public void Listeners() { // Title button1 = (Button) findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), RSS_String, Toast.LENGTH_SHORT).show(); } }); // Description button2 = (Button) findViewById(R.id.button2); button2.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), Title_String, Toast.LENGTH_SHORT).show(); } }); // Link button3 = (Button) findViewById(R.id.button3); button3.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), Var3Goeshere, Toast.LENGTH_SHORT).show(); } }); } public void test(){ title[1]= 'c'; title[2]= 'o'; Title_String = title.toString(); } public void RSSDecode() { try { while (counter = 500) { if (RSS_String.charAt(counter) == '') { if (RSS_String.charAt(counter + 1) == 't') { counter = counter + 8; bounce = 0; while (bounce == 0) { // Test if its the end if (RSS_String.charAt(counter) == '') { if (RSS_String.charAt(counter + 1) == '/') { bounce = 1; } } //Store values into char array and convert into string title[title_counter] =
[android-developers] Re: Not toasting the suspected string value
I am new to Java/my IDE, eclipse. I am alright at C and most often program arduino, making debugging simply sending a Serial command of a var's value. I tried debugging the best I know how, but couldn't figure out where it was going wrong. On Dec 19, 3:49 am, Zsolt Vasvari zvasv...@gmail.com wrote: Are you new to development in general? If not, I am sure you have debugged code before, so do that. On Dec 19, 3:23 pm, Taylor Niver tniver1...@gmail.com wrote: I'm new to android development and am trying to start learning the basics by decoding a RSS feed. I want to store the appropriate info (title, link, etc) into the appropriate corresponding strings. I have the below, which will search for anything that starts with t (for title), and store the corresponding values into a char array. I then search for the end bracket ('/) and stop storing the information. I then convert the char array into a string, and toast the string when I press button 1. My problem is, when I press the button, it toasts a blank box, meaning that the string is empty. Does anyone have any idea on how to fix this? Thanks! My Code: package rssread.withoutinernet; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class RssReaderNoInternetActivity extends Activity { Button button1; Button button2; Button button3; String RSS_String = ?xml version='1.0' encoding='UTF-8'?rss xmlns:atom='http://www.w3.org/2005/Atom'xmlns:openSearch='http:// a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/ georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0' + channelatom:idtag:blogger.com,1999:blog-7784086607297621793/ atom:idlastBuildDateThu, 01 Dec 2011 20:42:16 +/ lastBuildDatetitleBird's eye view/title + description/descriptionlinkhttp://blogname.blogspot.com// linkmanagingEditornore...@blogger.com (blonde ambition)/ managingEditor + generatorBlogger/generatoropenSearch:totalResults0/ openSearch:totalResultsopenSearch:startIndex1/ openSearch:startIndexopenSearch:itemsPerPage25/ openSearch:itemsPerPage/channel/rss; int counter = 0; int title_counter = 0; int bounce; char[] rss = RSS_String.toCharArray(); char[] title; String Title_String; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); RSSDecode(); test(); Listeners(); } public void Listeners() { // Title button1 = (Button) findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), RSS_String, Toast.LENGTH_SHORT).show(); } }); // Description button2 = (Button) findViewById(R.id.button2); button2.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), Title_String, Toast.LENGTH_SHORT).show(); } }); // Link button3 = (Button) findViewById(R.id.button3); button3.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), Var3Goeshere, Toast.LENGTH_SHORT).show(); } }); } public void test(){ title[1]= 'c'; title[2]= 'o'; Title_String = title.toString(); } public void RSSDecode() { try { while (counter = 500) { if (RSS_String.charAt(counter) == '') { if (RSS_String.charAt(counter + 1) == 't') { counter = counter + 8; bounce = 0; while (bounce == 0) { // Test if its the end if (RSS_String.charAt(counter) == '') { if (RSS_String.charAt(counter + 1) == '/') {
[android-developers] Zooming in opengl es
hi all, I have created 3d room using opengl es 1.1 on android platform. i have implemented the rotate part and works fine now i want to implement zoom in and out. how can i implement that i know v can do it with the help of translatef or scalef but i dont know hot to detect zoom in and zoom out please help me out... 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: Not toasting the suspected string value
That's how I debug 99% of the time. Just use a bunch of Log.v() calls to log the values of variables. On Dec 19, 4:54 pm, Taylor Niver tniver1...@gmail.com wrote: I am new to Java/my IDE, eclipse. I am alright at C and most often program arduino, making debugging simply sending a Serial command of a var's value. I tried debugging the best I know how, but couldn't figure out where it was going wrong. On Dec 19, 3:49 am, Zsolt Vasvari zvasv...@gmail.com wrote: Are you new to development in general? If not, I am sure you have debugged code before, so do that. On Dec 19, 3:23 pm, Taylor Niver tniver1...@gmail.com wrote: I'm new to android development and am trying to start learning the basics by decoding a RSS feed. I want to store the appropriate info (title, link, etc) into the appropriate corresponding strings. I have the below, which will search for anything that starts with t (for title), and store the corresponding values into a char array. I then search for the end bracket ('/) and stop storing the information. I then convert the char array into a string, and toast the string when I press button 1. My problem is, when I press the button, it toasts a blank box, meaning that the string is empty. Does anyone have any idea on how to fix this? Thanks! My Code: package rssread.withoutinernet; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class RssReaderNoInternetActivity extends Activity { Button button1; Button button2; Button button3; String RSS_String = ?xml version='1.0' encoding='UTF-8'?rss xmlns:atom='http://www.w3.org/2005/Atom'xmlns:openSearch='http:// a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/ georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0' + channelatom:idtag:blogger.com,1999:blog-7784086607297621793/ atom:idlastBuildDateThu, 01 Dec 2011 20:42:16 +/ lastBuildDatetitleBird's eye view/title + description/descriptionlinkhttp://blogname.blogspot.com// linkmanagingEditornore...@blogger.com (blonde ambition)/ managingEditor + generatorBlogger/generatoropenSearch:totalResults0/ openSearch:totalResultsopenSearch:startIndex1/ openSearch:startIndexopenSearch:itemsPerPage25/ openSearch:itemsPerPage/channel/rss; int counter = 0; int title_counter = 0; int bounce; char[] rss = RSS_String.toCharArray(); char[] title; String Title_String; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); RSSDecode(); test(); Listeners(); } public void Listeners() { // Title button1 = (Button) findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), RSS_String, Toast.LENGTH_SHORT).show(); } }); // Description button2 = (Button) findViewById(R.id.button2); button2.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), Title_String, Toast.LENGTH_SHORT).show(); } }); // Link button3 = (Button) findViewById(R.id.button3); button3.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(getApplicationContext(), Var3Goeshere, Toast.LENGTH_SHORT).show(); } }); } public void test(){ title[1]= 'c'; title[2]= 'o'; Title_String = title.toString(); } public void RSSDecode() { try { while (counter = 500) { if (RSS_String.charAt(counter) == '') { if (RSS_String.charAt(counter + 1) == 't') { counter = counter + 8; bounce = 0; while (bounce == 0) {
Re: [android-developers] Re: executable files on android
On Mon, Dec 19, 2011 at 3:38 AM, Ali Chousein ali.chous...@gmail.com wrote: So is there a way to convert the .exe files to .apk files ?? You bet there is. It's quite straighforward actually. The only thing you need to do is run the exe file on your PC, study in detail which functionality it provides and then go ahead and implement the same functionality in Java using Android SDK. As a final step you can follow the Android documentation on how to sign your APK file etc etc etc. The needed effort is open to discussion but I'm almost sure you can convert any exe file to APK in this way ;-) True! :-).., On the ways that will probably get you sued front, you could always take the source, disassemble it, (perhaps decompile that to something, since you'll have to replace parts), then convert it to java (I'm pretty sure there's a c to java source-source compiler out there somewhere), and down to Android... But yes, you'd have to be crazy to invest so much time, and would be better off doing as Ali mentions! kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: executable files on android
On Mon, Dec 19, 2011 at 4:58 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, Dec 19, 2011 at 3:38 AM, Ali Chousein ali.chous...@gmail.com wrote: So is there a way to convert the .exe files to .apk files ?? You bet there is. It's quite straighforward actually. The only thing you need to do is run the exe file on your PC, study in detail which functionality it provides and then go ahead and implement the same functionality in Java using Android SDK. As a final step you can follow the Android documentation on how to sign your APK file etc etc etc. The needed effort is open to discussion but I'm almost sure you can convert any exe file to APK in this way ;-) True! :-).., On the ways that will probably get you sued front, you could always take the source, disassemble it, (perhaps decompile that to something, since you'll have to replace parts), then convert it to java (I'm pretty sure there's a c to java source-source compiler out there somewhere), and down to Android... But yes, you'd have to be crazy to invest so much time, and would be better off doing as Ali mentions! kris change that to take the .exe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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.NullPointerException encountered while running Android Pre Compiler.
Hi, removing all the resource filters from my Android project solved the issue. I had put some filters to exclude old directories inside /res folder. I think the issue is due to ADT ResourceManagerBuilder problems in dealing with resource filters. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 for dynamic views in Social Networking Application
I want to create a application for social networking where a user logs into his account by some remote server. I am confused how to show the user his profile which shows updates dynamically as they occur. Also where should the xml file required for this be saved, i mean should the server provide this file or the application itself should create it by taking data from server. I hope my question is clear. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help for dynamic views in Social Networking Application
On Mon, Dec 19, 2011 at 5:24 AM, Ganesh ganesh.som...@gmail.com wrote: I want to create a application for social networking where a user logs into his account by some remote server. I am confused how to show the user his profile which shows updates dynamically as they occur. Also where should the xml file required for this be saved, i mean should the server provide this file or the application itself should create it by taking data from server. I hope my question is clear. Thanks in advance You're kind of off base on this one... If you want your UI to be dynamic, you don't use XML, (well, that's not to say you can't take a view that you've created using xml and get the elements and change them), but to dynamically add things you have to manually create them and add them to the view programmatically.. Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Display complex object in ListView .
Hi friends, I'm stuck showing data [from json] in custom ListView. I created a custom-rowlayout to display the object Student. However i am unable to display the objects Movie Game in the ListView. I tried it using array adapter( sample code ) - http://pastebin.com/HsTmQSbz I'm only able to display String[] in a ListView. Any suggestions on how to implement such a thing ? This is my example JSON data to serialize . { studentname : ramesh, class : IV, favoritegames : [ {name:angry birds}, {name:need for speed} ], favoritemovies : [ {name : MI-3}, {name : TinTin} ] } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Need freelancer developer to create PDFViewer with Annotation feature
Hi If you interested let me know On 12/18/11, IcedNet d...@icednet.info wrote: On Dec 18, 10:07 am, Mark Murphy mmur...@commonsware.com wrote: I hope you have a very large pile of money. Man, you got that right.. Peace, Dan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Display complex object in ListView .
I would use a custom adapter. Search on google for examples... (the first one I found that looks good: http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/ ). On Mon, Dec 19, 2011 at 12:20 PM, Ashish Tiwari ashish...@gmail.com wrote: Hi friends, I'm stuck showing data [from json] in custom ListView. I created a custom-rowlayout to display the object Student. However i am unable to display the objects Movie Game in the ListView. I tried it using array adapter( sample code ) - http://pastebin.com/HsTmQSbz I'm only able to display String[] in a ListView. Any suggestions on how to implement such a thing ? This is my example JSON data to serialize . { studentname : ramesh, class : IV, favoritegames : [ {name:angry birds}, {name:need for speed} ], favoritemovies : [ {name : MI-3}, {name : TinTin} ] } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 controllers
Doesn't this come down to what you consider to be a decent game? Certainly there are some genres of game that just aren't suited to a touchscreen (but people will try anyway ...) in the same way that there are games that are not suitable for waggle controls (but people will try anyway ...). Some games, however, work much better. I hate trying to play something like crayon physics with a mouse, but it's perfectly suited to touch controls. I think your best bet is to approach it like this: 1. What's my game idea? 2. What are my inputs to translate user intent to game response? 3. Does that work on a touchscreen and (the most important part in my mind with touch/waggle), if there's an error between intent and response because of fat fingers, will my control scheme punish the user in game? The last one is key to me, but that's the perspective of a long term gamer. I couldn't bring myself to play something like a FPS on a touchscreen as I want to accurate and immediate control I get from mouse/keyboard intent to character response. That doesn't mean that every game needs to be perfectly precise. The reason Angry Birds works is that a) the movement is relative informed - once you start dragging that catapult you can move your finger anywhere and get immediate feedback on the angle and power and b) If you do cock up then you've lost very little time and still gotten to smash up some pigs for fun. A reset of a level doesn't hinder progress all that much -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bitmap vm memory location in ice cream sandwich
Thank you for your answers, that's helped me! It was a background bitmap size problem, that shows up now. On 18 déc, 21:33, Romain Guy romain...@android.com wrote: Also even when bitmaps were allocated on the native heap they counted against the Dalvik heap limit. On Sun, Dec 18, 2011 at 12:26 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Dec 16, 2011 at 10:35 AM, Hithredin benoit.delvi...@gmail.com wrote: Do you know how the bitmaps are managed by Android 4.0? In previous version the bitmaps were not located inside the VM of the application, but in the Native Heap instead. I ask this question because my application works well under versions 2.x and 3.x, but since 4.0, it take more than 25Mb of heap space instead of 4Mb before. After an investigation oh HPROF files with MAT, it shows that 3 bitmaps take each 6MB of memory when the app run on 4.0 device, which is not the case on lower versions. MAT, for Android 3.0+, will report bitmap memory, whereas it did not on previous versions. -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android controllers
But Skyrim is already out ... oh, you meant the Vita. On Sunday, 18 December 2011 16:39:43 UTC, mbanzon wrote: There are many many games genres/types that require another controller scheme than the one currently supplied by smartphones - but for those I've placed a pre-order for feb. 22nd ;o) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NullPointerException at MyService.onStartCommand ?
Thank you, Kostya - for sending me in the right direction. I now understand that the NullPointer Exception (I asked about) should be expected by any Service, as the Android system may restart it with a null intent - on purpose. However, after I have done some debugging using DDMS, I am unable to reproduce this behavior. when I stop a process, the service (in the process) always seems to be restarted by redelivering the originally used intent, regardless of whether START_STICKY, START_STICKY_COMPATIBILITY or START_REDELIVER_INTENT was returned from onStartCommand(). Interested developers should also read http://android-developers.blogspot.com/2010/02/service-api-changes-starting-with.html Terry. On 15 Des, 18:05, Terry terb...@gmail.com wrote: I followed your advice, and used DDMS to stop the process of an app in question. Interestingly, it did not crash, but the Service was restarted properly, without any error messages shown to the user. The value START_STICKY is being (and has always been) returned from method onStartCommand(). So the problem is caused by something else - I guess. Terry On Dec 15, 2:43 pm, Kostya Vasilyev kmans...@gmail.com wrote: Well, maybe you should return START_NOT_STICKY, or START_REDELIVER_INTENT, or add an if statement checking for null - it just depends on the service. Read the docs, run your own experiments with DDMS, then decide what is the right thing to do for your code. The DDMS Perspective in Eclipse is under Window / Open Perspective / Other... / DDMS. The Devices tab lets you terminate your own apps's processes. -- Kostya 15 ÄÅËÁÂÒÑ 2011šÇ. 17:28 ÐÏÌØÚÏ×ÁÔÅÌØ Terry terb...@gmail.com ÎÁÐÉÓÁÌ: And what is the DDMS tab in Eclipse? Terry On Dec 15, 2:00špm, Terry terb...@gmail.com wrote: Thank, Kostya. So, you mean that I should return START_STICKY_COMPATIBILITY to avoid this problem? But the actual problem then probably lies somewhere else, which may cause the process to fail/stop in the first place. It could be some Exception. Why are they not registered? Terry On 15 Des, 11:59, Kostya Vasilyev kmans...@gmail.com wrote: http://developer.android.com/reference/android/app/Service.html#onSta..., int, int) http://developer.android.com/reference/android/app/Service.html#onSta... š intent šThe Intent supplied to|startService(Intent) http://developer.android.com/reference/android/content/Context.html#s...|, as given. *This may be null *if the service is being restarted after its process has gone away, and it had previously returned anything except|START_STICKY_COMPATIBILITY http://developer.android.com/reference/android/app/Service.html#START...|. I believe the above statement is not quite correct about when the intent may be null, please see this as well: http://developer.android.com/reference/android/app/Service.html#START... You can try reproducing the issue on your development device by using the DDMS tab in Eclipse in killing the service's process. When Android restarts the service a bit later, check the intent. -- Kostya 15.12.2011 14:36, Terry ?: Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4369) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:846) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ...MyService.onStartCommand(MyService.java:279) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2464) As the Google error report system does not include device type or Android os version, I do not know if
Re: [android-developers] where can get the Android sample source codes?
On Mon, Dec 19, 2011 at 11:32:47AM +0530, android developer wrote: where can get the Android sample source codes? You have the SDK, right? send me the site links localhost/[path_to_SDK_samples] Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Do not look into waveguide with remaining eye! Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NullPointerException at MyService.onStartCommand ?
Um, I can't reproduce this with my devices at this time -- but remember seeing this on one of them for a service that returned 0 (i.e. START_STICKY_COMPATIBILITY). That was a few months, and a few firmware updates ago. I'd just put an if in your code and be done with it. -- Kostya 19 декабря 2011 г. 16:19 пользователь Terry terb...@gmail.com написал: Thank you, Kostya - for sending me in the right direction. I now understand that the NullPointer Exception (I asked about) should be expected by any Service, as the Android system may restart it with a null intent - on purpose. However, after I have done some debugging using DDMS, I am unable to reproduce this behavior. when I stop a process, the service (in the process) always seems to be restarted by redelivering the originally used intent, regardless of whether START_STICKY, START_STICKY_COMPATIBILITY or START_REDELIVER_INTENT was returned from onStartCommand(). Interested developers should also read http://android-developers.blogspot.com/2010/02/service-api-changes-starting-with.html Terry. On 15 Des, 18:05, Terry terb...@gmail.com wrote: I followed your advice, and used DDMS to stop the process of an app in question. Interestingly, it did not crash, but the Service was restarted properly, without any error messages shown to the user. The value START_STICKY is being (and has always been) returned from method onStartCommand(). So the problem is caused by something else - I guess. Terry On Dec 15, 2:43 pm, Kostya Vasilyev kmans...@gmail.com wrote: Well, maybe you should return START_NOT_STICKY, or START_REDELIVER_INTENT, or add an if statement checking for null - it just depends on the service. Read the docs, run your own experiments with DDMS, then decide what is the right thing to do for your code. The DDMS Perspective in Eclipse is under Window / Open Perspective / Other... / DDMS. The Devices tab lets you terminate your own apps's processes. -- Kostya 15 ÄÅËÁÂÒÑ 2011šÇ. 17:28 ÐÏÌØÚÏ×ÁÔÅÌØ Terry terb...@gmail.com ÎÁÐÉÓÁÌ: And what is the DDMS tab in Eclipse? Terry On Dec 15, 2:00špm, Terry terb...@gmail.com wrote: Thank, Kostya. So, you mean that I should return START_STICKY_COMPATIBILITY to avoid this problem? But the actual problem then probably lies somewhere else, which may cause the process to fail/stop in the first place. It could be some Exception. Why are they not registered? Terry On 15 Des, 11:59, Kostya Vasilyev kmans...@gmail.com wrote: http://developer.android.com/reference/android/app/Service.html#onSta..., int, int) http://developer.android.com/reference/android/app/Service.html#onSta... š intent šThe Intent supplied to|startService(Intent) http://developer.android.com/reference/android/content/Context.html#s...|, as given. *This may be null *if the service is being restarted after its process has gone away, and it had previously returned anything except|START_STICKY_COMPATIBILITY http://developer.android.com/reference/android/app/Service.html#START...|. I believe the above statement is not quite correct about when the intent may be null, please see this as well: http://developer.android.com/reference/android/app/Service.html#START... You can try reproducing the issue on your development device by using the DDMS tab in Eclipse in killing the service's process. When Android restarts the service a bit later, check the intent. -- Kostya 15.12.2011 14:36, Terry ?: Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4369) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:846) at
Re: [android-developers] Re: NullPointerException at MyService.onStartCommand ?
And speaking of firmware updates - please see this old thread: https://groups.google.com/forum/#!topic/android-developers/2H-zkME9FB0 The original 2.3 had a bug affecting service lifecycle callbacks. The effects described in the thread are somewhat different, but... it looks pretty close. -- Kostya 19 декабря 2011 г. 16:37 пользователь Kostya Vasilyev kmans...@gmail.com написал: Um, I can't reproduce this with my devices at this time -- but remember seeing this on one of them for a service that returned 0 (i.e. START_STICKY_COMPATIBILITY). That was a few months, and a few firmware updates ago. I'd just put an if in your code and be done with it. -- Kostya 19 декабря 2011 г. 16:19 пользователь Terry terb...@gmail.com написал: Thank you, Kostya - for sending me in the right direction. I now understand that the NullPointer Exception (I asked about) should be expected by any Service, as the Android system may restart it with a null intent - on purpose. However, after I have done some debugging using DDMS, I am unable to reproduce this behavior. when I stop a process, the service (in the process) always seems to be restarted by redelivering the originally used intent, regardless of whether START_STICKY, START_STICKY_COMPATIBILITY or START_REDELIVER_INTENT was returned from onStartCommand(). Interested developers should also read http://android-developers.blogspot.com/2010/02/service-api-changes-starting-with.html Terry. On 15 Des, 18:05, Terry terb...@gmail.com wrote: I followed your advice, and used DDMS to stop the process of an app in question. Interestingly, it did not crash, but the Service was restarted properly, without any error messages shown to the user. The value START_STICKY is being (and has always been) returned from method onStartCommand(). So the problem is caused by something else - I guess. Terry On Dec 15, 2:43 pm, Kostya Vasilyev kmans...@gmail.com wrote: Well, maybe you should return START_NOT_STICKY, or START_REDELIVER_INTENT, or add an if statement checking for null - it just depends on the service. Read the docs, run your own experiments with DDMS, then decide what is the right thing to do for your code. The DDMS Perspective in Eclipse is under Window / Open Perspective / Other... / DDMS. The Devices tab lets you terminate your own apps's processes. -- Kostya 15 ÄÅËÁÂÒÑ 2011šÇ. 17:28 ÐÏÌØÚÏ×ÁÔÅÌØ Terry terb...@gmail.com ÎÁÐÉÓÁÌ: And what is the DDMS tab in Eclipse? Terry On Dec 15, 2:00špm, Terry terb...@gmail.com wrote: Thank, Kostya. So, you mean that I should return START_STICKY_COMPATIBILITY to avoid this problem? But the actual problem then probably lies somewhere else, which may cause the process to fail/stop in the first place. It could be some Exception. Why are they not registered? Terry On 15 Des, 11:59, Kostya Vasilyev kmans...@gmail.com wrote: http://developer.android.com/reference/android/app/Service.html#onSta..., int, int) http://developer.android.com/reference/android/app/Service.html#onSta... š intent šThe Intent supplied to|startService(Intent) http://developer.android.com/reference/android/content/Context.html#s...|, as given. *This may be null *if the service is being restarted after its process has gone away, and it had previously returned anything except|START_STICKY_COMPATIBILITY http://developer.android.com/reference/android/app/Service.html#START...|. I believe the above statement is not quite correct about when the intent may be null, please see this as well: http://developer.android.com/reference/android/app/Service.html#START... You can try reproducing the issue on your development device by using the DDMS tab in Eclipse in killing the service's process. When Android restarts the service a bit later, check the intent. -- Kostya 15.12.2011 14:36, Terry ?: Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question, but I seem unable to find the cause of the problem. I suspect that the actual reason for the crash lies elsewhere. Here is the stack trace, which seems to be identical for all crashes on ALL of the apps in question: java.lang.RuntimeException: Unable to start service ...MyService@405274c8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java: 2481) at android.app.ActivityThread.access$2800(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1118) at
Re: [android-developers] Creating shortcuts to other Apps at a specified position on Home Screen
On Sun, Dec 18, 2011 at 9:29 PM, Eric ehm...@gmail.com wrote: I'm developing an App that creates shortcuts to other Apps on Home Screen, by using Intents and CREATE_SHORTCUT, etc etc. It works fine, but I have no control over where the shortcuts are placed. Is there any way to do that? No. For all you know, the home screen does not even have a concept of a shortcut, or one that would have a position. If specifying an exact position is impossible, how about specifying the page number? (for example, on the 2nd page on a 5-page device) No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Watermark a Video while recording....
Hey! thank you so much for your help! i am able to watermark my pictures with some text now. BUT: i can not get a solution for watermarking my pic with a googlemap (or another objects) ?! Is this even possible?! thank you again! patrick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Watermark a Video while recording....
Hey! thank you so much for your help! i am able to watermark my pictures with some text now. BUT: i can not get a solution for watermarking my pic with a googlemap (or another objects) ?! Is this even possible?! thank you again! patrick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 run application in background on click of device back button
doesn't that still require that you call startActivity() somehow? or can you ignore that part and simply click on a well formed content:// URL? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Strange webview problem
On Sun, Dec 18, 2011 at 8:39 AM, Neilz neilhorn...@gmail.com wrote: Of course, sorry, here you go. http://www.mediafire.com/file/zkg5f164xi7xxlh/SampleWebview.zip 1) Load up. 2) use home key, or back key, to return to home screen 3) hold down home key to get recent app list, and resume app. 4) for me this usually shows a blank webview. Sometimes, I have to repeat steps 2 3 several times for it to disappear. I've tested this on my three phones and it repeats on each of them. Well, I can certainly reproduce the problem now. In fact, it's worse than you feared -- it will not reliably display even the first time on a Nexus S with Android 4.0. (sidebar: Nexus S with Android 4.0! Who-hoo!) On a Nexus One with Android 2.3.x, I could only reproduce the problem by pressing BACK, then using recent-tasks to go back to the app. Since the symptoms are akin to what I was seeing with the rotation scenario, my guess is that the issue is somehow tied to creating a second WebView within the same process. Unfortunately, while that can be worked around for configuration changes (per my previous email), I know of no solution here. I suggest that you file an issue on b.android.com, or I can do it if you prefer. Sorry that I have not come up with a solution. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] unknow extend an ArrayAdapter
On Sun, Dec 18, 2011 at 8:20 PM, SANOGO kader...@gmail.com wrote: Dear all,this is my first time posting on google in general and this post may not be related to above topic Please don't hijack someone else's thread - this is not the way to endear yourself to the group if you are expecting help. Create your own post - and leave out the I need urgent help bit - that just makes you sound impatient. - 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] How to run application in background on click of device back button
On Sun, Dec 18, 2011 at 10:38 PM, Kristopher Micinski krismicin...@gmail.com wrote: You app can only check if it is installed ... if it is installed ... Surely he must mean another one of his apps, correct? One would assume - but given some of the questions around here, I wouldn't be surprised if that's not the case, so I just hold the post at face value. =P On Mon, Dec 19, 2011 at 7:35 AM, lbendlin l...@bendlin.us wrote: doesn't that still require that you call startActivity() somehow? or can you ignore that part and simply click on a well formed content:// URL? The second part - if your app is registered for the correct intent filter, it will be an option for the user to launch as the action to handle a given URI that matches said filter. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: about addaccountexplicitly
On Mon, Dec 19, 2011 at 12:19 AM, Fanny Lau lauwaifanfa...@gmail.comwrote: the error is nullpointerexception Which is probably the most obvious and easiest exception to fix. Something is null. Make it not-null. DEBUG YOUR APP. - 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] Gridview issues
On Mon, Dec 19, 2011 at 12:47 AM, RIMPY SAINI rimpy.saini2...@gmail.comwrote: I have problem with how can refresh gridview data every time Every time what? and how create gridview through java excluding xml file. Read the docs for GridView. Both are my issues. Yes, yes they are. Please find out my solution. They are you issues, as you stated. The solutions are also yours to find. - 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] native udp socket sleep mode
Hey guys, I am currently developing an app, where I need a udp connection to a server. The code which communicates with the server is written in C, so I am using the ndk and I open a posix udp socket. I send every 30 seconds a message to the server to register and to keep the connection alive. My problem is now that sometimes when the phone is in sleep mode (e.g. display is off) messages from the server are lost. I only have this problem in UMTS (3G, ..), not when I am connected via Wifi. My question is now, how does the android system react in sleep mode when a udp connection is open, especially when using native sockets. Will the connection be ignored? Or just closed sometimes? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??
Problems in 'fill_plasma': 1. The raw data of the *pxl*-array can not contain JPEG encoded data. Instead it must be encoded as RGB_565, each 2 bytes having 5 bits of red, 6 bits of green and 5 bits of blue. 2. You can not assign the bitmap's raw-data array address (*pxl*) to your compressed buffer-address. Instead, you'll have to copy each individual pixel from '*buf*' into '*pxl*'. Use a for-loop and copy each byte from the *buf*-array into *pxl*-array. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] application with same size in all the mobile
I have created the phonegap android application.I need to get the application with same design size in all the mobile.Please tell me the solution.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: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??
See my answer in 'android-developers' group. Please, don't cross-post. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Strange webview problem
Mark, thanks for looking into this. At least there is an issue, and it's not just me going bonkers. I've been looking at it further, and it seems to be somehow related to the WebView not liking list item (li) tags. I've built a temporary work around into my code, simply by doing a text replacement which, when displayed, has the correct layout effect: content = content.replaceAll(ul, ); content = content.replaceAll(/ul, ); content = content.replaceAll(/li, br/); content = content.replaceAll(li, nbsp;nbsp;nbsp;#9679;nbsp;nbsp;); Any list item bullet points are simply replaced by an alternative means of display. However, this isn't of course a solution. This is a rather ugly and expensive hack! On Dec 19, 1:39 pm, Mark Murphy mmur...@commonsware.com wrote: Well, I can certainly reproduce the problem now. In fact, it's worse than you feared -- it will not reliably display even the first time on a Nexus S with Android 4.0. (sidebar: Nexus S with Android 4.0! Who-hoo!) On a Nexus One with Android 2.3.x, I could only reproduce the problem by pressing BACK, then using recent-tasks to go back to the app. Since the symptoms are akin to what I was seeing with the rotation scenario, my guess is that the issue is somehow tied to creating a second WebView within the same process. Unfortunately, while that can be worked around for configuration changes (per my previous email), I know of no solution here. I suggest that you file an issue on b.android.com, or I can do it if you prefer. Sorry that I have not come up with a solution. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to run application in background on click of device back button
On Mon, Dec 19, 2011 at 8:35 AM, lbendlin l...@bendlin.us wrote: doesn't that still require that you call startActivity() somehow? or can you ignore that part and simply click on a well formed content:// URL? what do you think happens when you install Skype and go to make a phone call? :-) (There are tons of other examples, but you probably have at least one of them running on your device right now that isn't just a system one.) Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 configure a NFC tag in using the URI = text/x-vCard
Hallo Tarun, NdefRecord textRecord = new NdefRecord(NdefRecord.TNF_MIME_MEDIA,text/ x-vCard.getBytes(),new byte[] {}, textBytes); Although MIME types are -- according to the RFC -- case-insensitive, you should consider using only lower case letters, e.g. text/x-vcard. intent-filter action android:name=android.nfc.action.NDEF_DISCOVERED / category android:name=android.intent.category.DEFAULT / data android:mimeType=text/x-Vcard / Be careul that Android's MIME type intent filter is case-sensitive, e.g. text/x-Vcard is no the same as text/x-vCard and is not the same as text/x-vcard. br Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Using WiFi Direct API on ICS (API-14)
Any one have seen any Sample code for WiFi-Direct API? using or implementing the new API (since API 14) ?? EXCEPT of course from the API-Demo Sample that's on the SDK... I saw that.. I have some troubles understanding how to config an Wifip2pConfig object 1) any links to sample code would be great! 2) some help understanding of how the config and use of WPSInfo object is done... what's this wpsinfo.setup Is??? if i choose PBC or pin? what would happend in the other device??? and what code will return to the reciver? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 become a developer
hhee . Interesting topic .. Basically speaking , there are something in common when you learn to program : Do some reading turtorials to understand primary elements like syntax. Do some practice on the samples/demo to accumulate experiences. Do some thinking to grasp the essentials . I think that's the key elements of how to become an execellent programmer . On Sun, Dec 18, 2011 at 9:26 PM, 杨辉 yanghui1986...@gmail.com wrote: check the ApiDemos in the Android SDK。 2011/12/19 Michael Leung michaelchi...@gmail.com Read the Android tutorial After you learn the basic, I recommend this book , http://www.manning.com/collins/ . There are a lot of techniques in there. On Mon, Dec 19, 2011 at 12:13 PM, TreKing treking...@gmail.com wrote: On Fri, Dec 16, 2011 at 5:57 AM, J S j.siwiaszc...@gmail.com wrote: Hi, how to become a android develoler? Develoler for Android. You're welcome. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 杨辉 Impossible is nothing! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need Help
Hi All, Please send me sample code for displaying the mirror of image in android application. Thanks for your help. 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
Re: [android-developers] Need Help
Matrix matrix = new Matrix(); matrix.setScale(-1, 1); Bitmap reverse = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true); 2011/12/20 chowdary nani naveenneeli...@gmail.com: Hi All, Please send me sample code for displaying the mirror of image in android application. Thanks for your help. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] In ExpandableListView, position image to the left of default icon
I've got an ExpandableListView (actually ExpandableListActivity) and I'd like to position an image/cion to the left of the default collapsed/expanded icon indicator. I was able to do something - but the positioning is not right on different platforms. How does ExpandableListView determine where to position the icon and what is it's dimensions. Help appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] In ExpandableListView, position image to the left of default icon
Please see this: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/widget/ExpandableListView.java#201 mIndicatorLeft and mIndicatorRight are initialized from XML attributes and are used later here to draw the indicators: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/widget/ExpandableListView.java#290 The default values are: item name=android:indicatorLeft?android:attr/expandableListPreferredItemIndicatorLeft/item item name=android:indicatorRight?android:attr/expandableListPreferredItemIndicatorRight/item IIRC, those values can be referenced from from application XML files (i.e. they are not platform-private). -- Kostya 19 декабря 2011 г. 21:08 пользователь dashman erjdri...@gmail.com написал: I've got an ExpandableListView (actually ExpandableListActivity) and I'd like to position an image/cion to the left of the default collapsed/expanded icon indicator. I was able to do something - but the positioning is not right on different platforms. How does ExpandableListView determine where to position the icon and what is it's dimensions. Help appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] pleasehelp me on below query
Hi All, I am writing the code for mirror image in android using below code. public class Reflection extends Activity { private final String imageInSD = R.drawable.honeycomb; CheckBox enableMirror; ImageView myImageView; Bitmap bitmap; int bmpWidth, bmpHeight; Matrix matrixMirrorY; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main1); Log.d(swathi, naveen); enableMirror = (CheckBox) findViewById(R.id.enablemirror); myImageView = (ImageView) findViewById(R.id.imageview); enableMirror .setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { // TODO Auto-generated method stub drawMatrix(); } }); bitmap = BitmapFactory.decodeFile(imageInSD); bmpWidth = bitmap.getWidth(); bmpHeight = bitmap.getHeight(); initMirrorMatrix(); drawMatrix(); } private void initMirrorMatrix() { float[] mirrorY = { -1, 0, 0, 0, 1, 0, 0, 0, 1 }; matrixMirrorY = new Matrix(); matrixMirrorY.setValues(mirrorY); } // private void drawMatrix() { if (enableMirror.isChecked()) { Matrix matrix = new Matrix(); matrix.postConcat(matrixMirrorY); Bitmap mirrorBitmap = Bitmap.createBitmap(bitmap, 0, 0, bmpWidth, bmpHeight, matrix, true); myImageView.setImageBitmap(mirrorBitmap); } else { myImageView.setImageBitmap(bitmap); } } } please help me i am unable to trace the error where i am getting 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] Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??
On Mon Dec 19 06:50:53 2011, Streets Of Boston wrote: See my answer in 'android-developers' group. Please, don't cross-post. A) I'd already answered essentially the same thing, but doesn't hurt to say it again in a different way. B) You mean the message that you cross-posted? Date: Mon, 19 Dec 2011 06:49:21 -0800 (PST) From: Streets Of Boston flyingdutc...@gmail.com Reply-To: android-...@googlegroups.com To: android-developers@googlegroups.com Cc: android-...@googlegroups.com, android-disc...@googlegroups.com Message-ID: 23786539.1588.1324306161440.JavaMail.geo-discussion-forums@vbxw7 In-Reply-To: CALwa49tNdJaeu0-ef4PvfMSdwfHX6gkoud8DLj4r7A+WNVw9=w...@mail.gmail.com References: CALwa49tNdJaeu0-ef4PvfMSdwfHX6gkoud8DLj4r7A+WNVw9=w...@mail.gmail.com Subject: Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i?? Problems in 'fill_plasma': 1. The raw data of the *pxl*-array can not contain JPEG encoded data. Instead it must be encoded as RGB_565, each 2 bytes having 5 bits of red, 6 bits of green and 5 bits of blue. 2. You can not assign the bitmap's raw-data array address (*pxl*) to your compressed buffer-address. Instead, you'll have to copy each individual pixel from '*buf*' into '*pxl*'. Use a for-loop and copy each byte from the *buf*-array into *pxl*-array. ;-) sdw -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In ExpandableListView, position image to the left of default icon
i'm using setIndicatorBounds() and need some help in a screen rez. independent solution. for the group layout i've got: 5 dip padding | image 38px | indicator-here | rest of layout... not sure what the units for setIndicatorBounds() are. i can make it look fine in one screen rez, but doesn't look good in another. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In ExpandableListView, position image to the left of default icon
The units in those Java methods are pixels, just like almost everything else at runtime (drawing, layout). You can use TypedValue.complexToDimension and friends to convert from dp to pixels if needed: http://developer.android.com/reference/android/util/TypedValue.html#complexToDimension(int, android.util.DisplayMetrics) Specifying your image in pixels (you wrote: 38px) is a sure way to make it look wrong on everything but one display class (size / density), which is what you are seeing. Use dp units and convert, or just place more images under res/drawable-hdpi and/or -ldpi, etc. You can find the platform default values for bounds in your sdk directory under platforms/platform-X/data/res/values. They use dp units, too. -- Kostya 19 декабря 2011 г. 21:34 пользователь dashman erjdri...@gmail.com написал: i'm using setIndicatorBounds() and need some help in a screen rez. independent solution. for the group layout i've got: 5 dip padding | image 38px | indicator-here | rest of layout... not sure what the units for setIndicatorBounds() are. i can make it look fine in one screen rez, but doesn't look good in another. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Proguard.cfg error won't go away on newest updates.
With the latest tools I get this for an Android Library Project: Obsolete proguard file; use -keepclasseswithmembers instead of - keepclasseswithmembernames proguard.cfg (I really hope there was more than a cosmetic reason to change this. ) A reasonable person thinks this will go away after I change the - keepclasseswithmembernames to -keepclasseswithmembers. I've done that. I still get the error every time. I've cleaned the projects. I've refreshed. I've restarted Eclipse. The error still comes up. I click on the proguard.cfg file, which has a red x on it. It comes up in an editor. It does not have the keepclasseswithmembernames. How do I get the changes to take? This is getting ridiculous. 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] Re: In ExpandableListView, position image to the left of default icon
ok i'm getting closer. re the image width, i've actually got layout_width to wrap_content. the actual image width is 38px - but i guess that gets converted to dip. ImageView android:id=@+id/main_parent_image2 android:paddingLeft=5dip android:paddingRight=0dip android:layout_gravity=center_vertical android:layout_width=wrap_content android:layout_height=wrap_content / is the above the right way? so i have to convert (5+38)dip to pixels and set that as the left indicator right? i'll figure out the width of the group-indicator image as an exercise to self. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Proguard.cfg error won't go away on newest updates.
Have you tried selecting the error marker in the Problems view and pressing Delete? 19 декабря 2011 г. 21:54 пользователь Nathan critter...@crittermap.com написал: With the latest tools I get this for an Android Library Project: Obsolete proguard file; use -keepclasseswithmembers instead of - keepclasseswithmembernames proguard.cfg (I really hope there was more than a cosmetic reason to change this. ) A reasonable person thinks this will go away after I change the - keepclasseswithmembernames to -keepclasseswithmembers. I've done that. I still get the error every time. I've cleaned the projects. I've refreshed. I've restarted Eclipse. The error still comes up. I click on the proguard.cfg file, which has a red x on it. It comes up in an editor. It does not have the keepclasseswithmembernames. How do I get the changes to take? This is getting ridiculous. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Proguard.cfg error won't go away on newest updates.
On Dec 19, 9:57 am, Kostya Vasilyev kmans...@gmail.com wrote: Have you tried selecting the error marker in the Problems view and pressing Delete? I have now and it helped. I didn't know I was supposed to do that. So doing a clean build or restart won't take this away but delete will? 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
Re: [android-developers] Proguard.cfg error won't go away on newest updates.
On Mon, Dec 19, 2011 at 9:54 AM, Nathan critter...@crittermap.com wrote: With the latest tools I get this for an Android Library Project: Obsolete proguard file; use -keepclasseswithmembers instead of - keepclasseswithmembernames proguard.cfg (I really hope there was more than a cosmetic reason to change this. ) No, it wasn't cosmetic - there was an error in the default proguard file we used to ship with, which meant that Proguard could strip too much. More details in http:// http://code.google.com/p/android/issues/detail?id=16384 . A reasonable person thinks this will go away after I change the - keepclasseswithmembernames to -keepclasseswithmembers. I've done that. I still get the error every time. Every time you what -- export APK? Or run lint manually? If the issue is that this is aborting your Export APK operation, then you can turn off the automatic error check as part of APK -- there should have been an error dialog popping up telling you exactly how to do that. In any case, go to the Options dialog, under Android find the Lint category and uncheck the checkboxes at the top of that panel. You can also locate the Proguard error below and either change its severity from Error to Warning or even Ignore. Both of these should make the complaint go away. However, I'm still curious as to why the error is triggering for you if you've really fixed the problem. Since you're talking about projects (plural), is it possible that there's still one of the projects that contain the old bad pattern? It's possible that lint is associating the wrong path/project with the error so check all of them. Also, if you're using library projects, the ADT 16 version of lint isn't really library project aware so it's only checking the main project. I've cleaned the projects. I've refreshed. I've restarted Eclipse. The error still comes up. I click on the proguard.cfg file, which has a red x on it. It comes up in an editor. It does not have the keepclasseswithmembernames. How do I get the changes to take? This is getting ridiculous. Hopefully the above instructions will help make the error go away to unblock you, but I'd be really interested in instructions for how to reproduce this problem, e.g. if your sources are available publicly anywhere (code.google.com or github etc) I can take a look - or even attach something to a new bug at b.android.com . -- Tor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In ExpandableListView, position image to the left of default icon
Those 38 pixels can mean different things depending on which resource density folder the image is in (-mdpi, -hdpi, etc.). Your total imageview width is: 38 pixels at unknown density + 5 density independent units. So yes, convert that to pixels and set as the left padding value from code, or convert to dip units and specify it in the XML. You will most likely need to adjust your {group} item layouts, adding more padding on the left to account for the two indicators taking more space. -- Kostya 19 декабря 2011 г. 21:56 пользователь dashman erjdri...@gmail.com написал: ok i'm getting closer. re the image width, i've actually got layout_width to wrap_content. the actual image width is 38px - but i guess that gets converted to dip. ImageView android:id=@+id/main_parent_image2 android:paddingLeft=5dip android:paddingRight=0dip android:layout_gravity=center_vertical android:layout_width=wrap_content android:layout_height=wrap_content / is the above the right way? so i have to convert (5+38)dip to pixels and set that as the left indicator right? i'll figure out the width of the group-indicator image as an exercise to self. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: application with same size in all the mobile
define same size. Do you mean inches, pixels, or something in between? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: RemoteControlClient in Android 4.0
I've scanned through the ICS codes of the AudioManager and the internal AudioService and found the cause: I need to acquire the audio focus using AudioManager.requestAudioFocus() to make the lock screen playback control occur. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Proguard.cfg error won't go away on newest updates.
Oh, I see - I presume Lint got run automatically when you exported an APK, and you then corrected the problem, but since you didn't realize you had run lint (because it's done automatically now) it wasn't clear that you needed to re-run it to update the markers. We can probably do better here (and we do for XML files). In ADT 17 we automatically open the Lint window when lint is run (where there are Refresh buttons, Ignore buttons etc) so it should be more obvious what to do. But there's definitely a usability issue here. I've filed issue http://code.google.com/p/android/issues/detail?id=23196 to track this. -- Tor On Mon, Dec 19, 2011 at 10:04 AM, Nathan critter...@crittermap.com wrote: On Dec 19, 9:57 am, Kostya Vasilyev kmans...@gmail.com wrote: Have you tried selecting the error marker in the Problems view and pressing Delete? I have now and it helped. I didn't know I was supposed to do that. So doing a clean build or restart won't take this away but delete will? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NFC at Digital Protocol Layer
Hello, I'm going to read the information that you had me but after that i have some questions: if I'm not mistaken, the android phones that supports NFC have PN65N or PN544 chip and libnfc doesn't support those chips. am i mistaken? if libnfc doesn't support those chips why i am interested in doing a port to android? thanks for your replay On 16 dic, 12:21, Alex Che alexey.tchervin...@gmail.com wrote: Hi, I am not guarantee my information ultimately exact. 1. AFAIK, Google use libnfc-nxp library which has functions for P2P data exchange, may be it is actually DEP. 2. There is open-source libnfc library intended for Linux. It provides DEP exchange, I tried it with SCL3711 (PN533 chip) dongles. There is a document of porting libnfc to Android, but I did not follow it yet. In my mind, both approaches assume programming on NDK level (in C). References: libnfc-nxp:http://wenku.baidu.com/view/4c4c18202f60ddccda38a024.html?from=relate... libnfc:http://www.libnfc.org/documentation/introduction Porting libnfc to Android:http://appelmelk.wordpress.com/2011/02/17/porting-libnfc-to-android/,http://www.few.vu.nl/~hak300/libnfc_to_android.pdf Hope this helps. Best regards, Alexei On Dec 15, 12:13 pm,ikki_fenixpiltzin1...@gmail.com wrote: Hello, I'm looking for information about it's possible stablish a P2P connection between Android phone and NFC card at NFC-DEP level (digital protocol layer) without the higher layers. I know that Android 4.0 it's possible to stablish a P2P connection using SNEP or NPP protocols but if i can I'll do it at digital protocol layer. is it possible? Thanks for your replay. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??
The cross-posting remark wasn't targeted at you, Stephen. It was for the original poster :-) BTW: All the answers that we post on one forum will automatically be cross-posted on the other two forums as well (i guess because the original message was cross-posted) unless you uncheck some Cc check-boxes (whose existence i've just discovered :-)). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In ExpandableListView, position image to the left of default icon
ok i got the left-offset figured out. now working on the width of the default group-indicator. i understand it's com.android.internal.R.styleable.ExpandableListView_groupIndicator how do i get access to this drawable so that i can query it's width. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In ExpandableListView, position image to the left of default icon
i tried Bitmap image = BitmapFactory.decodeResource(this.getResources(), com.android.internal.R.styleable.ExpandableListView_groupIndicator); int imWidth = image.getWidth(); but the package is not recognized. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 4.0 Action Bar - remove app title.
I looked here, but I didn't find it. I could have missed it: http://developer.android.com/intl/de/guide/topics/ui/actionbar.html In ICS, they can't display my entire app name anyway. I'd like to leave the logo, but not display the app title, in order to fit more Action buttons. What's the best way to do that? 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
Re: [android-developers] soap web service
I think my problem is im not putting the file correctly in my project and also i dont think i have the code right. Do you know what code to write and what tto name the file and where to put it? On Dec 18, 2011 7:46 PM, Michael Leung michaelchi...@gmail.com wrote: try to read this blog post: http://timewasted.net/?p=127 There are a number of good examples on the web. On Mon, Dec 19, 2011 at 12:07 PM, TreKing treking...@gmail.com wrote: On Sun, Dec 18, 2011 at 10:44 AM, bigKidd01 myiahtaylor2...@gmail.comwrote: how do i create a basic soap web service so i can get and post xml data to a web service. Read a book or website that explains how to do this. This is group is for Android SDK programming, so you're way off base here. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: In ExpandableListView, position image to the left of default icon
You can't use com.android.internal stuff in your projects - it's internal to the framework. 19 декабря 2011 г. 22:54 пользователь dashman erjdri...@gmail.com написал: i tried Bitmap image = BitmapFactory.decodeResource(this.getResources(), com.android.internal.R.styleable.ExpandableListView_groupIndicator); int imWidth = image.getWidth(); but the package is not recognized. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 4.0 Action Bar - remove app title.
Um, have you tried setTitle() ? 19 декабря 2011 г. 22:56 пользователь Nathan critter...@crittermap.com написал: I looked here, but I didn't find it. I could have missed it: http://developer.android.com/intl/de/guide/topics/ui/actionbar.html In ICS, they can't display my entire app name anyway. I'd like to leave the logo, but not display the app title, in order to fit more Action buttons. What's the best way to do that? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: apk does not include classes.dex ,so apk can't be installed
On Dec 14, 5:46 am, xuxiake2...@gmail.com xuxiake2...@gmail.com wrote: I use mm to generate a apk file, android 4.0: no classes.dex in apk ( so the apk can't be installed, the log is: DexOptZ: zip archive '/data/app/com.xxx.xxx.apk' does not include classes.dex ) android2.3: there is a classes.dex in each apk file. For me when using mm to build i had to completely build the full system in that terminal session first You should look into using ant to build -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??
Stephen/SoB , i admit for cross-posting/rephrasing the question.Sincere apologies. btw still struggling to get this work.But once done will post the experience here. warm thanks to you both !! Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Tue, Dec 20, 2011 at 12:12 AM, Streets Of Boston flyingdutc...@gmail.com wrote: The cross-posting remark wasn't targeted at you, Stephen. It was for the original poster :-) BTW: All the answers that we post on one forum will automatically be cross-posted on the other two forums as well (i guess because the original message was cross-posted) unless you uncheck some Cc check-boxes (whose existence i've just discovered :-)). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Smooth Hardware Accelerated Tiling in Honeycomb
I'm trying to implement a tiled rendering system for a vector graphics application I'm developing, but I've run into a problem. It seems to be necessary to use hardware acceleration to smoothly translate and scale the tiles. However, SurfaceView is not hardware accelerated in Honeycomb, so if I want hardware acceleration I have to use a normal View. But, if I do this, then drawing new tiles will take place on the UI thread, making the application less responsive. Is there a good way to achieve both UI responsiveness and fast tile transformation? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it worth to load pictures in parallel ?
Hi, I am creating an app for a foto-community and it displays, well, photos .-) On opening the gallery I am loading the latest 30 thumbnails (15kb each) into a Gallery and the first large picture (about 350kb). There is a swipe navigation and that becomes very painfull it one has to wait for each picture to load. After download all pictures are cached on the phone. I am thinking about (pre)loading several pictures in parallel but all the threading and handling of the GUI updates from background threads, etc. is making me nervous. Anybody experience with it? Will the downloads be significantly faster in wifi and what about in 3G? Thanks and greetings from snowy Lucerne, Stephan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 4.0 Action Bar - remove app title.
Call setDisplayShowTitleEnabled(false) on the ActionBar. On Mon, Dec 19, 2011 at 1:56 PM, Nathan critter...@crittermap.com wrote: I looked here, but I didn't find it. I could have missed it: http://developer.android.com/intl/de/guide/topics/ui/actionbar.html In ICS, they can't display my entire app name anyway. I'd like to leave the logo, but not display the app title, in order to fit more Action buttons. What's the best way to do that? 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: including/excluding conditional code in different builds
okay - maybe i'm just stupid or something but after hours hours of searching reading i've since found a number of posts on the subject but i still not sure how to control exactly what gets compiled at different times! a plain java function that will do the same thing... WHAT??? HOW??? how does change a flag get me the control i want??? the closest example i've seen was quite vague but this is what i got out of it if i'm not mistaken: int final testDebug1 = 1; if(testDebug1==1) { do your debugging thing} so if i later change testDebug1 = 0 the compiler now considers the 'if' block to be dead code so it is not compiled??? (because test1 will never change (a constant) within the app) IS THIS CORRECT if this so - why does everyone make it sound so complicated and go on about languages etc... etc... and leave us wondering if we really got the message!!! am i supposed to know that dead code is not compiled? OR do i have to use another tool to remove that dead code - I STILL DONT KNOW never used java or eclipse before so how am i supposed to know these things from the answers i read here... thanks for your replies just the same LOL -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] application with same size in all the mobile
On Mon, Dec 19, 2011 at 06:49:55AM -0800, mohana priya wrote: I have created the phonegap android application.I need to get the application with same design size in all the mobile.Please tell me the solution.Thanks in Advance. Read the section of the Developers Guide on XML layout. Your answer is in there, and reading through it will help you later by A) giving you a reference you can refer back to if you need it, and B) helping you remember it so you don't NEED to refer back to it. If that's not enough, read a beginner's book on Android development, such as Learning Android (which I mention here because I've read it, and I know it has your answer, and explains it well---there are, of course, others). Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | 1) Smoking habanero powder helps defeat that Running FreeBSD 7.0|off taste' quite nicely. spooky1...@gmail.com | 2) I figure a couple bong hits of [habanero] ICBM/Hurr.: / 30.44406N |powder would defeat just about anything! | 86.59909W--seen in Chile-Heads list Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: including/excluding conditional code in different builds
On Mon, Dec 19, 2011 at 3:07 PM, topazmax mgg7...@gmail.com wrote: okay - maybe i'm just stupid or something but after hours hours of searching reading i've since found a number of posts on the subject but i still not sure how to control exactly what gets compiled at different times! a plain java function that will do the same thing... WHAT??? HOW??? how does change a flag get me the control i want??? the closest example i've seen was quite vague but this is what i got out of it if i'm not mistaken: int final testDebug1 = 1; if(testDebug1==1) { do your debugging thing } so if i later change testDebug1 = 0 the compiler now considers the 'if' block to be dead code so it is not compiled??? (because test1 will never change (a constant) within the app) IS THIS CORRECT Depends on the compiler, and the settings. I'm not certain about the Java compiler (which is bad, I certainly should be), but these small blocks aren't big enough for you to worry about needing to be compiled away: on an interpreter the perf impact is minimal, and in a JIT setting they *can* be compiled away.. if this so - why does everyone make it sound so complicated and go on about languages etc... etc... and leave us wondering if we really got the message!!! Because there are more advanced features that give you greater control, but in general using preprocessors in Java is considered bad practice that should be avoided (this is up for heated debate, and I'm not starting one, so you can feel free to dismiss that idea if you want). am i supposed to know that dead code is not compiled? It depends, but I would argue that anyone who's taken a few CS courses and has been around the field for a while would know that it's a possibility depending on your compiler.. (Maybe you've never taken a CS course that talks about compilers before, that's fair, in which case you just learned about it now.) OR do i have to use another tool to remove that dead code - I STILL DONT KNOW ProGuard does this, and more, you can feel free to read about it. never used java or eclipse before so how am i supposed to know these things from the answers i read here... thanks for your replies just the same LOL The debugging question is a silly one to worry about perf wise, but the problem of coping with multiple versions of the platform (and writing code that behaves differently in different settings) is one you can at least partially solve by doing these kinds of things, but it goes way beyond simple 'if then else' tests to interfaces, etc... Unfortunately I can't find any good summary articles on how to deal with this problem, if anyone has any links? kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: No luck with new ICS CalenderContract
Hi, In case you haven't seen it, the developer guide for calendar API's and intents are available at: http://developer.android.com/guide/topics/providers/calendar-provider.html Thanks, Mike On Thu, Nov 3, 2011 at 11:36 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Nov 3, 2011 at 2:29 PM, Michael Chan mc...@android.com wrote: We will be publishing a developer guide for Calendar APIs with more details on the set of supported intents as well as code snippets. Great! Be sure to spread the news when they're released. :-) Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is google calendar api is public yet
The developer guide is available at http://developer.android.com/guide/topics/providers/calendar-provider.html On Sun, Dec 18, 2011 at 6:09 PM, TreKing treking...@gmail.com wrote: On Thu, Dec 15, 2011 at 3:39 PM, Bhupi bhupendr...@gmail.com wrote: I am planning to use calender api and couldn't find any documentation. You couldn't? Come on. http://developer.android.com/search.html#q=calendart=0 - 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] verizon galaxy nexus as dev phone?
Last year I got an unlocked Nexus One as both my dev phone and usage phone; it is now failing, and I also want to switch away from ATT. I'd like to go with Verizon and the recently released Galaxy Nexus, but 1) There seems to be no way to get an unlocked Galaxy Nexus for Verizon (LTE/CDMA), apart from voiding the warranty and unlocking it yourself; is this correct? 2) Does anyone have experience using a (locked) Verizon Galaxy Nexus as a dev phone? I realize it only came out last week, but I'm betting there's already some experience out here on it. Can you just USB it to your dev computer and load apps like the Nexus One, or is there some kind of hassle? I definitely want to verify this stuff before I switch carriers and plunk down for a new contract! Thanks, Nick. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] verizon galaxy nexus as dev phone?
2) Does anyone have experience using a (locked) Verizon Galaxy Nexus as a dev phone? I realize it only came out last week, but I'm betting there's already some experience out here on it. Can you just USB it to your dev computer and load apps like the Nexus One, or is there some kind of hassle? You don't need to have an unlocked phone to install and debug apps. A bootloader unlocked phone is only useful if you plan on modifying the system itself. -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: including/excluding conditional code in different builds
here we go again... Because there are more advanced features that give you greater control, please just point me in that direction please please please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Extension menu to an incoming call
Hi all, How can i automatically play an extension menu to an incoming call? Scenario: 1. A user is calling. 2. I answer the phone call. 3. The user is hearing: For jonny press1, for david press 2... Thanks, Tamir. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: including/excluding conditional code in different builds
On Mon, Dec 19, 2011 at 4:51 PM, topazmax mgg7...@gmail.com wrote: here we go again... Because there are more advanced features that give you greater control, please just point me in that direction please please please What stops you from googling java macro? Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Extension menu to an incoming call
On Mon, Dec 19, 2011 at 5:08 PM, tamiro tamir...@gmail.com wrote: Hi all, How can i automatically play an extension menu to an incoming call? Scenario: 1. A user is calling. 2. I answer the phone call. 3. The user is hearing: For jonny press1, for david press 2... You have no access to the in-call audio stream. See: http://stackoverflow.com/questions/3900564/play-an-audio-clip-onto-an-ongoing-call http://stackoverflow.com/questions/5268964/stream-audio-to-a-phone-call-android http://stackoverflow.com/questions/2492457/android-phone-call-audio-stream-via-wlan http://stackoverflow.com/questions/4319949/need-to-play-audio-to-the-caller http://stackoverflow.com/questions/5452595/playing-an-pre-recorded-audio-file-to-somebody-over-a-call -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: including/excluding conditional code in different builds
I'm one of the people that felt that having a preprocessor in Java is fine. I actually fine with any tool that helps you just get something done. Also just for the record Sun added support for a preprocessor in NetBeans and C# has support for a kind of conditional compile. First you should try and use interfaces along with factory methods to handle the broad strokes and areas that don't require crazy performance. I have an interface for stuff like GraphicsDevice, AudioDevice, NetDevice etc and have an App class that creates the devices based on some properties that get set when the App is created. So you still need some method to tell your App which interfaces to create. Below is a simple example of how it can be done. I just typed this out so I don't know if it even compiles. The idea is that you make an eclipse project for each configuration you want and a class that sets the static variables. The projects use linked sources and filters to include/exclude the correct files. class MyAppBase { static boolean LITE_VERSION= true; public void doSomething() { if ( LITE_VERSION == false ) { // add something that only the full version has } } } class MyLiteApp extends MyAppBase { public static void main( String[] args ) { LITE_VERSION= true; new MyLiteApp(); } } class MyFullApp extends MyAppBase { public static void main( String[] args ) { LITE_VERSION= false; new MyFullApp(); } } Using this method can create an explosion of projects but I don't make a project for EVERY case. I generally make projects for LITE, RELEASE and DEV. The DEV version is what I use to develop with daily and I change the configurations without a concern. The LITE and RELEASE tend not to change much. Now, with all that said I still use preprocessing. I use it for the cases that require performance such as an inner loop or if refactoring the code is way too much work for the gains. For this I use Antenna and I ONLY use it for a deployment build. The deployment build doesn't use eclipse at all and is just an ant script. IMHO the only way to deploy is using ant. I also use some regular expressions to handle changing package names. http://antenna.sourceforge.net/ Antenna will allow you to do the following: //#ifndef RELEASE System.out.print( Debug ); //#endif On 19/12/2011 4:51 PM, topazmax wrote: here we go again... Because there are more advanced features that give you greater control, please just point me in that direction please please please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Extension menu to an incoming call
Thanks. So what is ringbacks? On 20 דצמבר, 00:16, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 19, 2011 at 5:08 PM, tamiro tamir...@gmail.com wrote: Hi all, How can i automatically play an extension menu to an incoming call? Scenario: 1. A user is calling. 2. I answer the phone call. 3. The user is hearing: For jonny press1, for david press 2... You have no access to the in-call audio stream. See: http://stackoverflow.com/questions/3900564/play-an-audio-clip-onto-an...http://stackoverflow.com/questions/5268964/stream-audio-to-a-phone-ca...http://stackoverflow.com/questions/2492457/android-phone-call-audio-s...http://stackoverflow.com/questions/4319949/need-to-play-audio-to-the-...http://stackoverflow.com/questions/5452595/playing-an-pre-recorded-au... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Account Sync still does not work on 4.0.3 emulator
Just as the title says. Now, unlike before, I can add my account to the emulator, but sync is off. Clicking on the account name in an attempt to turn the sync on gives me no option to do so. Halp? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] verizon galaxy nexus as dev phone?
Hi all, I did a google search, there is not any documents said the bootloader in Galaxy Nexus is unlocked. I am not sure whether that is the next generation of Dev phone. On Tue, Dec 20, 2011 at 7:18 AM, Romain Guy romain...@android.com wrote: 2) Does anyone have experience using a (locked) Verizon Galaxy Nexus as a dev phone? I realize it only came out last week, but I'm betting there's already some experience out here on it. Can you just USB it to your dev computer and load apps like the Nexus One, or is there some kind of hassle? You don't need to have an unlocked phone to install and debug apps. A bootloader unlocked phone is only useful if you plan on modifying the system itself. -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] verizon galaxy nexus as dev phone?
You can unlock the bootloader using the command fastboot oem unlock (just like on Nexus S and Nexus One.) On Mon, Dec 19, 2011 at 2:53 PM, Michael Leung michaelchi...@gmail.com wrote: Hi all, I did a google search, there is not any documents said the bootloader in Galaxy Nexus is unlocked. I am not sure whether that is the next generation of Dev phone. On Tue, Dec 20, 2011 at 7:18 AM, Romain Guy romain...@android.com wrote: 2) Does anyone have experience using a (locked) Verizon Galaxy Nexus as a dev phone? I realize it only came out last week, but I'm betting there's already some experience out here on it. Can you just USB it to your dev computer and load apps like the Nexus One, or is there some kind of hassle? You don't need to have an unlocked phone to install and debug apps. A bootloader unlocked phone is only useful if you plan on modifying the system itself. -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en