[android-developers]

2010-08-01 Thread saurabh sinha
hey Happy Friendship day to all android beginner -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers]

2010-08-01 Thread Edmund Higgins
And to you too! On Jul 31, 2010 11:19 PM, saurabh sinha saurs...@gmail.com wrote: hey Happy Friendship day to all android beginner -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: How to cite/reference free images

2010-08-01 Thread Zsolt Vasvari
I see a License section there. See what the license says and follow the requirements. Quite simple. On Aug 1, 7:22 am, AUandroid thevk...@gmail.com wrote: thanks for the tips. As I told you its my first time publishing a app. Can anyone please have a look at this image and let me know what I

Re: [android-developers] Re: Inner ListView not respecting layout gravity or width

2010-08-01 Thread Mark Murphy
On Sat, Jul 31, 2010 at 4:02 AM, Zsolt Vasvari zvasv...@gmail.com wrote: JOIN the header and detail tables in single query. Or use an ExpandableListView. Or something. ListViews nested in ListViews is unlikely to work. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Android OS localization

2010-08-01 Thread Mark Murphy
On Fri, Jul 30, 2010 at 4:11 AM, hmdmph hmd...@gmail.com wrote: Hi , I want to localize android os with my local (si_LK) Sri Lanka , How cant i work as contributer for localization.i have downloaded os source and recompile with ubuntu. I want to know how to do this. Please search the archives

Re: [android-developers] BroadcastReceiver::onReceive Question

2010-08-01 Thread Mark Murphy
On Thu, Jul 29, 2010 at 6:22 PM, Johnny jianing...@gmail.com wrote: What I can not figure out is how to create a file with the 'Context' variable passed in from the 'onReceive'. I know I can create a private file with this 'Context' variable but I just don't know how to use this 'Context' to

Re: [android-developers] Disabling Idle mode

2010-08-01 Thread Mark Murphy
On Fri, Jul 30, 2010 at 4:11 AM, Yannick Plenevaux yplenevaux.geoli...@gmail.com wrote: I am currently searching to set out an issue I encounter. I am developing an Application on Android which have to download a lot of data and then be unused for a while. During the download, the device is

Re: [android-developers] private file last modified date

2010-08-01 Thread Mark Murphy
On Fri, Jul 30, 2010 at 9:26 AM, Dson jessd...@gmail.com wrote: Hi Guys,  I am trying to get the last modified date of an internal file and it always returns me 0 although I could read the file properly. Can you please let me know if I am doing anything wrong... Creating a file...

Re: [android-developers] Installation

2010-08-01 Thread Filip Havlicek
Hi Muhammad, I think you have downloader a Java EE version of Eclipse, although you need Eclipse Classic to develop applications for Android (at least I am using Eclipse Classic just fine for that purpose). Best regards, Filip Havlicek 2010/7/31 Muhammad bilal_hobn...@yahoo.com Dear ALL,

[android-developers] Occasional opengl texture corruption.. sometimes works, sometimes doesn't

2010-08-01 Thread Jason Polites
Hi all, I'm having a pickle of a problem with some fairly simple opengl texture mapping. I have a situation where I want to tile a texture across a surface larger than the texture bitmap.. pretty standard stuff. I have a simple triangle grid that I use to setup the vertices etc (code pasted

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread sblantipodi
Hi king, yes I do it since I'm a mercenary, I develop for money, and I develop on the platform that people like. The discussions about Java hasn't got any sense to me... Android ISN'T Java, it has no rights to be called java and if you not agree with it you should learn some basic java guidelines

[android-developers] Re: Android Market Licensing: Now Available!

2010-08-01 Thread sblantipodi
I will bump that thread http://groups.google.com/group/android-developers/browse_thread/thread/97e2ba40f258f21b until I will get a reply. Thanks :) On Jul 27, 7:55 pm, Trevor Johns trevorjo...@google.com wrote: Android fans, For those of you who haven't already heard through our blog, we've

[android-developers] Re: LVL returns always LICENSED...

