[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation
You should be ashamed. It's not supported on earlier devices and there is no indication that it will be supported by 3.0. On 31 янв, 09:32, Samuh samuh.va...@gmail.com wrote: :shameless bump: -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Freeze with RGBA8 OpenGL ES 2.0
This bug's been around quite a while; there are a number of issues on http://b.android.com related to it. It's plagued one of my apps in particular for the better part of a year. While there are some tips for reducing its occurrence (like the eglWaitGL() call you mentioned), and I seem to have stopped it from happening on my N1, I still get sporadic user reports of it. But AFAIK, nobody's linked it to a specific colorspace config before... and that may indeed be what fixed it for me, as I've moved to RGB565 wherever possible to conserve memory. If you could create a minimal test case APK for it - one which reliably produces the freeze - that'd be a BIG help. One of the major difficulties with this bug has been its sporadic nature; it's really hard to tell when it's fixed. I'm sure the same applies to any platform or hardware engineers who may have worked on it from their side too. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Styles and Background
Hello, i try to create a style for a TextView which also get the Background using a Gradient declared in another xml. Its not got displayed, any sugestion why ? style name=Day_Entry parent=@android:style/Widget.TextView item name=android:textColor#/item item name=android:shadowColor#ff88/item item name=android:shadowDx0.5/item item name=android:shadowDy0.5/item item name=android:shadowRadius0.9/item item name=android:textSize24dip/item item name=android:textStylebold/item item name=android:background@drawable/small_bg_gradient/item /style ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle gradient android:startColor=#0fFF android:centerColor=#0f88 android:endColor=#0fFF android:angle=90 / /shape -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MediaPlayer callbacks not firing after calling prepareAsync() from a Service
On Jan 31, 6:58 pm, Jim Benton j...@autonomousmachine.com wrote: Any thoughts on what I could be doing wrong? I use prepareAsync and count on the callback. It works every time or my users would be very upset. The only question I have for you is this: why the synchronized block in the init code? Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using Android C2DM
Hi everyone. I'm attempting to use C2DM in my app, but I admit I'm finding the docs very confusing. The official guide http://code.google.com/android/c2dm/ makes the process seem relatively simple, showing code which implements various methods, onReceive(), handleRegistration(), performs registration, along with some manifest entries. It also points to two examples, JumpNote and ChrometoPhone. However the implementation of C2DM in these two apps are not like the suggestions in the overview docs: - the docs declare a receiver: receiver android:name=.C2DMReceiver android:permission=com.google.android.c2dm.permission.SEND - while the sample apps do this: service android:name=.C2DMReceiver / receiver android:name=com.google.android.c2dm.C2DMBroadcastReceiver android:permission=com.google.android.c2dm.permission.SEND The samples also have a class called C2DMReceiver, but again the docs have no mention of this. Furthermore, I can find no implementation of the methods mentioned above (onReceive, handleRegistration) within the sample apps. Anyway, I've so far attempted to implement the code as per the docs, and so far the only output I get is this: DEBUG/C2DMRegistrar(184): [C2DMRegistrar.61] register: http error 400 Confused... any advice 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: Schedule notification instead of permanently check
OMG, today I determined, that my BootReceiver is not called again :'( But I changed nothing in relation with this :( it looks like an issue to me. I don't do anything in the onReceive yet, only log out something. This morning it worked very well then I started to implement code to start my applications service within the receiver. That worked very well. I used the context.getApplicationContext() to start the Service. This worked for me, then I tried to change to start the service with context instead of application context. From this moment on I've seen no output for onReceive. The broadcast receiver is never called when the device booted. I build it back to version with only log output implementation in the onReceive method. But I still dont get it to work again. I tried to use a completely new created emulator, but nothing changed :-( I don#t think I am doing something wrong here, cause I got it to work in past... -Danny S. On Jan 27, 4:33 pm, Danny S. danny.schi...@googlemail.com wrote: Hi together, using a second receiver worked for me: ... receiver android:name=.AlertReceiver / !-- only for device is booted detection: -- receiver android:name=.BootedReceiver intent-filter action android:name=android.intent.action.BOOT_COMPLETED / /intent-filter /receiver ... I am confused doing it this way. I would have preferred using only one receiver for handling corresponding actions but it seems this is the only way... Maybe it has to be like this, but somebody would explain to me ;-) Thanks! -DannyS. On 27 Jan., 16:19, DannyS. danny.schi...@googlemail.com wrote: Kostya, yeah, I am with you and think my AndroidManifest looks correct. I figured out too, that all data get lost when Wipe user data is enabled. I started the emulator always without Wipe user data but it does not work. Maybe it is an emulator problem... I can try to figure out on my real device and show up a notification with information about intent's action when onReceive() is called. I temporery implemented notification output and tested it on emulator. One for boot action and one for any other. In any case there should be a notification but when I restart the emulator nothing happened... onReceive is not called. As said I'll try with my real device and give response ASAP. If it does not work I try using a second receiver that handles the boot action and nothing else... hope I can solve the problem soon ;-) Thanks for your help! -DannyS. On 27 Jan., 15:23, Kostya Vasilyev kmans...@gmail.com wrote: Danny, Your app's manifest for the broadcast action, as well as the permission, look fine. When you start the emulator, make sure you don't have Wipe user data enabled, as that will erase the application, so it won't be available at boot. Other than that, maybe you're just not seeing the logcat message? Try doing something more visible, like a notification or starting an activity. -- Kostya 27.01.2011 16:49,DannyS. пишет: Hi Kostya, I removed the category, but have still the same issue: boot completed is never recognized. You said you dont see the other action. I create the Broadcast- Intent and put it into PendingIntent.getBroadcast(), without a action in AndroidManifest: ... alertReceiverIntent = new Intent(this, AlertReceiver.class); alarmSender = PendingIntent.getBroadcast(this, task.getId(), alertReceiverIntent, 0); // insert a new alert mAlarmManager.set(AlarmManager.RTC_WAKEUP, deliverTime, alarmSender); ... The receiver is used like expected, onReceive() is called, but never when the device came up. I can try using a second receiver if it is ever possible, only for boot recognization. But this seems not the best way... My receiver should be able to differ between actions and do several things... Thanks a lot! -DannyS. On 27 Jan., 14:15, Kostya Vasilyevkmans...@gmail.com wrote: Danny, You don't need acategory in the filter to receive BOOT_COMPLETED, justaction. In fact, that's probably the cause of your code not receiving it. Also I don't see the other action in the manifest, for receiving your own alarms. -- Kostya 27.01.2011 16:00,DannyS. пишет: Hi, I tried to implement a receiver that will be called when the device booted: receiver android:name=.AlertReceiver intent-filter action android:name=android.intent.action.BOOT_COMPLETED / category android:name=android.intent.category.HOME / /intent-filter /receiver uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / is already added
[android-developers] Emulator snapshots in API 9 work with older API levels
I am loving the emulator snapshot feature that is at Early look stage in SDK Tools Revision 9 http://developer.android.com/sdk/tools-notes.html# This capability is speeding up my development using the emulator significantly. It took me a while to figure out how to use it so wanted to share it here : CREATE AN AVM SNAPSHOT * Set the Snapshot Enabled checkbox in the SDK Manager Virtual Devices New... NOTE : Make sure you upgrade your Eclipse plugin for Android Development to 9.0.0 or the Snapshot Enabled feature wont show. * Start your AVM and enable the `Save to Snapshot` checkbox, then click Launch button * Once the AVM is running. Set it up how you want it to resume later. E.g. change settings, screen rotation and run the app you want. * Close the emulator window (click the close box). The AVM state will be saved and the window will close. RESUME the AVM * From the SDK Manager Virtual Devices select your device and click Start... * This time turn `Launch from Snapshot` ON and `Save to Snapshot` checkbox OFF then click Launch button. * Your AVM should launch in a few seconds and resume to its saved state like magic. * Close the emulator window and the present state will be lost (because we turned `Save to Snapshot` checkbox OFF). Resume again to the originally saved snapshot at any time. SUMMARY Emulator Snapshots - New in API Level 9 Good - Instant-On Emulator at a state you decide. - Saves time (several minutes) - Configure your AVM settings Once - Works with older API versions (e.g. Froyo 2.2) Bad - Only one snapshot per AVM - Defaults to standard screen orientation -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MediaPlayer callbacks not firing after calling prepareAsync() from a Service
Where is the source for the NPR code you mentioned ? On Tue, Feb 1, 2011 at 7:45 PM, Doug beafd...@gmail.com wrote: On Jan 31, 6:58 pm, Jim Benton j...@autonomousmachine.com wrote: Any thoughts on what I could be doing wrong? I use prepareAsync and count on the callback. It works every time or my users would be very upset. The only question I have for you is this: why the synchronized block in the init code? Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, John Scott -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Market question: Why there's no related applications shown for my app on the market?
Hi, I have an app listed on Android Market, those days I noticed that the download times per day is decreasing very fast, so I started to find why, I found that there's no related applications for my app now. On related section of my app on the market, I saw a message said that Android Market could not find applications related to this one. I'm so confused that my app really had related applications before but why it hasn't now? This caused my app very hard difficult to find by users!! Then I went to see my related apps, I found that my app also disappears on their's related sections. It seems that my app lost all connections to all related apps. Does anyone has the same issue or know why this happened? Thanks BRs, Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problems storing images with Base64 encode into a row of a SQL DB
Yeah, a BLOB is the way to store the image text -- no base64 needed. Supposedly the max BLOB (and string) size is 1,000,000,000, unless it was changed in the Android build (which is entirely possible). On Jan 31, 12:02 pm, saex elpablos...@gmail.com wrote: 0 down vote favorite Hi i'm encodding images with Base64 into Strings, and i am uploading these images into a remote database, in a row of the table USER. That row is TEXT, because i dont know if there is anothr String type with more space than TEXT. When i store very small images, with 5 or 10 KB of space, they store OK, and when i get these images back from the sql DB into my app, i can decode them into BitMap and show them into a ImageView. THE PROBLEM: When i store images with for example 110 KB of space, i think they doesn't store OK in the TEXT row of my table USER in the SQL DB, because when i try to decode them, i got an error, they can't be decoded, but i dont know why, because the decode function of Base64 simply returns null when he can't decode. There is a way to solve it? How munch KB can have a image to be stored into the row of a databse? The better option for the row is to be TEXT ? or there is another Type that can store more higher Strings? 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] API to generate Dalvik bytecode at runtime
Hi Guys! The following issue try to create an API to generate Dalvik bytecode at runtime. http://code.google.com/p/android/issues/detail?id=6322 Could someone to help me with that code. 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] Video play resume on Activity Switching
Hi All, I have created an activity( VideoViewActivity) having a VideoView and some Buttons. These buttons are used to perform Share Video on various social channels. On click of these buttons i launch another activity and share the video link. When I start the VideoViewActivity, after initial buffering the video start playing. While the video is getting played, If I click on any of the share buttons, i switch to the respective share activity(FacebookActivity, TwitterActivity). When i come back to VideoViewActivity, what i observe is that the video play has been stopped. If i see the logcat, video's buffering start from beginning and also I have to manually click on the VideoView's play button to start the play. My questions is- How can I avoid the Video's buffering to happen from starting after coming back to VideoViewActivity, i.e. the video should start playing from the point where it got paused. Thanks Best Regards Amit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] data upload java script
I need a javascript snippet to upload some data to a server, any sample code ? basically what i need is a page loads and the java script loads as part of thet page. that page also puts some data in hidden value. (or suggest better alternative). now, as soon as the page loads completely, the javascript uploads the data in hidden variable to another web server. please give me some pointers and code snippets. i need it to run in android browser -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] to GUI gurus:a question about dialog window and activity
A problem confused me for a little while, which is about dialog window and activity。 In a normal activity,an alert dialog is called to be shown on top of this activity,and HOME key is pressed to go to HOME screen。 Then HOME key is long pressed to go back to this activity。 Surprisingly, the alert dialog is restored. Is this job done by activity manager? A second question is, in some scenarios the activity does not hold the reference, is there a way to index its top window(for example, dialog window) from this activity's API? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] viewgroup and view
Hello there, I ve the following scenario. I ve a viewgroup and two views (one draws a rectshape, an ovalshape the other). The viewgroup and the two views implements the OnTouchListener interface. But when a touch on a view, both the Viewgroup.onTouch(..) and the RectView.onTouch() and the OvalView.onTouc() have been called. My question is.. if I want to know wich view has been touched what i need to do? Could please provide me some information or example? 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] About Activity Group Navigation
Hi All, I have a problem with the Activity Groups, I am using a Tabhost with 4 Tabs and inside other activities it is going good. But when i am in tab-3 if i was click on the item in Tab-3 how can it go to the Tab-1. Switching between the Activity Groups. Can any one Help me Out? -- Thanks Regards B.NagaRaju Software Engineer 9966990732 WWW.arijasoft.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] Layout Issue
Hey all! I have a question. I have a layout for a chat program that has a variable height. If I start with the chat screen layout (R.layout.chatView below - load that layout first), the height will adjust with the virtual keyboard, leaving the chat text in view and pushing the textbox and send button's half way up the screen to show the soft keyboard like it should. HOWEVER, if I load a different layout BEFORE (R.layout.firstLayout below) the chat screen layout, instead of doing what it does above, it will push the chat text off the top of the screen and the textbox and send button won't show unless I close the virtual keyboard (switchViews is called by a button press). --- Works Correctly Example --- public void onCreate(Bundle savedInstanceState) { setContentView(R.layout.chatView); } --- DOES NOT Work Correctly Example --- public void onCreate(Bundle savedInstanceState) { setContentView(R.layout.firstLayout); } public void switchViews() { setContentView(R.layout.chatView); } Am I missing something here? Do I need to clear a view or something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Question about scrambling the keyboard
Having worked on a few keyboards I can tell you that I doubt you can scramble the keyboard from your app. What you should do is extend one of the text input views and do your funky scrambling there. You should also set ime options on the text view to turn off predictive etc. text etc so the keyboard doesn't get confused. - Brill Pappin On Jan 31, 4:34 pm, FractalBob ruom...@gmail.com wrote: Hi, I'm writing an app that randomly scrambles the keyboard, so that when the user presses, say, the 'A' key, some other letter might get displayed. The -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] to GUI gurus:a question about dialog window and activity
I'm not a GUI guru, but I'll try to answer :) Dialogs are managed by Activity class inside the Android framework. If a dialog is shown with showDialog(id, [bundle]), it's remembered by Activity as being visble, and will be saved by Activity at the same time as your onSaveInstanceState / onRestoreInstanceState are called (if you have those overrides). This means that managed dialogs survive orientation changes, as well as the activity being destroyed and re-created when the user comes back to it (such as with the list of recent applications, called up by [Home] long press). http://developer.android.com/guide/topics/ui/dialogs.html AFAIK, there is no way to check whether a a given dialog is on the screen, although the framework certainly knows this. -- Kostya 01.02.2011 16:31, Jian Chen пишет: A problem confused me for a little while, which is about dialog window and activity。 In a normal activity,an alert dialog is called to be shown on top of this activity,and HOME key is pressed to go to HOME screen。 Then HOME key is long pressed to go back to this activity。 Surprisingly, the alert dialog is restored. Is this job done by activity manager? A second question is, in some scenarios the activity does not hold the reference, is there a way to index its top window(for example, dialog window) from this activity's API? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Resume for Sr QA Analyst
http://www.youtube.com/watch?v=EO7cVIk8CmYfeature=player_embedded# On Tue, Feb 1, 2011 at 9:31 AM, prasad sirisol prasad.siri...@gmail.comwrote: Hi, Hope you are doing good. I am a Recruiter at SIRI Solutions INC. Here I attached our consultant resume with this mail. Consultant details are given below, Name*:* *MRUDULA* Present Location http://www.youtube.com/watch?v=EO7cVIk8CmYfeature=player_embedded# *: Edison, NJ* Visa Status* : Green Card* Relocation * : Looking contract positions only in NJ state and New York City.* Availability *: Immediate* Face 2 Face *: Ready After Initial Telephonic interview with Client* * * Kindly let me know if you have any requirements for our consultant in NJ state and NYC. Feel free to contact me for contact details and rate. If you have any requirements please send to my mail address * pra...@sirisol.com .* Thanks Regards, *Prasad* *Sr. Technical Recruiter* *Siri Solutions International INC* 2217 Prior Rd, Wilmington, DE-19809 Fax: 302-380-3305 *pra...@sirisol.com* *www.sirisol.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Layout Issue
I've seen some places where they say to create a separate activity for the second view. However, it hardly seems necessary in my example because literally all I am doing at first is displaying a view, there are no other functions. On Feb 1, 9:05 am, Bobbie bobbie.st...@gmail.com wrote: Hey all! I have a question. I have a layout for a chat program that has a variable height. If I start with the chat screen layout (R.layout.chatView below - load that layout first), the height will adjust with the virtual keyboard, leaving the chat text in view and pushing the textbox and send button's half way up the screen to show the soft keyboard like it should. HOWEVER, if I load a different layout BEFORE (R.layout.firstLayout below) the chat screen layout, instead of doing what it does above, it will push the chat text off the top of the screen and the textbox and send button won't show unless I close the virtual keyboard (switchViews is called by a button press). --- Works Correctly Example --- public void onCreate(Bundle savedInstanceState) { setContentView(R.layout.chatView); } --- DOES NOT Work Correctly Example --- public void onCreate(Bundle savedInstanceState) { setContentView(R.layout.firstLayout); } public void switchViews() { setContentView(R.layout.chatView); } Am I missing something here? Do I need to clear a view or something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Layout Issue
After more research I found a ViewSwitcher fixes this issue. Bobbie On Feb 1, 9:40 am, Bobbie bobbie.st...@gmail.com wrote: I've seen some places where they say to create a separate activity for the second view. However, it hardly seems necessary in my example because literally all I am doing at first is displaying a view, there are no other functions. On Feb 1, 9:05 am, Bobbie bobbie.st...@gmail.com wrote: Hey all! I have a question. I have a layout for a chat program that has a variable height. If I start with the chat screen layout (R.layout.chatView below - load that layout first), the height will adjust with the virtual keyboard, leaving the chat text in view and pushing the textbox and send button's half way up the screen to show the soft keyboard like it should. HOWEVER, if I load a different layout BEFORE (R.layout.firstLayout below) the chat screen layout, instead of doing what it does above, it will push the chat text off the top of the screen and the textbox and send button won't show unless I close the virtual keyboard (switchViews is called by a button press). --- Works Correctly Example --- public void onCreate(Bundle savedInstanceState) { setContentView(R.layout.chatView); } --- DOES NOT Work Correctly Example --- public void onCreate(Bundle savedInstanceState) { setContentView(R.layout.firstLayout); } public void switchViews() { setContentView(R.layout.chatView); } Am I missing something here? Do I need to clear a view or something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: About Activity Group Navigation
http://developer.android.com/reference/android/widget/TabHost.html#setCurrentTab(int). If you're running a service you can put a reference to the tabhost in it. Otherwise you can put it in an application class after you set it up in your tab activity and use getApplicationContext() to get a reference. Then you can just call setCurrentTab on it. On Feb 1, 8:55 am, raju bhusani raju.bhus...@gmail.com wrote: Hi All, I have a problem with the Activity Groups, I am using a Tabhost with 4 Tabs and inside other activities it is going good. But when i am in tab-3 if i was click on the item in Tab-3 how can it go to the Tab-1. Switching between the Activity Groups. Can any one Help me Out? -- Thanks Regards B.NagaRaju Software Engineer 9966990732 WWW.arijasoft.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] Device idea
I have an idea for an Android based device that I think would/could corner a certain market that spends a good deal of money on gadgets/ equipment/etc. Does anyone know how you would go about getting involved in that sort of endeavor? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Render a PDF in a View
Hi at all, anyone knows how, if it is possibile, to draw an PDF in a View ? PDF file could be an local file or a file downloaded over internet. I searched over internet about this question but I have not an detailed solution of this problem or a good example. 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: viewgroup and view
What are RectView and OvalView ? Are you own View ? On 1 Feb, 14:41, blackbelt emanuel...@gmail.com wrote: Hello there, I ve the following scenario. I ve a viewgroup and two views (one draws a rectshape, an ovalshape the other). The viewgroup and the two views implements the OnTouchListener interface. But when a touch on a view, both the Viewgroup.onTouch(..) and the RectView.onTouch() and the OvalView.onTouc() have been called. My question is.. if I want to know wich view has been touched what i need to do? Could please provide me some information or example? 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] Render a PDF in a View
On Tue, Feb 1, 2011 at 10:26 AM, pedr0 pulsarpie...@gmail.com wrote: anyone knows how, if it is possibile, to draw an PDF in a View ? There is nothing in the Android SDK that supports PDFs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Atlanta: http://bignerdranch.com/classes/android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Render a PDF in a View
But PDF reader exists for Android.. On 1 Feb, 16:29, Mark Murphy mmur...@commonsware.com wrote: On Tue, Feb 1, 2011 at 10:26 AM, pedr0 pulsarpie...@gmail.com wrote: anyone knows how, if it is possibile, to draw an PDF in a View ? There is nothing in the Android SDK that supports PDFs. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in Atlanta:http://bignerdranch.com/classes/android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] APN settings
Hi, I need to change APN settings when my app starts and restore it when it finishes. Could anyone help with this? Tnx 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] question regarding media playback in browser
Anyone can list what media combinations ( container format/ video encoding/ resolution /audio encoding) i can play in Froyo browser ? I played YouTube videos, so it does support FLV format? How's about 3GPP , or MP4? Thanks, -V -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Render a PDF in a View
Il Tue, 01 Feb 2011 07:33:23 -0800, pedr0 ha scritto: But PDF reader exists for Android.. Yes. You can create your own PDF parsing and rendering engine, and make it draw on a canvas. :) Or you can use an open source one (respecting its license). Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Nested layouts in separate XML
On Tue, Feb 1, 2011 at 12:15 AM, MerlinBG merli...@gbg.bg wrote: I am really surprised to see this thread! I'm really surprised you re-opened a 2-year old thread! I have googled how to nest XML-based layouts, assuming it is possible, however found this. You may also find this: http://developer.android.com/resources/articles/layout-tricks-reuse.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Render a PDF in a View
Could you give me an open source library name or web link wich I can use, I would like read some documentation about it. I prefer use a library : - ) Thanks a lot. On 1 Feb, 16:38, Alessandro Pellizzari a...@amiran.it wrote: Il Tue, 01 Feb 2011 07:33:23 -0800, pedr0 ha scritto: But PDF reader exists for Android.. Yes. You can create your own PDF parsing and rendering engine, and make it draw on a canvas. :) Or you can use an open source one (respecting its license). Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Render a PDF in a View
Il Tue, 01 Feb 2011 07:56:43 -0800, pedr0 ha scritto: Could you give me an open source library name or web link wich I can use, I would like read some documentation about it. I think the most developed and used is mupdf: http://code.google.com/p/mupdf-android/ Maybe there are other libs. Try to search on code.google.com Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scheduling ideas
Hi all. I want to build certain functionality into my app, but I'm not sure if it's possible. The main parts of the app (and server calls) are built, it's just the scheduling I'm considering. 1) I want the app to check against a server at a set time each morning. If there are updates available (in this case it's just some data from a database) I want to either create a notification, or resume the app, loading up the new data. 2) I suppose if the device isn't turned on at the specified time, then it should check the next time it starts up to see if an update check is due. 3) I want this to be done in a way where the app isn't running, i.e. no drain on resources. So, can this be done, and what should I be looking at? 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: Render a PDF in a View
Thanks a lot Alessandro. Have a nice day. On 1 Feb, 17:06, Alessandro Pellizzari a...@amiran.it wrote: Il Tue, 01 Feb 2011 07:56:43 -0800, pedr0 ha scritto: Could you give me an open source library name or web link wich I can use, I would like read some documentation about it. I think the most developed and used is mupdf:http://code.google.com/p/mupdf-android/ Maybe there are other libs. Try to search on code.google.com Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scheduling ideas
Neil, Take a look at AlarmManager. http://developer.android.com/reference/android/app/AlarmManager.html For update checks, you might want to use a non-wakeup type of alarm (AlarmManager.RTC), so it's delayed until the user starts using the phone in the morning and wakes it up (such as an alarm clock going off), but a wakeup-type alarm would work too. -- Kostya 01.02.2011 19:09, Neilz пишет: Hi all. I want to build certain functionality into my app, but I'm not sure if it's possible. The main parts of the app (and server calls) are built, it's just the scheduling I'm considering. 1) I want the app to check against a server at a set time each morning. If there are updates available (in this case it's just some data from a database) I want to either create a notification, or resume the app, loading up the new data. 2) I suppose if the device isn't turned on at the specified time, then it should check the next time it starts up to see if an update check is due. 3) I want this to be done in a way where the app isn't running, i.e. no drain on resources. So, can this be done, and what should I be looking at? Thanks. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Scheduling ideas
AlarmManager :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 plugin for eclipse slow performance
Or use this workaround until the next release of Eclipse... works great for me: http://groups.google.com/group/android-developers/msg/0f9d2a852e661cba -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scheduling ideas
Thanks... this seems to be what I'm after. However I just put together a simple repeat alarm, outputting a Toast every minute, which was fine. But it didn't work again after a phone restart... how can this be implemented? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scheduling ideas
Right, alarms are not persistent. Implement a receiver for android.intent.action.BOOT_COMPLETED, and set the alarm again after the device reboots. -- Kostya 01.02.2011 20:22, Neilz пишет: Thanks... this seems to be what I'm after. However I just put together a simple repeat alarm, outputting a Toast every minute, which was fine. But it didn't work again after a phone restart... how can this be implemented? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Scheduling ideas
Right, thanks. And will that stay on the device as long as the app is still installed? (And, I suppose, will it get removed if the app is uninstalled?) On Feb 1, 5:25 pm, Kostya Vasilyev kmans...@gmail.com wrote: Right, alarms are not persistent. Implement a receiver for android.intent.action.BOOT_COMPLETED, and set the alarm again after the device reboots. -- Kostya 01.02.2011 20:22, Neilz пишет: Thanks... this seems to be what I'm after. However I just put together a simple repeat alarm, outputting a Toast every minute, which was fine. But it didn't work again after a phone restart... how can this be implemented? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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] ACTION_AIRPLANE_MODE_CHANGED
Hi, I have a question about airplane mode broadcast intent. The documentation says that the state extra value is a boolean. http://developer.android.com/reference/android/content/Intent.html#ACTION_AIRPLANE_MODE_CHANGED In the source of android apps, the PhoneApp reads it as integer: if (action.equals(Intent.ACTION_AIRPLANE_MODE_CHANGED)) { boolean enabled = System.getInt(getContentResolver(), System.AIRPLANE_MODE_ON, 0) == 0; ... } In some device (custom rom) there is an error if they try to read a boolean: 02-01 16:46:57.088: WARN/Bundle(302): java.lang.ClassCastException: java.lang.Integer 02-01 16:46:57.088: WARN/Bundle(302): at android.os.Bundle.getBoolean(Bundle.java:786) 02-01 16:46:57.088: WARN/Bundle(302): at android.content.Intent.getBooleanExtra(Intent.java:3259) 02-01 16:46:57.088: WARN/Bundle(302): at com.android.phone.PhoneApp $PhoneAppBroadcastReceiver.onReceive(PhoneApp.java:1677) Can you help me to understand it? It should be an integer or a boolean? Where is the mistake? Thanks, Tamás -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] What's wrong with this code - SimpleAdapter
Hi, I can't seems to display multiple roll in listview. What is wrong with my code? It just display line 1 - fruit1 and fruit2-4 doesn't appear. --- ArrayListHashMapString,String list = new ArrayListHashMapString,String(); HashMapString,String map = new HashMapString,String(); map.put(fruit1,Apple); map.put(fruit2, Orange); map.put(fruit3, Pear); map.put(fruit4, Banana); list.add(map); SimpleAdapter adapter = new SimpleAdapter(this, list, R.layout.fruit_list, new String[] {fruit1,fruit2,fruit3,fruit4}, new int[] {R.id.fruit1,R.id.fruit2, R.id.fruit3, R.id.fruit4} ); ListView lv=(ListView)findViewById(R.id.fruitView); lv.setAdapter(adapter); --- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent Spinner android:id=@+id/sort_by android:layout_width=fill_parent android:layout_height=wrap_content android:entries=@array/ default_sorts /Spinner ListView android:id=@+id/fruitView android:layout_width=fill_parent android:layout_height=wrap_content /ListView /LinearLayout --- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:background=@drawable/selector android:padding=10sp TextView android:id=@+id/fruit1 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit2 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit3 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit4 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ /LinearLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scheduling ideas
01.02.2011 20:35, Neilz пишет: Right, thanks. And will that stay on the device as long as the app is still installed? Yes. (And, I suppose, will it get removed if the app is uninstalled?) Believe so. -- Kostya On Feb 1, 5:25 pm, Kostya Vasilyevkmans...@gmail.com wrote: Right, alarms are not persistent. Implement a receiver for android.intent.action.BOOT_COMPLETED, and set the alarm again after the device reboots. -- Kostya 01.02.2011 20:22, Neilz пишет: Thanks... this seems to be what I'm after. However I just put together a simple repeat alarm, outputting a Toast every minute, which was fine. But it didn't work again after a phone restart... how can this be implemented? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] What's wrong with this code - SimpleAdapter
You are missing android:orientation=vertical on the LinearLayout in layout/fruit_list.xml The default orientation is horizontal, so fruit2..4 are there, but positioned off the right side of the screen. -- Kostya 01.02.2011 20:54, Mystique пишет: Hi, I can't seems to display multiple roll in listview. What is wrong with my code? It just display line 1 - fruit1 and fruit2-4 doesn't appear. --- ArrayListHashMapString,String list = new ArrayListHashMapString,String(); HashMapString,String map = new HashMapString,String(); map.put(fruit1,Apple); map.put(fruit2, Orange); map.put(fruit3, Pear); map.put(fruit4, Banana); list.add(map); SimpleAdapter adapter = new SimpleAdapter(this, list, R.layout.fruit_list, new String[] {fruit1,fruit2,fruit3,fruit4}, new int[] {R.id.fruit1,R.id.fruit2, R.id.fruit3, R.id.fruit4} ); ListView lv=(ListView)findViewById(R.id.fruitView); lv.setAdapter(adapter); --- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent Spinner android:id=@+id/sort_by android:layout_width=fill_parent android:layout_height=wrap_content android:entries=@array/ default_sorts /Spinner ListView android:id=@+id/fruitView android:layout_width=fill_parent android:layout_height=wrap_content /ListView /LinearLayout --- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:background=@drawable/selector android:padding=10sp TextView android:id=@+id/fruit1 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit2 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit3 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit4 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ /LinearLayout -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: What's wrong with this code - SimpleAdapter
Ah nice, that fixed all the prob :) On Feb 2, 2:09 am, Kostya Vasilyev kmans...@gmail.com wrote: You are missing android:orientation=vertical on the LinearLayout in layout/fruit_list.xml The default orientation is horizontal, so fruit2..4 are there, but positioned off the right side of the screen. -- Kostya 01.02.2011 20:54, Mystique пишет: Hi, I can't seems to display multiple roll in listview. What is wrong with my code? It just display line 1 - fruit1 and fruit2-4 doesn't appear. --- ArrayListHashMapString,String list = new ArrayListHashMapString,String(); HashMapString,String map = new HashMapString,String(); map.put(fruit1,Apple); map.put(fruit2, Orange); map.put(fruit3, Pear); map.put(fruit4, Banana); list.add(map); SimpleAdapter adapter = new SimpleAdapter(this, list, R.layout.fruit_list, new String[] {fruit1,fruit2,fruit3,fruit4}, new int[] {R.id.fruit1,R.id.fruit2, R.id.fruit3, R.id.fruit4} ); ListView lv=(ListView)findViewById(R.id.fruitView); lv.setAdapter(adapter); --- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent Spinner android:id=@+id/sort_by android:layout_width=fill_parent android:layout_height=wrap_content android:entries=@array/ default_sorts /Spinner ListView android:id=@+id/fruitView android:layout_width=fill_parent android:layout_height=wrap_content /ListView /LinearLayout --- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:background=@drawable/selector android:padding=10sp TextView android:id=@+id/fruit1 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit2 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit3 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ TextView android:id=@+id/fruit4 android:layout_width=fill_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMediumInverse/ /LinearLayout -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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: Questions about Two Way Sync Using SyncAdapter and SyncService in android
Thanks Dmitri Plan A showing logs but still service not gets invoked Plan B i tried to put SampleSyncAdapter totally unchanged except i have to cheat for this line only ((AuthenticatorActivity) context).onAuthenticationResult(true) in NetworkUtilities rest all intact but still this one does not start SyncAdapter. Plan C i am working on it lets see what can i figure out .. Please all tell me calling requesSync immediately call onPerformSync or again SyncManager puts request in Queue n later invoke my adapter is that true ??. If this is the case then i have to design in way so that on pressing button Sync should start immediately thanks On Jan 31, 6:00 pm, Dmitri Plotnikov dplotni...@google.com wrote: I cannot spot anything obviously wrong here. Here's what I would do in this situation: Plan A: Closely examine the logs - there might be something there already. Enable more logging and see if you can glean anything from it: adb shell setprop log.tag.SyncManager VERBOSE Plan B: I would put aside the sync adapter that you wrote, take SampleSyncAdapter, make sure it works on the device, and then start morphing it into what you need, making small incremental changes and retesting until it stops working. Then you know where you made a mistake. Plan C: I would get Android source and step through it in the debugger. SyncManager is a complicated class, so it will take you a few minutes to figure out. But in the end it's just Java. If you can write Java, you can read Java. I hope this helps, - Dmitri On Mon, Jan 31, 2011 at 5:19 PM, himanshu jain himanshu@gmail.comwrote: this is my manifest file manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.c99.SyncProviderDemo android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.GET_ACCOUNTS / uses-permission android:name=android.permission.USE_CREDENTIALS / uses-permission android:name=android.permission.MANAGE_ACCOUNTS / uses-permission android:name=android.permission.AUTHENTICATE_ACCOUNTS / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.WRITE_SETTINGS / uses-permission android:name=android.permission.WRITE_SECURE_SETTINGS / uses-permission android:name=android.permission.READ_CONTACTS / uses-permission android:name=android.permission.WRITE_CONTACTS / uses-permission android:name=android.permission.READ_SYNC_STATS / uses-permission android:name=android.permission.READ_SYNC_SETTINGS / uses-permission android:name=android.permission.WRITE_SYNC_SETTINGS / application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.LoginActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.VIEW / /intent-filter /activity activity android:name=.ProfileActivity android:label=Profile intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / data android:mimeType=vnd.android.cursor.item/ vnd.org.c99.SyncProviderDemo.profile / /intent-filter /activity service android:name=.AccountAuthenticatorService android:exported=true intent-filter action android:name=android.accounts.AccountAuthenticator / /intent-filter meta-data android:name=android.accounts.AccountAuthenticator android:resource=@xml/authenticator / /service service android:name=.ContactsSyncAdapterService android:exported=true intent-filter action android:name=android.content.SyncAdapter / /intent-filter meta-data android:name=android.content.SyncAdapter android:resource=@xml/syncadapter / meta-data android:name=android.provider.CONTACTS_STRUCTURE android:resource=@xml/contacts / /service /application uses-sdk android:minSdkVersion=5 / /manifest thanks On Jan 31, 4:53 pm, Dmitri Plotnikov dplotni...@google.com wrote: I would double-check every line of AndroidManifest.xml, compare it with the one in SampleSyncAdapter to see if anything's missing.
[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android
here is the log accord according to Plan A and Plan B when i have SampleSyncAdapater running on Device A-OS 2.2 01-31 21:02:06.105: VERBOSE/SyncManager(206): [SyncManager.java: 653:sendCheckAlarmsMessage()] sending MESSAGE_CHECK_ALARMS 01-31 21:02:06.145: DEBUG/SyncManager(206): [SyncManager.java: 607:scheduleSync()] scheduleSync: sync of Account {name=username, type=com.example.android.samplesync}, com.android.contacts is not allowed, dropping request 01-31 21:02:06.165: VERBOSE/SyncManager(206): [SyncStorageEngine.java: 374:reportChange()] reportChange 1 to: [android.content.SyncManager $7@313452f8, android.content.ContentResolver$1@314960c8] 01-31 21:02:06.175: VERBOSE/SyncManager(206): [SyncManager.java: 653:sendCheckAlarmsMessage()] sending MESSAGE_CHECK_ALARMS 01-31 21:02:06.235: VERBOSE/SyncManager(206): [SyncManager.java: 614:scheduleSync()] scheduleSync: delay 0, source 0, account Account {name=username, type=com.example.android.samplesync}, authority com.android.contacts, extras Bundle[{}] 01-31 21:02:06.235: VERBOSE/SyncManager(206): [SyncManager.java: 786:scheduleSyncOperation()] scheduleSyncOperation: dropping duplicate sync operation authority: com.android.contacts account: Account {name=username, type=com.example.android.samplesync} extras: [] syncSource: 0 when: 319845221 expedited: false 01-31 21:02:06.235: VERBOSE/SyncManager(206): [SyncStorageEngine.java: 374:reportChange()] reportChange 1 to: [android.content.SyncManager $7@313452f8, android.content.ContentResolver$1@314960c8] 01-31 21:02:06.255: VERBOSE/SyncManager(206): [SyncManager.java: 653:sendCheckAlarmsMessage()] sending MESSAGE_CHECK_ALARMS 01-31 21:02:06.325: VERBOSE/SyncManager(206): [SyncManager.java: 614:scheduleSync()] scheduleSync: delay 0, source 2, account Account {name=Backup Assistant, type=com.fusionone.account}, authority com.android.contacts, extras Bundle[{}] 01-31 21:02:06.335: VERBOSE/SyncManager(206): [SyncManager.java: 786:scheduleSyncOperation()] scheduleSyncOperation: dropping duplicate sync operation authority: com.android.contacts account: Account {name=Backup Assistant, type=com.fusionone.account} extras: [] syncSource: 2 when: 319845328 expedited: false 01-31 21:02:06.385: VERBOSE/SyncManager(206): [SyncManager.java: 614:scheduleSync()] scheduleSync: delay 0, source 2, account Account {name=username, type=com.example.android.samplesync}, authority com.android.contacts, extras Bundle[{}] 01-31 21:02:06.395: VERBOSE/SyncManager(206): [SyncManager.java: 786:scheduleSyncOperation()] scheduleSyncOperation: dropping duplicate sync operation authority: com.android.contacts account: Account {name=username, type=com.example.android.samplesync} extras: [] syncSource: 2 when: 319845375 expedited: false 01-31 21:02:06.425: VERBOSE/SyncManager(206): [SyncManager.java: 786:scheduleSyncOperation()] scheduleSyncOperation: dropping duplicate sync operation authority: com.android.contacts account: Account {name=username, type=com.example.android.samplesync} extras: [] syncSource: 4 when: 319845416 expedited: false 01-31 21:02:06.425: VERBOSE/SyncManager(206): [SyncManager.java: 1473:handleMessage()] handleSyncHandlerMessage: MESSAGE_CHECK_ALARMS 01-31 21:02:06.425: VERBOSE/SyncManager(206): [SyncManager.java: 1473:handleMessage()] handleSyncHandlerMessage: MESSAGE_CHECK_ALARMS 01-31 21:02:06.435: VERBOSE/SyncManager(206): [SyncManager.java: 1473:handleMessage()] handleSyncHandlerMessage: MESSAGE_CHECK_ALARMS On Jan 31, 6:00 pm, Dmitri Plotnikov dplotni...@google.com wrote: I cannot spot anything obviously wrong here. Here's what I would do in this situation: Plan A: Closely examine the logs - there might be something there already. Enable more logging and see if you can glean anything from it: adb shell setprop log.tag.SyncManager VERBOSE Plan B: I would put aside the sync adapter that you wrote, take SampleSyncAdapter, make sure it works on the device, and then start morphing it into what you need, making small incremental changes and retesting until it stops working. Then you know where you made a mistake. Plan C: I would get Android source and step through it in the debugger. SyncManager is a complicated class, so it will take you a few minutes to figure out. But in the end it's just Java. If you can write Java, you can read Java. I hope this helps, - Dmitri On Mon, Jan 31, 2011 at 5:19 PM, himanshu jain himanshu@gmail.comwrote: this is my manifest file manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.c99.SyncProviderDemo android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.GET_ACCOUNTS / uses-permission android:name=android.permission.USE_CREDENTIALS / uses-permission android:name=android.permission.MANAGE_ACCOUNTS / uses-permission android:name=android.permission.AUTHENTICATE_ACCOUNTS / uses-permission
Re: [android-developers] Android Market question: Why there's no related applications shown for my app on the market?
On Tue, Feb 1, 2011 at 5:59 AM, Alex Xin xinxi...@gmail.com wrote: Does anyone has the same issue or know why this happened? People that know the details behind how the related / similar feature of the Market works are not going to answer you. This is your best bet: http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher - 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] How to sort HashMap?
Hi, I know I can use Collections.sort() to sort an ArrayList. But if I have HashMap, how do I do it? Possible to throw it into a temp ArrayList to sort it? ArrayListHashMapString,String mylist = new ArrayListHashMapString,String(); How do I sort this mylist? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 sort HashMap?
On Tue, Feb 1, 2011 at 1:30 PM, Mystique joven.ch...@gmail.com wrote: But if I have HashMap, how do I do it? http://developer.android.com/reference/java/util/SortedMap.html http://developer.android.com/reference/java/util/SortedMap.html http://developer.android.com/reference/java/util/TreeMap.html http://developer.android.com/reference/java/util/TreeMap.htmlhttp://developer.android.com/reference/java/util/TreeMap.html#TreeMap(java.util.Map? extends K, ? extends V) http://developer.android.com/reference/java/util/TreeMap.html#TreeMap(java.util.Map? extends K, ? extends V) - 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 sort HashMap?
Hash maps are not ordered by definition. You can copy the contents into an array or ArrayList, and sort that using Collection.sort(). But copying the data back into a hash table will make it unordered again. You can also use a SortedMap, such as TreeMap, which maintains key ordering. http://developer.android.com/reference/java/util/SortedMap.html As a side note, it's probably overkill just to be able to use SimpleAdapter. I'd recommend you implement your own BaseAdapter subclass so you can show multiple data items for each element. -- Kostya 01.02.2011 22:30, Mystique пишет: Hi, I know I can use Collections.sort() to sort an ArrayList. But if I have HashMap, how do I do it? Possible to throw it into a temp ArrayList to sort it? ArrayListHashMapString,String mylist = new ArrayListHashMapString,String(); How do I sort this mylist? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Device idea
Two basic stages. 1) build a device 2) write drivers for Android repeat 1-2 until bugs worked out. then you have sales and support etc. Building hardware is not difficult but it can be time consuming and expensive depending on how much you want to spend. If you can't build the hardware or software yourself, you are going to need a lot of people with time on their hands that want to help, or you are going to need to pay someone else to do it. There are a few out there, for example http://www.openmoko.com/freerunner.html I think I'd start at the Open Handset Alliance http://www.openhandsetalliance.com/ FYI - I've been thinking about it as well :) but its not something to take on lightly. - Brill Pappin On Feb 1, 10:08 am, BigEHokie emile...@gmail.com wrote: I have an idea for an Android based device that I think would/could corner a certain market that spends a good deal of money on gadgets/ equipment/etc. Does anyone know how you would go about getting involved in that sort of endeavor? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SmaliHook.java found on my hacked application.
First, this is not a post to talk about how much pirating apps sucks etc... I just want to post what I found hackers using to unlock my application from using the Licensing Tools provided by Android. Anyone have any clues how to prevent this particular hack? Anyone familiar with this particular hack? Please find attached the recovered file found when I decompiled hacked version of my application. Thanks! -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enimport android.app.Activity; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; import android.content.pm.Signature; import android.util.Log; import java.io.File; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class SmaliHook extends Activity { public static int checkSignatures() { return 0; } public static int checkSignatures(String paramString1, String paramString2) { return 0; } public static int getApplicationEnabledSetting(PackageManager paramPackageManager, String paramString) { try { int i = paramPackageManager.getApplicationEnabledSetting(paramString); int j = i; if (j == 2) j = 0; k = j; return k; } catch (IllegalArgumentException localIllegalArgumentException) { while (true) int k = 0; } } public static String getInstallerPackageName(String paramString) { return com.google.android.feedback; } public static PackageInfo getPackageInfo(PackageManager paramPackageManager, String paramString, int paramInt) throws PackageManager.NameNotFoundException { try { PackageInfo localPackageInfo1 = paramPackageManager.getPackageInfo(paramString, paramInt); localPackageInfo2 = localPackageInfo1; if ((paramInt 0x40) == 64) { Signature[] arrayOfSignature1 = spoofSignatures(); Signature[] arrayOfSignature2 = localPackageInfo2.signatures; Signature localSignature = arrayOfSignature1[0]; arrayOfSignature2[0] = localSignature; } return localPackageInfo2; } catch (PackageManager.NameNotFoundException localNameNotFoundException) { while (true) PackageInfo localPackageInfo2 = paramPackageManager.getPackageInfo(com.application.packagename.here, paramInt); } } public static Object invokeHook(Method paramMethod, Object paramObject, Object[] paramArrayOfObject) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException, InstantiationException, ClassNotFoundException, PackageManager.NameNotFoundException { String str1 = paramObject.getClass().getName(); String str2 = paramMethod.getName(); String str3 = smali hook - class: + str1 + method: + str2; int i = Log.d(lohan, str3); Object localObject1; if ((str1.equals(android.app.ContextImpl$ApplicationPackageManager)) || (str1.equals(android.app.ApplicationContext$ApplicationPackageManager)) || (str1.equals(android.content.pm.PackageManager)) || (str1.contains(ApplicationPackageManager))) if (str2.equals(getInstallerPackageName)) localObject1 = getInstallerPackageName((String)paramArrayOfObject[0]); while (true) { return localObject1; if (str2.equals(getPackageInfo)) { int j = ((Integer)paramArrayOfObject[1]).intValue(); if (str1.equals(android.content.pm.PackageManager)) { PackageManager localPackageManager1 = (PackageManager)paramObject; String str4 = (String)paramArrayOfObject[0]; localObject1 = getPackageInfo(localPackageManager1, str4, j); continue; } try { Object localObject2 = paramMethod.invoke(paramObject, paramArrayOfObject); localObject3 = localObject2; if ((j 0x40) == 64) { Signature[] arrayOfSignature1 = spoofSignatures(); Signature[] arrayOfSignature2 = ((PackageInfo)localObject3).signatures; Signature localSignature = arrayOfSignature1[0]; arrayOfSignature2[0] = localSignature; } localObject1 = localObject3; } catch (Exception localException) { while (true) { Object[] arrayOfObject = new Object[1]; arrayOfObject[0] = %!AppPackage; Object localObject3 = paramMethod.invoke(paramObject, arrayOfObject); } } } if (str2.equals(getApplicationEnabledSetting)) { PackageManager
[android-developers] changing the name i guess?
Hi i was wondering if anyone knew like basically i create an app HelloWorld so what i want to do is have another app with the same code on the phone but under a new name while still keeping the original app so i would have HelloWorld HelloWorldTest when i just change the app_name the phone only keeps HelloWorldTest do i have to create a whole seperate projects if i want to do this im trying to keep it one -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Same audio sample rates for input and output from application to driver level
Hello, I have a question regarding the possibility of using MODE_IN_CALL to allow for a fixed rate of 8kHz for input and 8kHz for output. Now it seems that audioflinger converts everything to 44.1. I am curious if allowing 8kHz input/output from the actual application down through flinger and audiohardware to the codec driver. Basically, can you have sample rates changed for a stream and have that rate stay fixed through out Android to the Kernel? I am using ALSA for the glue between the kernel alsa driver and android if that helps Thanks, Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SmaliHook.java found on my hacked application.
Moto, Interesting. Did you obfuscate your application? Also, it looks like your code verifies the .apk signature - is that so? ... and the hackers added code to spoof it: the 0x40 in getPackageInfo() is PackageManager.GET_SIGNATURES, and the long string, is, I guess, is your original signature? -- Kostya 01.02.2011 23:41, Moto пишет: First, this is not a post to talk about how much pirating apps sucks etc... I just want to post what I found hackers using to unlock my application from using the Licensing Tools provided by Android. Anyone have any clues how to prevent this particular hack? Anyone familiar with this particular hack? Please find attached the recovered file found when I decompiled hacked version of my application. Thanks! -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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 Market question: Why there's no related applications shown for my app on the market?
On Tue, Feb 1, 2011 at 1:11 PM, TreKing treking...@gmail.com wrote: People that know the details behind how the related / similar feature of the Market works are not going to answer you. This is your best bet: http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher You got that mapped to a hot key, right? :) -- Greg Donald destiney.com | gregdonald.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] Re: Device idea
Guys even me and my frnds are interested in doing stuff like this But android porting involved much time and focus but then you will never get time untill you start up from something. On Wed, Feb 2, 2011 at 1:39 AM, Brill Pappin br...@pappin.ca wrote: Two basic stages. 1) build a device 2) write drivers for Android repeat 1-2 until bugs worked out. then you have sales and support etc. Building hardware is not difficult but it can be time consuming and expensive depending on how much you want to spend. If you can't build the hardware or software yourself, you are going to need a lot of people with time on their hands that want to help, or you are going to need to pay someone else to do it. There are a few out there, for example http://www.openmoko.com/freerunner.html I think I'd start at the Open Handset Alliance http://www.openhandsetalliance.com/ FYI - I've been thinking about it as well :) but its not something to take on lightly. - Brill Pappin On Feb 1, 10:08 am, BigEHokie emile...@gmail.com wrote: I have an idea for an Android based device that I think would/could corner a certain market that spends a good deal of money on gadgets/ equipment/etc. Does anyone know how you would go about getting involved in that sort of endeavor? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Market question: Why there's no related applications shown for my app on the market?
On Tue, Feb 1, 2011 at 2:58 PM, Greg Donald gdon...@gmail.com wrote: You got that mapped to a hot key, right? :) LOL - that and http://lmgtfy.com/ =D - 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] changing the name i guess?
On Tue, Feb 1, 2011 at 2:42 PM, kiros88 ghui...@gmail.com wrote: so what i want to do is have another app with the same code on the phone but under a new name while still keeping the original app so i would have Each app requires it's own package name. Look into Android Library Projects to share the bulk of the code. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] media codec manipulation -?
Hello, I am working on media streamer H263/ AAMR-NB for Android phones where i need an option for manipulation of video compression parameters ( quality and grayscale vs . color). Can someone suggest a solution implementable within Android SDK? I have done it before with FFMPEG/ Linux, but can I use FFMPEG on Android for camera capture? I am not sure if video4linux is available in Android version of kernel. Thanks, -V -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] changing the name i guess?
Change the package name Change the package name in androidManifest.xml Change all the imports respectively if you have any On Wed, Feb 2, 2011 at 2:36 AM, TreKing treking...@gmail.com wrote: On Tue, Feb 1, 2011 at 2:42 PM, kiros88 ghui...@gmail.com wrote: so what i want to do is have another app with the same code on the phone but under a new name while still keeping the original app so i would have Each app requires it's own package name. Look into Android Library Projects to share the bulk of the code. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Scheduling ideas
One thing I'm unsure of is how to schedule an alarm for a certain time, like 8am every day. All I can see is setting a repeat, at an interval of x milliseconds. Ok, so I can say one day's worth of milliseconds, but that's placing a lot of trust on the system clock? I can see that going wrong somehow... On Feb 1, 5:55 pm, Kostya Vasilyev kmans...@gmail.com wrote: 01.02.2011 20:35, Neilz пишет: Right, thanks. And will that stay on the device as long as the app is still installed? Yes. (And, I suppose, will it get removed if the app is uninstalled?) Believe so. -- Kostya On Feb 1, 5:25 pm, Kostya Vasilyevkmans...@gmail.com wrote: Right, alarms are not persistent. Implement a receiver for android.intent.action.BOOT_COMPLETED, and set the alarm again after the device reboots. -- Kostya 01.02.2011 20:22, Neilz пишет: Thanks... this seems to be what I'm after. However I just put together a simple repeat alarm, outputting a Toast every minute, which was fine. But it didn't work again after a phone restart... how can this be implemented? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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] Re: Scheduling ideas
Neil, You can set a non-repeating RTC or RTC_WAKEUP alarm at a fixed time, then when it fires, set the next one. Rinse, repeat :) -- Kostya 02.02.2011 0:22, Neilz пишет: One thing I'm unsure of is how to schedule an alarm for a certain time, like 8am every day. All I can see is setting a repeat, at an interval of x milliseconds. Ok, so I can say one day's worth of milliseconds, but that's placing a lot of trust on the system clock? I can see that going wrong somehow... On Feb 1, 5:55 pm, Kostya Vasilyevkmans...@gmail.com wrote: 01.02.2011 20:35, Neilz пишет: Right, thanks. And will that stay on the device as long as the app is still installed? Yes. (And, I suppose, will it get removed if the app is uninstalled?) Believe so. -- Kostya On Feb 1, 5:25 pm, Kostya Vasilyevkmans...@gmail.comwrote: Right, alarms are not persistent. Implement a receiver for android.intent.action.BOOT_COMPLETED, and set the alarm again after the device reboots. -- Kostya 01.02.2011 20:22, Neilz пишет: Thanks... this seems to be what I'm after. However I just put together a simple repeat alarm, outputting a Toast every minute, which was fine. But it didn't work again after a phone restart... how can this be implemented? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] InputMethodManager and it's active View
I would like to know if there is any way to determine and set what view is active to the InputMethodManger. I have a scenario where attempting to show the soft keyboard is always returning false. Asking for imm.isActive() returns true so some view is active... but I have not been able to determine which it is. The scenario I have is an AlertDialog containing a single EditText view. In my main activity, I click a button that launches the Dialog. I have an onFocusChangeListenter set on the EditText which checks when it receives focus and based on log messages it is receiving focus successfully when the dialog is displayed. However, I am running several checks inside if(hasFocus) and the all return false. Here are some of the tests I'm running during onFocusChange(View v, boolean hasFocus). imm is the InputMethodManager called with the usual convention of (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE). ((EditText)v).isInputMethodTarget() returns false imm.isActive(v) returns false imm.isActive() returns true, so some view is active for input... imm.showSoftInput(v, 0) does not show the view and returns false. imm.showSoftInput(mAlertDialog.getListView(), 0) also returns false, thinking possibly the ListView for the dialog was the view which was active, though it is not. I'm hoping someone might be able to steer me in the right direction. I HAVE been able to show the keyboard by getting the Window, then IBinder WindowToken and passing that to setSoftInputMode, but then it behaves erratically afterward. Thanks everyone, Jeremiah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scheduling ideas
Aha... good thinking! Thanks for the help again, Kostya :) On Feb 1, 9:26 pm, Kostya Vasilyev kmans...@gmail.com wrote: Neil, You can set a non-repeating RTC or RTC_WAKEUP alarm at a fixed time, then when it fires, set the next one. Rinse, repeat :) -- Kostya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Questions about Two Way Sync Using SyncAdapter and SyncService in android
All that stuff about duplicates looks a bit suspicious. I would try to uninstall all extra sync adapters. On Tue, Feb 1, 2011 at 10:56 AM, himanshu jain himanshu@gmail.comwrote: here is the log accord according to Plan A and Plan B when i have SampleSyncAdapater running on Device A-OS 2.2 01-31 21:02:06.105: VERBOSE/SyncManager(206): [SyncManager.java: 653:sendCheckAlarmsMessage()] sending MESSAGE_CHECK_ALARMS 01-31 21:02:06.145: DEBUG/SyncManager(206): [SyncManager.java: 607:scheduleSync()] scheduleSync: sync of Account {name=username, type=com.example.android.samplesync}, com.android.contacts is not allowed, dropping request 01-31 21:02:06.165: VERBOSE/SyncManager(206): [SyncStorageEngine.java: 374:reportChange()] reportChange 1 to: [android.content.SyncManager $7@313452f8, android.content.ContentResolver$1@314960c8] 01-31 21:02:06.175: VERBOSE/SyncManager(206): [SyncManager.java: 653:sendCheckAlarmsMessage()] sending MESSAGE_CHECK_ALARMS 01-31 21:02:06.235: VERBOSE/SyncManager(206): [SyncManager.java: 614:scheduleSync()] scheduleSync: delay 0, source 0, account Account {name=username, type=com.example.android.samplesync}, authority com.android.contacts, extras Bundle[{}] 01-31 21:02:06.235: VERBOSE/SyncManager(206): [SyncManager.java: 786:scheduleSyncOperation()] scheduleSyncOperation: dropping duplicate sync operation authority: com.android.contacts account: Account {name=username, type=com.example.android.samplesync} extras: [] syncSource: 0 when: 319845221 expedited: false 01-31 21:02:06.235: VERBOSE/SyncManager(206): [SyncStorageEngine.java: 374:reportChange()] reportChange 1 to: [android.content.SyncManager $7@313452f8, android.content.ContentResolver$1@314960c8] 01-31 21:02:06.255: VERBOSE/SyncManager(206): [SyncManager.java: 653:sendCheckAlarmsMessage()] sending MESSAGE_CHECK_ALARMS 01-31 21:02:06.325: VERBOSE/SyncManager(206): [SyncManager.java: 614:scheduleSync()] scheduleSync: delay 0, source 2, account Account {name=Backup Assistant, type=com.fusionone.account}, authority com.android.contacts, extras Bundle[{}] 01-31 21:02:06.335: VERBOSE/SyncManager(206): [SyncManager.java: 786:scheduleSyncOperation()] scheduleSyncOperation: dropping duplicate sync operation authority: com.android.contacts account: Account {name=Backup Assistant, type=com.fusionone.account} extras: [] syncSource: 2 when: 319845328 expedited: false 01-31 21:02:06.385: VERBOSE/SyncManager(206): [SyncManager.java: 614:scheduleSync()] scheduleSync: delay 0, source 2, account Account {name=username, type=com.example.android.samplesync}, authority com.android.contacts, extras Bundle[{}] 01-31 21:02:06.395: VERBOSE/SyncManager(206): [SyncManager.java: 786:scheduleSyncOperation()] scheduleSyncOperation: dropping duplicate sync operation authority: com.android.contacts account: Account {name=username, type=com.example.android.samplesync} extras: [] syncSource: 2 when: 319845375 expedited: false 01-31 21:02:06.425: VERBOSE/SyncManager(206): [SyncManager.java: 786:scheduleSyncOperation()] scheduleSyncOperation: dropping duplicate sync operation authority: com.android.contacts account: Account {name=username, type=com.example.android.samplesync} extras: [] syncSource: 4 when: 319845416 expedited: false 01-31 21:02:06.425: VERBOSE/SyncManager(206): [SyncManager.java: 1473:handleMessage()] handleSyncHandlerMessage: MESSAGE_CHECK_ALARMS 01-31 21:02:06.425: VERBOSE/SyncManager(206): [SyncManager.java: 1473:handleMessage()] handleSyncHandlerMessage: MESSAGE_CHECK_ALARMS 01-31 21:02:06.435: VERBOSE/SyncManager(206): [SyncManager.java: 1473:handleMessage()] handleSyncHandlerMessage: MESSAGE_CHECK_ALARMS On Jan 31, 6:00 pm, Dmitri Plotnikov dplotni...@google.com wrote: I cannot spot anything obviously wrong here. Here's what I would do in this situation: Plan A: Closely examine the logs - there might be something there already. Enable more logging and see if you can glean anything from it: adb shell setprop log.tag.SyncManager VERBOSE Plan B: I would put aside the sync adapter that you wrote, take SampleSyncAdapter, make sure it works on the device, and then start morphing it into what you need, making small incremental changes and retesting until it stops working. Then you know where you made a mistake. Plan C: I would get Android source and step through it in the debugger. SyncManager is a complicated class, so it will take you a few minutes to figure out. But in the end it's just Java. If you can write Java, you can read Java. I hope this helps, - Dmitri On Mon, Jan 31, 2011 at 5:19 PM, himanshu jain himanshu@gmail.com wrote: this is my manifest file manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.c99.SyncProviderDemo android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.GET_ACCOUNTS /
Re: [android-developers] SmaliHook.java found on my hacked application.
Hi Jostya, Yes, my app is obfuscated and the signature was my signature... It seemed like it doesn't matter if the application is obfuscated. It seems to be a simple hack that was fast! It only took a few hours after release of my application... Incredible... I guess I'm gonna have to get creative... -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SmaliHook.java found on my hacked application.
This looks like Anti-LVL http://androidcracking.blogspot.com/ Anti-LVL can work through obfuscation/reflection, but it's mostly just find/replace. Though it's automated for the kiddies. Extract the app and read the fingerprints.xml and make your interesting bits harder to find. -Kevin On Feb 1, 4:01 pm, Moto medicalsou...@gmail.com wrote: Hi Jostya, Yes, my app is obfuscated and the signature was my signature... It seemed like it doesn't matter if the application is obfuscated. It seems to be a simple hack that was fast! It only took a few hours after release of my application... Incredible... I guess I'm gonna have to get creative... -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Attempt to read preferences file without permission
I am pretty sure that it happened during normal use of 2.2.1 I uninstalled/installed my app several times since 2.2.1, also without problems. On 30 jan, 15:56, Kostya Vasilyev kmans...@gmail.com wrote: Lior, Do you know if the application was installed before or after he updated the firmware? That would tell if the2.2.1firmware messes up the files during the update process, or during normal use. -- Kostya 30.01.2011 17:25, Lior пишет: My user seem to have had the same symptom. He e-mailed me that he had to do a factory-reset to his phone due to other reasons, he re-installed the app from the market (something that didn't help before the reset), and now everything works as expected. On Jan 27, 8:49 pm, klwinkelklwin...@gmail.com wrote: I have exactly the same problem with my own developed app, on my own standard non-rootedSamsungGalaxyS with android2.2.1. this is my error message, when I do the Editor.commit(): E/ApplicationContext(19228): Couldn't rename file /dbdata/databases/ klwinkel.huiswerk/shared_prefs/klwinkel.huiswerk_preferences.xml to backup file /dbdata/databases/klwinkel.huiswerk/shared_prefs/ klwinkel.huiswerk_preferences.xml.bak I did some investigation, with a ps and a ls -l on the xml prefs file, with the following result: ps: USER PID PPID VSIZE RSS WCHAN PC NAME app_17 19411 2366 223648 21104 S klwinkel.huiswerk ls -l -- -rw-rw app_107 app_107 292 2011-01-22 20:13 klwinkel.huiswerk_preferences.xml So, this is the proof, that the uid of the prefs file(app_107) and the uid of the app(app_17) are different. The prefs file is from a few days ago, probably I was developing at that time, maybe I removed the app from the phone, I don''t remember. It possibly is a bug in theSamsungandroid2.2.1, which does not always delete prefs file when de-installing an app. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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] Intent to launch the Application Settings screen for an application
Using ACTION_MANAGE_APPLICATION_SETTINGS launches the parent of the screen I desire. It launches the Manage Applications screen that lists my app. Selecting my app from this screen launches the Application Info screen for my app. None of the android.provider.Settings actions seem to fit the bill. Is it possible to launch this screen by intent? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Freeze with RGBA8 OpenGL ES 2.0
I have fixed my problem, I had simply forgotten to set the pixelFormat of the surface. I just call this in my surface class, before calling setEGLConfigChooser : this.getHolder().setFormat(PixelFormat.TRANSLUCENT); I haven't been able to reproduce the problem since then. Rémi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] InputMethodManager and it's active View
On Tue, Feb 1, 2011 at 3:43 PM, Jeremiah Sellars sylus.mcf...@gmail.comwrote: The scenario I have is an AlertDialog containing a single EditText view. In my main activity, I click a button that launches the Dialog. I have something similar. The soft keyboard does not come up immediately, but does come up once you tap it. Do you need it to be immediately as the dialog is shown? If that's the case, I would try removing then re-requesting focus on the EditText. - 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] Question about bug reports
Hi I haven't released an app to the store yet. Before doing so, I wanted to know, how is this working with users submitting bug reports? Is there some automatic report getting sent if the app let's say - crashes? Should I enable or disable logging with 'Log.d before releasing? 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] Question about bug reports
Hi I haven't released an app to the store yet. Before doing so, I wanted to know, how is this working with users submitting bug reports? In general there's *statistically* noone doing so. You will get 1 star in market + some useless comment like crashes, lame, force closes, please fix. automatic report getting sent if the app let's say - crashes? On Froyo and up. Check this: http://code.google.com/p/acra/ Should I enable or disable logging with 'Log.d before releasing? Thanks Debug logs are stripped at runtime. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: InputMethodManager and it's active View
I realized I did not end up including that. Yes, it does come up as expected when tapped. I've actually been looking through the TextView.java code to see if I can implement what is happening when it is touched/clicked... but that's getting a bit over my head. I will try that, but part of the problem, is when to call clearFocus() and requestFocus(). I've tried that after the dialog is shown, but it doesn't work. I'm pretty close to extending Dialog and trying to give the view focus during it's own onStart() but that seems completely nuts to go through all that. I'm really just wondering if the InputMethodManager is just lagging behind on noticing the focus change... but since I don't know how it works... I certainly don't have to have it work this way... it was just something I thought would be much easier than it's become and have gotten wrapped up in finding a solution and wanting to understand how the InputMethodManager is tracking the active view. On Feb 1, 2:56 pm, TreKing treking...@gmail.com wrote: On Tue, Feb 1, 2011 at 3:43 PM, Jeremiah Sellars sylus.mcf...@gmail.comwrote: The scenario I have is an AlertDialog containing a single EditText view. In my main activity, I click a button that launches the Dialog. I have something similar. The soft keyboard does not come up immediately, but does come up once you tap it. Do you need it to be immediately as the dialog is shown? If that's the case, I would try removing then re-requesting focus on the EditText. - 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] Requirement for SAP Security Consultant in
Hi, Kindly have a look at the requirement below and let me know if you have any consultant for this position. *Title: SAP Security Consultant * *Location*: *Los Angeles, CA * *Duration: 3+ Months Contract* ** *Rate: $60/hr on Corp-Corp* * * *Job Description: * *Requirements* · Minimum 5 years hands-on experience in all aspects of SAP Security, specifically in R/3 and BW. · Must have extensive experience in configuring, implementing and maintaining security for CUA, Structural Authorizations and Analysis authorizations. · Must have experience in configuring and rebuilding security roles based on Segregation of Duties (SOD) in compliance with SOX. · Must have experience in creating authorizations and roles in Profile Generator (PFCG) and troubleshooting using su53s. Creating new Roles, · Modifying existing Roles, User Administration. Define Single Roles, Composite roles and Derived roles. · Must have experience in mass changes in security *All the skills should reflect on the resume.* ** *Please send resumes to pra...@sirisol.com* ** Thanks Regards, *Prasad* *Sr. Technical Recruiter* *Siri Solutions International INC* 2217 Prior Rd, Wilmington, DE-19809 PH: 302-295-3356 Fax: 302-380-3305 *pra...@sirisol.com* *www.sirisol.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] Re: InputMethodManager and it's active View
On Tue, Feb 1, 2011 at 5:10 PM, Jeremiah Sellars sylus.mcf...@gmail.comwrote: I will try that, but part of the problem, is when to call clearFocus() and requestFocus(). I've tried that after the dialog is shown, but it doesn't work. Try requesting focus on something else first, then the EditText. I certainly don't have to have it work this way... it was just something I thought would be much easier than it's become and have gotten wrapped up in finding a solution and wanting to understand how the InputMethodManager is tracking the active view. I know that feeling. You stupid machine, you will not defeat me! =P Good luck. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Question about bug reports
On Tue, Feb 1, 2011 at 5:09 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: automatic report getting sent if the app let's say - crashes? On Froyo and up. Check this: http://code.google.com/p/acra/ Just to clarify, there is no automatic report getting sent - the user has to send a report. As Marcin noted, this is very rare unless it's a major issue. And even when they do send reports, the user will give you little or no information and the report is nothing but a stack trace, so you are more often just staring at the computer scratching your head trying to figure out why Android couldn't find your main activity, for example. Besides that, the interface for the bug reports is so poorly conceived, trying to use and make sense of the damn thing is a debugging exercise in and of itself. Why the user comments are not clearly attached to the stack trace that it's for is beyond me. It was nice that they put it together and is better than nothing, but like many Google projects, it feels half-assed and provided in a as is / good enough state. Someone's 20% time project, probably. Do yourself a favor and implement your own solution and give users a clear way to report issues in the app itself. Your ratings will thank you. +1 for Acra, it's an awesome project. Moreover I've add my own logging that I can include with my bug reports so I can actually figure out what the hell is happening. At this point any reports that come in through the Market is immediately marked as Old. - 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: Emulator loses network connection issue
I have not been able to reproduce the issue. For the record, how exactly does the error occurs. I.e.: Does the emulated system think that it has no longer connectivity? I.e. no more 3G icon in the status bar, and the browser complains with a dialog if you try to use it. If not, what kind of error is reported by the browser when trying to access a site. If the problem limited to DNS or not (i.e. can the browser access a site by only using its IP address?) Can you connect to the emulator console with telnet localhost 5554 or even adb shell when this happens? Which exact platform are your running the emulator on? Thanks in advance On Mon, Jan 31, 2011 at 7:40 PM, H m...@howardb.com wrote: My desktop doesn't have wireless or any other network other than the one ethernet cable. I also run rrdtool on my pc so can confirm that the ethernet connection is constantly active and online. So although Varun's issue may have been triggered by the wireless swapping over, I think there is still a genuine underlying issue. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: MediaPlayer callbacks not firing after calling prepareAsync() from a Service
The code is at https://code.google.com/p/npr-android-app/source/checkout On Tue, Feb 1, 2011 at 5:31 AM, John Scott johnosc...@gmail.com wrote: Where is the source for the NPR code you mentioned ? On Tue, Feb 1, 2011 at 7:45 PM, Doug beafd...@gmail.com wrote: On Jan 31, 6:58 pm, Jim Benton j...@autonomousmachine.com wrote: Any thoughts on what I could be doing wrong? I use prepareAsync and count on the callback. It works every time or my users would be very upset. The only question I have for you is this: why the synchronized block in the init code? Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, John Scott -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: MediaPlayer callbacks not firing after calling prepareAsync() from a Service
I don't really have a reason for synchronized being there; it was in the original code and I left it intact. I've since thrown all that code away and started from scratch. I can get the callbacks to work in a new project, so I'm going to chalk it up to some complication lurking beneath a bunch of code I pulled in from the NPR app and hacked apart. Thanks for the help, I'll post back again if I learn anything further. Jim On Tue, Feb 1, 2011 at 2:45 AM, Doug beafd...@gmail.com wrote: On Jan 31, 6:58 pm, Jim Benton j...@autonomousmachine.com wrote: Any thoughts on what I could be doing wrong? I use prepareAsync and count on the callback. It works every time or my users would be very upset. The only question I have for you is this: why the synchronized block in the init code? Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth getting Not able to register SDP record - why?
All of a sudden my little Bluetooth app is getting an IOException: Not able to register SDP record for name name is the name I passed to: tmp = mAdapter.listenUsingRfcommWithServiceRecord(NAME, MY_UUID); This code has been working fine for several days. Now it gets that exception EVERY time. It doesn't matter if the bluetooth device is on or off. No code changes. After rebooting my phone, it started working again. So, it seems that I must not be calling a close() (or somesuch). Does that exception somehow indicate what I'm doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Market question: Why there's no related applications shown for my app on the market?
I tried to write a support email to Google then I received a reply told me that the related apps is depends on some factors. It's useless for me because I never changes my app's description or something like that. On Wed, Feb 2, 2011 at 5:04 AM, TreKing treking...@gmail.com wrote: On Tue, Feb 1, 2011 at 2:58 PM, Greg Donald gdon...@gmail.com wrote: You got that mapped to a hot key, right? :) LOL - that and http://lmgtfy.com/ =D - 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Motorola CLIQ
To My fellow developers: I am seeking some help. I have an app on the market which to my knowledge works fine on most devices. Without going into details, the app simply displays a Menu with 6 buttons. The user touches abutton and the respective function is invoked. Simple. It works. For 3 days now I have worked ith a user who has a Motorola CLIQ. On his device, the Menu does not appear. This is very puzzling to e since the very first thing the app does is display the menu screen, nothing else. The help I am seeking is: 1. Has anyone had this experience with this device. 2. Does anyone have access to such a device and would entertain my emailing them a copy of the app to be able to assist me in determining what is going on with this device. Any assistance will be greatly appreciated. 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] Force Close Question
Hello Group, How can I deal with when the user hits the home button when in my app and then doesnt go back to it for a while and then they hold home button to go back to my app and then the force close appears since all the memory has been freed because how the OS is designed. Is there a way instead of resuming the app that has freed memory and will break instantly...just launch it brand new? Is there a setting in the Android Manifest to force start brand new if freed memory? Thanks group. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Emulator loses network connection issue
My 2.1 emulator never starts up with 3g connectivity working. To get it working I have to turn Airoplane Mode on and then quickly close the emulator, open again and typically see that 3g connectivity still not working, so repeat several times until it finally works. PAINFUL! Recently, though, while running soak tests (running an App in emulator overnight or even for several days) I now see the emulator for 2.1 and 2.2 will lose connectivity after say 8-12hours. Only way to reestablish connectivity is to kill the emulator and go through above process again. Obviously that doesn't help with soak testing! On Feb 2, 10:44 am, David Turner di...@android.com wrote: I have not been able to reproduce the issue. For the record, how exactly does the error occurs. I.e.: Does the emulated system think that it has no longer connectivity? I.e. no more 3G icon in the status bar, and the browser complains with a dialog if you try to use it. If not, what kind of error is reported by the browser when trying to access a site. If the problem limited to DNS or not (i.e. can the browser access a site by only using its IP address?) Can you connect to the emulator console with telnet localhost 5554 or even adb shell when this happens? Which exact platform are your running the emulator on? Thanks in advance On Mon, Jan 31, 2011 at 7:40 PM, H m...@howardb.com wrote: My desktop doesn't have wireless or any other network other than the one ethernet cable. I also run rrdtool on my pc so can confirm that the ethernet connection is constantly active and online. So although Varun's issue may have been triggered by the wireless swapping over, I think there is still a genuine underlying issue. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Force Close Question
Something else is causing your Force Close. Read the exception report in LogCat and dig into the actual cause. Read up on the Activity lifecycle, in particular the bubble that reads Other applications need memory: http://developer.android.com/reference/android/app/Activity.html The Android OS won't even try to return to your app if it reaped it for memory. It will just restart it. There is no way that it reaps some part of the app state irretrievably, but leaves the process going. If the system is low on memory, your app may receive an *opportunity* to shed some of its state data at the app's discretion. If your app does honor this *request*, then the system may have regained enough memory to allow the user to run some other heavy task in the foreground. The current activity also got an earlier courtesy notice when your activity was no longer active, giving an opportunity to save the state away. If your app does not honor these requests, or cannot free up enough memory, the then the system reserves the right to completely kill the whole process as a whole. If that happens, your next startup will surely be as a brand new process, and your activity will be handed whatever you chose to save away earlier. You *can* flag your app to start at the initial activity every time the app is suspended and resumed, but that is completely separate from your impression that Android frees up memory without any notice or control over its own state. On Feb 1, 7:18 pm, Scott Deutsch surger...@gmail.com wrote: Hello Group, How can I deal with when the user hits the home button when in my app and then doesnt go back to it for a while and then they hold home button to go back to my app and then the force close appears since all the memory has been freed because how the OS is designed. Is there a way instead of resuming the app that has freed memory and will break instantly...just launch it brand new? Is there a setting in the Android Manifest to force start brand new if freed memory? Thanks group. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Download file from server
I am creating an app that requires a file be downloaded from my server every day. I am creating the XML file nightly, but is there an easy way to have java (Android) go and grab the file? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Force Close Question
Thanks for your replyI was looking at that article before. Now...my app has lots of activities. The first activity loads up global values and so on and shows the intro screen. Now, I am thinking that some how it is freeing up the global values and that is what is killing the app. Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Force Close Question
Hello Group, Ok, so I debugged it and my thoughts were correct. It is releasing memory from the globals class. How can I tell it not to release memory from the globals class? Everything in the globals class is static. Oh, the globals class is not an activity. So...if anything in th global class dies...my program dies since different activities relys on different things and each activity can change something in the global so I can't just re-init everything. What is the best way to handle this? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Force Close Question
On Tue, Feb 1, 2011 at 8:16 PM, Scott Deutsch surger...@gmail.com wrote: Ok, so I debugged it and my thoughts were correct. It is releasing memory from the globals class. More accurately, it is terminating your process. How can I tell it not to release memory from the globals class? You don't. So...if anything in th global class dies...my program dies since different activities relys on different things and each activity can change something in the global so I can't just re-init everything. Use a database. Or a file. Your application process will not keep running forever; anything that needs to persist needs to be persisted. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Atlanta: http://bignerdranch.com/classes/android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Force Close Question
Thats what I fearedok I will redesign it to make it work. Thanks a bunch. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 new android apps considering that the app will also be developed for other phones
Hi, I want to know what kind of general strategy i would have to follow while developing android apps in order to easily make my app available to other phones .. in other words easily transferable. For example, i would like to know the basic strategy i need to follow to make an app available to an iphone OS,blackberry OS, Windows and Nokia. It would be nice to develop an app that translates existing apps from one phone to another despite the differences in libraries, languages and security... not to mention hardware.. thats another s Just want to make sure that i am starting my project right Thank you, Christian Chabtini Software Engineer EMIDA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can i use a BroadcastReceiver or Service to retrieve an Incoming call
I would like to fist detect an incoming call with all the info and then retrieve the audio at will For instance, if the user received a call, i would like to obtain the phone number and a timestamp then i would get the audio and do some parsing in order to achieve a speech-to-text system. I would like to accomplish that while the user is on the phone. I need the service or BroadcastReceiver to be active while the user is on the phone and sends the audio back to the server... I read somewhere that i should do this by creating a service in the backgound? is that possible to do? or BroadcastReceiver is the way to go ? Are any of my suggested approaches would work for such project ? I am still new to ANDROID so please provide as many details as possible. Your Help is greatly appreciated. Thank you, Christian Chabtini Software Engineer EMIDA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create an app as a service and make it invisible to the user?
Hi, I would like to be able to create a service that runs in the background. The user should not be able to detect this app. The service should be listening for specific events and sends info to a server accordingly. How would i be able to accomplish that and make the service completely invisible ? Thank you, Christian Chabtini Software Engineer EMIDA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Requirement for SAP Security Consultant in
Please, please, please... Remove this person's gmail account for spamming. On 2 фев, 01:17, prasad sirisol prasad.siri...@gmail.com wrote: Hi, Kindly have a look at the requirement below and let me know if you have any consultant for this position. *Title: SAP Security Consultant * *Location*: *Los Angeles, CA * *Duration: 3+ Months Contract* ** *Rate: $60/hr on Corp-Corp* * * *Job Description: * *Requirements* · Minimum 5 years hands-on experience in all aspects of SAP Security, specifically in R/3 and BW. · Must have extensive experience in configuring, implementing and maintaining security for CUA, Structural Authorizations and Analysis authorizations. · Must have experience in configuring and rebuilding security roles based on Segregation of Duties (SOD) in compliance with SOX. · Must have experience in creating authorizations and roles in Profile Generator (PFCG) and troubleshooting using su53s. Creating new Roles, · Modifying existing Roles, User Administration. Define Single Roles, Composite roles and Derived roles. · Must have experience in mass changes in security *All the skills should reflect on the resume.* ** *Please send resumes to pra...@sirisol.com* ** Thanks Regards, *Prasad* *Sr. Technical Recruiter* *Siri Solutions International INC* 2217 Prior Rd, Wilmington, DE-19809 PH: 302-295-3356 Fax: 302-380-3305 *pra...@sirisol.com* *www.sirisol.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] How to create an app as a service and make it invisible to the user?
On Tue, Feb 1, 2011 at 8:39 PM, Christian Chabtini cchapt...@gmail.com wrote: I would like to be able to create a service that runs in the background. The user should not be able to detect this app. Fortunately, this is not possible from the SDK. At minimum, the user will see it in the applications list, the manage services Settings screen, and via any third party task monitors. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Atlanta: http://bignerdranch.com/classes/android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en