2010-08-01 Thread sblantipodi
Bump! On Aug 1, 2:20 am, sblantipodi perini.dav...@dpsoftware.org wrote: Hi, I have built in the Sample code from LVL and putted it into my main activity. I haven't understood why it always returns LICENSED also if I setted UNlicensed from my developer console. this is the adb logcat

[android-developers] Re: onCreate, onStop..... super.onCreate, super.onStop... called before code or after?

2010-08-01 Thread Brian
I didn't really get your question, but if your asking whether to place the super.onCreate(); before or after the onCreate method, it's suppose to go at the beginning. I'm pretty sure by the rules of Java, the super (aka it's constructor) will need to be executed first before any other code. Hope

[android-developers] Re: Application crashes on Samgsung Moment

2010-08-01 Thread Brian
If it's just one customer, I don't think you should worry about it; it might just be his/her phone. On Jul 28, 2:50 pm, singhk 1singhkel...@gmail.com wrote: Hi All, Has anyone had any problems with their applications crashing on the Samsung Moment? I have a customer who is reporting that my

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 4:05 AM, sblantipodi perini.dav...@dpsoftware.org wrote: Android ISN'T Java, it has no rights to be called java and if you not agree with it you should learn some basic java guidelines and understand what is java. Android uses Java source code and Java build tools

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Victoria Busse
Update, just found a mistake within the ViewStub declaration as I forgot to specify a layout, here is the updated code because the error is still there :(( If someone knows what I am doing wrong please help me because after finding out that I forgot the layout *I thought it would work *but

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Kostya Vasilyev
Logcat? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.08.2010 12:32 пользователь Victoria Busse victoriasarabu...@gmail.com написал: Update, just found a mistake within the ViewStub declaration as I forgot to specify a layout, here is the updated code because the error is still there

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Victoria Busse
Here is the Logcat: 08-01 08:17:11.984: ERROR/AndroidRuntime(223): Uncaught handler: thread main exiting due to uncaught exception 08-01 08:17:11.994: ERROR/AndroidRuntime(223): java.lang.RuntimeException: Unable to start activity

Re: [android-developers] Re: onCreate, onStop..... super.onCreate, super.onStop... called before code or after?

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 4:15 AM, Brian aerodr...@gmail.com wrote: I didn't really get your question, but if your asking whether to place the super.onCreate(); before or after the onCreate method, it's suppose to go at the beginning. I'm pretty sure by the rules of Java, the super (aka it's

[android-developers] Re: LVL returns always LICENSED...

2010-08-01 Thread sblantipodi
No one else with this problem? On Aug 1, 2:20 am, sblantipodi perini.dav...@dpsoftware.org wrote: Hi, I have built in the Sample code from LVL and putted it into my main activity. I haven't understood why it always returns LICENSED also if I setted UNlicensed from my developer console.

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Victoria Busse
Okay found the problem, I simply forgot to define the button's View btnExposure = (ImageButton) findViewById(R.id.button_exposure); So this - quite simple - problem's solved, but now I got at new NullPointerException at com.mobilevideoeditor.moved.EditorView$1.onClick(EditorView.java:54), which

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread { Devdroid }
Android ISN'T Java, it has no rights to be called java and if you not agree with it you should learn some basic java guidelines and understand what is java. Please stop whinning. If you do not like Android just drop it. Simple as that.Go develop for anything else and stay happy with

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Kostya Vasilyev
Victoria, Judging by logcat, it looks like stub variable, the result of calling findViewById(R.id.stub_exposure) is null. You should check this in the debugger. -- Kostya 01.08.2010 13:46, Victoria Busse пишет: Okay found the problem, I simply forgot to define the button's View

Re: [android-developers] Installation

2010-08-01 Thread { Devdroid }
On 31 July 2010 22:18, Muhammad bilal_hobn...@yahoo.com wrote: i have installed eclipse-jee-helios-win32-x86_64 .but i have not found Android Plug in. so can anybody tell which version of Eclipse i need to start Android Development Environment? This is all you need to read to get it all set

Re: [android-developers] how to detect if a phone is running HTC sense UI

2010-08-01 Thread { Devdroid }
On 1 August 2010 07:32, Kai snowst...@gmail.com wrote: Hi, I need to detect if a phone is running HTC sense UI. is there a way to do it? Maybe just get list of installed packages and check if you sense is there? Still, one can have it installed but not use it so this is not the best solution.

Re: [android-developers] how to detect if a phone is running HTC sense UI

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 6:09 AM, { Devdroid } webnet.andr...@gmail.com wrote: No you can't. Sense can be uninstalled. I am not aware that Sense can be uninstalled, since it is in firmware. You can switch the home screen back to classic Android on some Sense models, though. -- Mark Murphy (a

Re: [android-developers] Two controls on a line?

2010-08-01 Thread { Devdroid }
So far I've only done samples with a LinearView and perhaps getting over confident I tried creating a RelativeLayout. Not only did it not work, the screen didn't show any controls! What about simple: LinearView (orientation: vertical) --- LinearView --- --- TextEdit --- --- TextEdit ---

Re: [android-developers] how to detect if a phone is running HTC sense UI

2010-08-01 Thread { Devdroid }
Mark Murphy wrote on 2010-08-01 12:10: On Sun, Aug 1, 2010 at 6:09 AM, { Devdroid }webnet.andr...@gmail.com wrote: No you can't. Sense can be uninstalled. I am not aware that Sense can be uninstalled, since it is in firmware. You can't remove it if phone is not rooted as you got no write

[android-developers] Google Maps - MapView - draw a nice flight route between 2 points

2010-08-01 Thread oriharel
Hi, I wonder, how can I draw a nice flight route between 2 points on a google map's MapView? look at this: http://maps.forum.nu/gm_flight_path.html this is exactly what I need. thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] how to detect if a phone is running HTC sense UI

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 6:20 AM, { Devdroid } webnet.andr...@gmail.com wrote: You can't remove it if phone is not rooted as you got no write access to /system, true, but once you root your device you can wipe sense packages. Ah, true, wasn't thinking of rooting. Sorry! I believe you could do

[android-developers] Re: LVL returns always LICENSED...

2010-08-01 Thread sblantipodi
It's strange, It always return LICENSED also if I log into different GMAIL account into the account and sync in the emulator. - I deleted AVD, - recreated a new one, - logged into the emulator with a gmail account with no rights, - setted NOT LICENSED form my developer console, - installed the

[android-developers] openDatabase() fails on locked database

2010-08-01 Thread sasq
I always thought that locks would only block actual operations on a database, but in Android it seems that you can't even open a database with an exclusive lock; E/Database( 596): CREATE TABLE android_metadata failed E/Database( 596): Failed to setLocale() when constructing, closing the

[android-developers] LVL returns LICENSED with anonymous accounts...

2010-08-01 Thread sblantipodi
I opened a similar thread recently but I doesn't let me enter any new post on it so I opened a new one. I'm having problem with LVL, I'm using the MainActivity.java from the LVL sample. When I call the check() method from LVL it always returns LICENSED. The strange things is that with my

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread sblantipodi
I'm sorry, I don't want to irritate no one, but I have different thinking on the topic. To say that something is Java or Java Powered you need to pay and pass intensive test. Google hasn't payed nothing to Sun, nor Oracle and neither passed any JCP test so you can't call it java. Why Google

[android-developers] Re: Two controls on a line?

2010-08-01 Thread Jez
But I want two controls on a line and that doesn't do it. On Aug 1, 11:15 am, { Devdroid } webnet.andr...@gmail.com wrote: So far I've only done samples with a LinearView and perhaps getting over confident I tried creating a RelativeLayout. Not only did it not work, the screen didn't show

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Kostya Vasilyev
You are confusing Java the language and platforms that use Java. There are in fact serveral platforms where Java is used - J2ME, Servlets, Java Beans (and more). These platforms have one thing in common - applications are written in Java the language. But other than that, they have little on

[android-developers] Simulating an actual keyboard.

2010-08-01 Thread Ram
I wanted to simulate a real keyboard in android using IME. How do i simulate Ctrl+C, Ctrl+V, Ctrl+X or something like Alt+.. Assuming i am launching the IME on the keypress of a LinearLayout. I would like to Copy some text in the linearlayout upon pressing Ctrl+C (Ctrl would be a new key in

[android-developers] Re: Two controls on a line?

2010-08-01 Thread Jez
I think I've just figured it out. I think the form I was working on was screwed. I just created a new one with a relative layout and it worked. My mistake. Now I just need to find a drop down control as I've realised I need one. On Aug 1, 12:08 pm, Jez jeremyluk...@googlemail.com wrote: But I

Re: [android-developers] Re: Two controls on a line?

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 7:30 AM, Jez jeremyluk...@googlemail.com wrote: Now I just need to find a drop down control as I've realised I need one. android.widget.Spinner -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |

[android-developers] Re: double tap zoom on Google maps

2010-08-01 Thread Bram van Driel
Hi Zeeshan, Maybe you can study this implementation of a MapActivity and OnGestureDetector: http://blog.js-development.com/2009/12/mapview-doesnt-fire-onlongclick-event.html Kind regards, Bram van Driel On 7 jul, 17:23, Michael MacDonald googlec...@antlersoft.com wrote: Maybe the problem is

Re: [android-developers] Re: Two controls on a line?

2010-08-01 Thread { Devdroid }
On 1 August 2010 13:08, Jez jeremyluk...@googlemail.com wrote: But I want two controls on a line and that doesn't do it. It does. Second LinearView is horizontal for that exact purpose so both TextEdits are next to each other. It may however look like it is not if you got long text there (or

Re: [android-developers] how to detect if a phone is running HTC sense UI

2010-08-01 Thread { Devdroid }
I saw reference recently that suggested this did not work everywhere. I'm was thinking maybe Sense 2 (the current generation) vs. the original Sense. But it works on a HTC Hero (just tried it), so that's clearly not it. That's why I do not bother myself to detect sense but rahter allow users

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-01 Thread sblantipodi
Thanks for your reply, very appreciated. I'm hanging there... Since google recommends obfuscation, why don't ask it to release a guide on how to obfuscate apk? On Aug 1, 7:27 am, Miguel Morales therevolti...@gmail.com wrote: Looks like that's defined in: ant/ant_rules_r2.xml and

Re: [android-developers] everything in gen folder deleted

2010-08-01 Thread { Devdroid }
On 30 July 2010 17:06, Mer meredit...@gmail.com wrote: Is there any way I can regenerate these files without having to copy everything into a new project? I did not delete these files, is there a reason they disappeared? gen project is as name indicates generated by eclipse and you shall

Re: [android-developers] Multiple concurrent versions of same app, filtered by minSdkVersion?

2010-08-01 Thread { Devdroid }
I have an app on Android Market right now with a minSdkVersion corresponding to Android 1.6. I'd like to make an update that is only visible to users of Android 2.2 and higher (there is a good reason for this, which I will explain below). So I have two questions: You shall make two separate

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Victoria Busse
mhmmm, I tried try{ btnExposure.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { ViewStub stub = (ViewStub) findViewById(R.id.stub_exposure); importStub = stub.inflate(); } });}catch (Exception e){

Re: [android-developers] Multiple concurrent versions of same app, filtered by minSdkVersion?

2010-08-01 Thread { Devdroid }
servers at first-run. However, this means that I must maintain external infrastructure, Regular vhost shall do + some code to fetch data over HTTP. Nothing more is required unless you want additional server logic. and it's also a bad experience for users who must download the app, then start

[android-developers] Re: Multiple concurrent versions of same app, filtered by minSdkVersion?

2010-08-01 Thread RichardC
Or leave minSdkVersion where it is and use reflection to add features from 2.2, testing at runtine obviously. More info here: http://developer.android.com/resources/articles/backward-compatibility.html On Aug 1, 1:12 pm, { Devdroid } webnet.andr...@gmail.com wrote: I have an app on Android

Re: [android-developers] Programmatically install free applications in android market

2010-08-01 Thread { Devdroid }
On 29 July 2010 23:13, tak tatsuya@gmail.com wrote: I'm sure that you all have already known AppBrain's Fast Web Installer which is able to programmatically install free applications in android market to the device. How could it be possible ? Anyone knows how ? or hints ? Not exactly

[android-developers] Re: LVL returns always LICENSED...

2010-08-01 Thread RichardC
Which license policy are you using? ServerManagedPolicy caches the result so you might not see what you expect (you will be getting the cached result). For testing purposes try using StrictPolicy but keep an eye on the info into extras for number of license checks remaining. On Aug 1, 9:46 am,

Re: [android-developers] Problem

2010-08-01 Thread { Devdroid }
On 30 July 2010 11:49, prateek tuli censor...@yahoo.co.in wrote: Hi, I want to create an application in android which at runtime calls an xml file from some path of the system.And make that contents of the xml file run in the same application.Could i get a feasible code because at runtime the

Re: [android-developers] Re: Adding custom column to contacts

2010-08-01 Thread { Devdroid }
On 31 July 2010 17:21, WindowsNT windows...@gmail.com wrote: Noone yet knows ? I wonder who had the idea to use sql stuff in contacts with URIs... You want to create custom collumn and put your own data in system contacts database? I doubt you can in any clean way (other ways would require

[android-developers] Re: LVL returns LICENSED with anonymous accounts...

2010-08-01 Thread sblantipodi
no one noticed the same problem using LVL? should I ask directly to google? Is this a bug with my account? On Aug 1, 12:46 pm, sblantipodi perini.dav...@dpsoftware.org wrote: I opened a similar thread recently but I doesn't let me enter any new post on it so I opened a new one. I'm having

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Victoria Busse
Okay I got the Source of the error: the try and catch returned that the Null Pointer Exception derives from this part as you already suspected: ViewStub stub = (ViewStub) findViewById(R.id.stub_exposure); importStub = stub.inflate(); But I don't understand why it should be null as I

Re: [android-developers] Accessing resources from other packages

2010-08-01 Thread { Devdroid }
On 30 July 2010 00:43, Dianne Hackborn hack...@android.com wrote: Simplier does not always mean better. What if you post a notification for your app, using an icon from another app, and then the user goes and uninstalls the other app? Currently it would probably crash, but it's not unsolvable

[android-developers] Re: Disabling Idle mode

2010-08-01 Thread RichardC
Design your download process to explect the connection to be broken (it's a moble or WiFi connection - they will break), and recover and continue the download when the connection is resumed. If your phone is turning off during the download search for wakelock in the documentation. On Jul 30,

[android-developers] Re: getting 'permission denied' when trying to write to a file

2010-08-01 Thread RichardC
You are probably missing the WRITE_EXTERNAL_STORAGE permission from your manifest. On Jul 30, 7:53 am, paul linto linto.andr...@gmail.com wrote: Hi Guys, I am trying to take a dump of encoded data stream to a file. I had added the code to make the file dump in pvmf_omx_enc_node.cpp file, in

Re: [android-developers] Accessing resources from other packages

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 8:34 AM, { Devdroid } webnet.andr...@gmail.com wrote: The final solution (which looks best so far)  I could be able to hand notify() BitmapDrawable object. And it'd be absolutely irrelevant how I built it (not to mention it would allow dynamically drawn icons to be used

[android-developers] Re: LVL returns always LICENSED...

2010-08-01 Thread sblantipodi
Really thanks for your answer, help is valuable today. I'm using serverManagedPolicy but I get into allowed() also on newer AVD just created, this should not have any cache at all, am I wrong? On Aug 1, 2:25 pm, RichardC richard.crit...@googlemail.com wrote: Which license policy are you using?

[android-developers] Re: getting 'permission denied' when trying to write to a file

2010-08-01 Thread Kumar Bibek
Also, you cannot write to the root folder of the external storage. You will have to create your own folder as well, in addition to declaring the above mentioned premission. Have a look at the error message. I am sure, it would give you more hints. -Kumar Bibek http://tech-droid.blogspot.com On

[android-developers] Re: Intents in broadcastrecievers

2010-08-01 Thread Kumar Bibek
Whats the error/problem? -Kumar Bibek http://tech-droid.blogspot.com On Jul 30, 6:53 pm, run arunm...@gmail.com wrote: hi, i wanted to place an intent in broadcastreceiver , by which i can call other applications. code   public void onReceive(Context context, Intent intent)     {        

[android-developers] How to store a drawable in database?

2010-08-01 Thread Jerry Fan
Hi folks, is there anyway that I can store drawables into database? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] How to store a drawable in database?

2010-08-01 Thread YuviDroid
Not directly AFAIK. You can however convert the drawable (if it is a BitmapDrawable) to a Bitmap, then convert the bitmap to a byte[] and store that as a BLOB in the db. If there is a quicker/simpler/nicer way I'd like to hear that from someone :) YuviDroid On Sun, Aug 1, 2010 at 3:12 PM,

[android-developers] Re: How to set the scroll position of a ListView.

2010-08-01 Thread greg
I use myListView.setSelection(anyPosition) to scroll the list so that anyPosition is at the top of the list (e.g., anyPosition set to 410 results in the display of items 410 through 416 of 2255 items). That is the behavior I want so I've never experimented with scrollTo, scrollBy, or setSelected.

Re: [android-developers] how to detect if a phone is running HTC sense UI

2010-08-01 Thread YuviDroid
On the HTC Desire the standard android home is not available, even by clearing defaults of the Sense home. On Sun, Aug 1, 2010 at 12:37 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Aug 1, 2010 at 6:20 AM, { Devdroid } webnet.andr...@gmail.com wrote: You can't remove it if phone is

[android-developers] Re: LVL returns always LICENSED...

2010-08-01 Thread sblantipodi
I'm sure that the problem isn't cache related because I have just tryed with a fresh new google account on a fresh new AVD with the software just installed and I got LICENSED :O It's incredible if I set unlicensed from developer console, the only unlicensed account will be the developer account,

Re: [android-developers] Accessing resources from other packages

2010-08-01 Thread { Devdroid }
On 1 August 2010 14:40, Mark Murphy mmur...@commonsware.com wrote: Bear in mind that notifications are not displayed by your process, and so the image has to be transportable across process boundaries. You are right, but we are taliking now about non existing feature so that could also be

[android-developers] Questions to google support. Obfuscation.

2010-08-01 Thread sblantipodi
Hi, I noticed that in the LVL library you recommend to obfuscate out code. Why don't you make a small guide on how to obfuscate your APK? :) I'm trying with this target into my buil-impl.xml file in the post- compile section using netbeans project and the apk is correctly obfuscated but it

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Leigh McRae
On 8/1/2010 4:29 AM, Mark Murphy wrote: Java (J2ME, Blackberry, Android) does not have a native preprocessor. Neither does Javascript for WebOS/HTML5 applications, nor Actionscript for Flash/Flex/AIR applications. Neither do some languages drifting into the mobile space (e.g., Ruby, and Perl

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Kostya Vasilyev
Victoria, Has the ViewStub already been inflated by any chance? That is, maybe this is the second time through you're clicking the button? If so, you should know that inflating a ViewStub removes it from the hierarchy and replaces it with the layout you provide with android:layout, giving

[android-developers] Re: Biggner Android Developer

2010-08-01 Thread Tim
Dear Muhammad, There is an easier way!!! If you want to master Android really fast then I suggest you have a look at rapid development tools such as our MobiForms Developer. MobiForms is the world's first rapid application development tool designed for Android and is also cross platform

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Kostya Vasilyev
Leigh, I don't think anyone is against it. There happens to be no support for it in Eclipse, the development environment chosen by the Android team. It just doesn't seem like a show-stopper (see Android Market), and it's certainly an overstatement to say (or imply) that Android is a

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Victoria Busse
Yes, I know that my try catch was wrong, but I corrected it eventually... I think you are right the error is always displayed when I press the button a second time...but that brings me to two new problems or questions: 1. Why doesn't the inflated View or layout show up? 2. How can I allow the

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Leigh McRae
On 8/1/2010 11:14 AM, Kostya Vasilyev wrote: Leigh, I don't think anyone is against it. There happens to be no support for it in Eclipse, the development environment chosen by the Android team. It just doesn't seem like a show-stopper (see Android Market), and it's certainly an

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Kostya Vasilyev
Aha, now we're on to something. 1 - I think it does, but the inflated content is such that you don't see it. Try playing with the inflated layout's background color, and with ViewStub's width and height (maybe set to fixed values for debugging, like both 200dp). 2 - Inflating a ViewStub

[android-developers] Re: SQLite Creating SQL Functions

2010-08-01 Thread eukreign
Is there anything security or compatibility related in the NDK or SDK that would prevent me from compiling my own sqlite database and using that instead of the one that's bundled? Would I still have access to write to the same location on the file system as the bundled sqlite db? On Jul 23, 9:10 

Re: [android-developers] Google Maps - MapView - draw a nice flight route between 2 points

2010-08-01 Thread TreKing
On Sun, Aug 1, 2010 at 5:38 AM, oriharel ori.ha...@gmail.com wrote: how can I draw a nice flight route between 2 points on a googlemap's MapView? 1 - Figure out how to draw a curve using Canvas. (NOTE: A beautiful thing about the internet is that you can see the source to any web page ...

Re: [android-developers]

2010-08-01 Thread aswinikg
happy friendship day thanks regards Aswini On Sun, Aug 1, 2010 at 11:48 AM, saurabh sinha saurs...@gmail.com wrote: hey Happy Friendship day to all android beginner -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Jigsaw puzzle image source

2010-08-01 Thread TreKing
On Thu, Jul 29, 2010 at 8:23 PM, HIRAK hirak1...@gmail.com wrote: Can someone please help me find such image source that can be used in the app? http://tinyurl.com/y8kqj3u - TreKing

[android-developers] LVL - live test

2010-08-01 Thread a1
Hi everybody, I've just pushed emergency fix after last update which disabled LVL check, 3h after update I received about 5 emails and 4 1* comments due to licence verification failure on legit copies of my game. I've used slightly modified ServerManagedPolicy (with minimum cache time set to 1

[android-developers] Re: MobClix revenue drop

2010-08-01 Thread Warren
I had two days drop more than $5. I don't know what's going on. My guess is that they found and fixed a bug, or they are dealing with some type of fraud. The days that were reduced were higher than average. I had hoped they were simply good days, but maybe not. Warren On Jul 31, 8:01 pm,

[android-developers] Re: Multiple concurrent versions of same app, filtered by minSdkVersion?

2010-08-01 Thread Brian Rak
Thanks for the reply. The problem with making separate apps is that existing customers will not be able to upgrade for free. And the code refactoring idea doesn't work, because the main point of the exercise is that I want the new version to contain all those resource files in the .apk itself,

[android-developers] Re: Multiple concurrent versions of same app, filtered by minSdkVersion?

2010-08-01 Thread Brian Rak
Actually, I wanted geo-load-balancing, so I'm using a content distribution network. Plus, you have to consider re-downloads of the content over several years by existing customers. At scale, based on patterns I've seen on other platforms, I expect it to cost a couple hundred bucks a month in data

[android-developers] Re: Multiple concurrent versions of same app, filtered by minSdkVersion?

2010-08-01 Thread Brian Rak
Richard, Thanks for the link to the article -- I hadn't seen that one. However, it doesn't address my core need, which is to have the existing version stay small, and the the new version have all resources packed inside it. Does anyone know how it actually works to publish an update with a

[android-developers] Re: Disabling Idle mode

2010-08-01 Thread Indicator Veritatis
Three things you should consider: 1) Separate your application into foreground Activity (more likely multiple Activities) and a Service 2) do the download with a worker thread (e.g. AsyncTask) 3) Read up on the PowerManager (in package android.os), in particular, the WakeLock object;

[android-developers] Content Providers loading, but not firing onCreate

2010-08-01 Thread martinmike2
Hello, I have 5 Content Providers for my 5 table SQLiteDatabase. They are named: CoreActionProvider CoreMovementProvider CoreRoundsProvider CoreChecksProvider CoreTermsProvider I have stepped through the startup process several times and have confirmed that all 5 Providers are loading.

[android-developers] Re: Performance of glDrawElements

2010-08-01 Thread Indicator Veritatis
Of course it is possible. If the vertices are ordered correctly in the array/buffer, you can draw the entire strip of triangles in a single call to either glDrawElements or glDrawArray. Assuming, of course, that it is one contiguous strip. BTW: this reminds me to ask: why aren't you using the

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Indicator Veritatis
Get your facts straight, and the fog of your confusion will lift. Google did not release the first buggy SDK. Every vendor's first SDK was buggy. As for why no #ifdef, when they designed Java, they realized the main applications of #ifdef were 1) accommodating hardware differences and 2)

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Indicator Veritatis
Wrong. If it had no right to be called Java, then Sun (now Oracle) would be suing Google, since they protect the name zealously. Remember what happened when Microsoft tried polluting the name. Sun did not sue even before the Oracle acquisition, they didn't even complain; so they must have been

[android-developers] Re: LVL - live test

2010-08-01 Thread sblantipodi
have you tryed using a non authorized gmail account from emulator? it returns always licensed... have you noticed the same? On Aug 1, 7:05 pm, a1 arco...@gmail.com wrote: Hi everybody, I've just pushed emergency fix after last update which disabled LVL check, 3h after update I received about

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread Indicator Veritatis
But why bother when there is already an open source preprocessor for Java in Eclipse? It is called 'prebop' and there is an article on it at http://www.boldinventions.com/index.php?option=com_contentview=articleid=81:javapreprocessorusingeclipsecatid=34:category-electronics-articlesItemid=53

Re: [android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-08-01 Thread Victoria Busse
Short update: 1 - found the mistake that it didn't show I accidentally didn't place any of the ViewStubs within the RelativeLayout of the SlidingDrawer, so it was never part of the content...really stupid mistake :) On Sun, Aug 1, 2010 at 4:49 PM, Kostya Vasilyev kmans...@gmail.com wrote: Aha,

[android-developers] Re: Extending multiple classes

2010-08-01 Thread Bob Kerns
VVMClientApplication is the class where I need to access the VVMService class instance. You don't say why. Are we to assume that VMClientApplication is a subclass of Application? Apparently not: dont I have to extend Application in any class ? So why did you call it VMClientApplication? Are

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread RichardC
My background is C and C++ ... 25 years and no longer counting :) So I had some ingrained expectations when I started learning Java; amongst them was the expectation that the Java language would support conditional compliation. I have had to learn to live without conditional compliation. The

[android-developers] Re: allign text vertically in a text view

2010-08-01 Thread harshe
yeah it works ... thanks a lot paul...:) hey Paul I have posted one more query regarding pinch in pinch out zoom can u plz check and share ur idea on that and help me in resolving it .. PLZZZ On Jul 28, 12:50 pm, Paul Turchenko paul.turche...@gmail.com wrote: Yeah, no problem with

Re: [android-developers] Re: Multiple concurrent versions of same app, filtered by minSdkVersion?

2010-08-01 Thread { Devdroid }
On 1 August 2010 19:25, Brian Rak seattlenice...@gmail.com wrote: Thanks for the reply. The problem with making separate apps is that existing customers will not be able to upgrade for free. And the code refactoring idea doesn't work, because the main point of the exercise is that I want the

Re: [android-developers] Understand the filesystem contents

2010-08-01 Thread { Devdroid }
On 30 July 2010 01:15, John Manko john.ma...@gmail.com wrote: Is there any documentation on the filesystem used for Android?  I'm talking about an explanation of the contents of /dev or /etc, and not YAFFS or whatever. Android is Linux based so look for Linux directory structure explanation

Re: [android-developers] Re: Shared library

2010-08-01 Thread { Devdroid }
2010/7/29 Kostya Vasilyev kmans...@gmail.com: Make the library interface be intent-based, and there you have it. Unfortunately in my particular case it is not going to work. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-01 Thread dm1973
I think most peoples opinion is that it just is not useful in java. There have been numerous discussions about needing/not needing a preprocessor in Java. You are not going to be #defining symbols (use a static class), including files, using __FILE__ or __LINE ( use the logging, no symbols means

  1   2   >