Search Results

Search found 27 results on 2 pages for 'sephy'.

Page 1/2 | 1 2  | Next Page >

  • User Agent in http client Android

    - by Sephy
    Hi everybody, I building an Https Client to send some data to a server, but I don't know what to pass in User-Agent. Should I use the webkit one's or do I have to build one explicitely for my App? I'm using this handy post Thanks for any help

    Read the article

  • android listview set dynamically background color of views

    - by Sephy
    Hi everybody, I know that there have quite a lot of answers to similar questions but I couldn't find any solution to my question, so new topic : I'm creating a listview, with one basic view per row, my try is to change the background color of the view by .setbackgroundcolor, but nothing's doing the trick... I define an array of color at the beginning of my resources and i'm trying to display it, I also tried to put the array in the class, write the color like #00FF00, int, and I wanted to try 0x...... but as my colors are in an array, I can't do 0x+myColorsArray[i] because Eclipse tells me that it's not a proper hex color... I'm getting a bit desperate... thanks for any help

    Read the article

  • sqlite3 permission denied android

    - by Sephy
    Hi, I'm trying to access the database of the application I'm developping directly on my Nexus, but I get a "permission denied" when I tried to execute the "sqlite3" command. I also tried to start the adb in root mod, but again, permission denied on the device... I guess I will have to do that with the emulator but I have a lot of data to load and it would have been 10 times faster with the phone on Wifi than the emulator... Unless someone has any idea? thanks

    Read the article

  • webview loaddata in android does not load a picture from img src

    - by Sephy
    I use loadData method to load some html content into a webview, but when it encounters something like this : <a href="http://www.anywebsite.fr/">some text</a><img src="http://www.anotherwebsite.fr/thewantedpicture" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> I only get this in the application : some text And if I'm not mistaken, this should also display the picture ? If someone has any lead, thanks...

    Read the article

  • Add a contact to android emulator

    - by Sephy
    Hi, My issue is quite simple I think : I would like to be able to add a contact to the contact list by a simple click on a button (and be able to test it on the emulator). The data of this contact would be stored in the source code of the application. is there an easy way of doing that? thank you for your answers

    Read the article

  • insert an image in a tablelayout without streching it android

    - by Sephy
    Hi, I'm having some trouble getting pictures inside a tablelayout...actually, each I have 2 columns and when i put a picture in a cell of the table, it's completely streched and disproportionnated...I can't find how to make it stay it's original inside the cell and let the rest of the space filled by white background for instance.... XML is like that : <TableLayout android:layout_width="fill_parent" android:stretchColumns="*" android:layout_marginLeft="3dip" android:layout_marginRight="10dip" android:layout_height="wrap_content"> <TableRow android:layout_marginBottom="10dip"> <TextView android:id="@+id/tv01" android:text="text1" android:textSize="14sp" android:layout_margin="1dip" android:layout_height="wrap_content" android:textColor="@color/bleuLink" android:layout_width="wrap_content" android:layout_weight="1" android:background="@color/background"></TextView> <Button android:id="@+id/add" android:background="@drawable/addressbook" android:layout_height="wrap_content" android:layout_width="wrap_content"></Button> <Button android:id="@+id/call" android:background="@drawable/greenphone" android:layout_height="wrap_content" android:layout_width="wrap_content"></Button> help plz, thx

    Read the article

  • Use of SAX parser in Android - OutOfMemory Issue

    - by Sephy
    Hi everybody, I have been using a SAX parser for a while now to get data from various XML, but today i'm banging my head on a new problem with a hudge XML (compared to the previous ones . here around 12k lines) with a lot of repetitive items in it. Most of the time, the items are part of a block : <content> <item lbl="blabla"> <item lbl="blabla"/> <item lbl="blabla"/> </item> <item lbl="blabla"> <item lbl="blabla"/> <item lbl="blabla"/> <item lbl="blabla"/> <item lbl="blabla"/> <item lbl="blabla"/> <item lbl="blabla"/> </item> </content> The blabla part is of course changing...But, I would like to keep the structure of items (they are titles and subtitles). And for that, I append each blabla with a starting and ending tag blabla, where x is the position in the tree of items (1, 2, 3 or 4). The slightly problematic part is that with that, I'm creating thousands of useless objects and the garbage collector doesn't have time to clean after the parser, and the inevitable OutOfMemory comes in my face... I have no idea of how to deal with it; The best technique would be if I could take the whole content of , but i'm not sure that this is possible with a SAX parser. Any help is welcome and any solution deeply thanked...

    Read the article

  • prevent screen rotation android

    - by Sephy
    hi everybody, I have one of my activities which I would like to prevent from rotating because i'm starting an AsynTask, and screen rotation makes it restart... so is there any way to tell this activity "DO NOT ROTATE the screen even if the user is shaking his phone like mad"? Thx for the constant help guys.

    Read the article

  • Force application to restart on first activity android

    - by Sephy
    Hi, For an unknown reason, I can't get my application leaving properly so that when I push the home button and the app icon again I resume where I was in the app.... But I would like to force the application to restart at the first activity... I suppose this has something to do with onDestroy() or maybe onPause() but I don't know what to do. thanks for any help.

    Read the article

  • authentication and session in Java

    - by Sephy
    hi, I would like to know if it is possible to maintain an authentication (like a session with login and password in php) on a website from a java program, and if anyone had any lead on the subject or some reading for me, that would be great. thanks

    Read the article

  • delete last row in a table android

    - by Sephy
    Hi everybody, My question is quite straightforward. I have a table, with, lets say x rows, with each an id, but i don't know how many rows i have. Now i want to delete the last row of my table for some reason... Is there an easy way to do that in android? I have been trying to use the last_insert_rowid in my where clause...but no luck so far... any idea? thx for help

    Read the article

  • avoid preselection of a view when focus is gained android

    - by Sephy
    Hi all, I don't know if the title is very clear, but my issue is as follows : I have an activity with a listview, and on top of this listview, i have a searchfield (edittext). The issue is that when i try debugging on a phone, the virtual keyboard gets out straight after the screen displays the activity... And of course, it's hidding half of the list... So, is there an attribute or something I can use to prevent this from happening?(I still want to keybord to appear when i click the edittext though...) thank you

    Read the article

  • ul li tags in android webview

    - by Sephy
    Hi everybody, This might seem a weird question, but I tried to display <ul> <li> tags in a webview and I can't get any kind of rendring. All the text is just sticking together and gives an aweful look to my webview. Has anyone been confronted to the issue ? Thanks for help

    Read the article

  • Naming my application in android

    - by Sephy
    Hi, I think i'm getting senile because I was convinced that to give a name to your application, you had to fill this part of the manifest : <application android:icon="@drawable/icon" android:label="MyApplicationName"> However for a reason I don't understand, my application gets the name of my first activity, in which I load data, henceforce, It is called "Loading"...(defined as follows in the manifest) <activity android:name="AccueilSplash" android:label="Loading"> Any idea why that is?

    Read the article

  • Access the next button event android

    - by Sephy
    I don't know if it's very clear, but i'm trying to do something when the "next" (bottom right corner of the keyboard) is pressed, and i can't find its keycode. I have tried to look for "next" or "enter" in the keycodes but nothing really relevant... does anyone know? (actually, i've found the enter keycode to be precise, but it does not do anything)

    Read the article

  • Embed a database in the .apk of a distributed application [Android]

    - by Sephy
    Hi everybody, My question is I think quite simple but I don't think the answer will be... I have quite a lot of content to have in my application to make it run properly, and I'm thinking of putting all of it in a database, and distribute it in an embeded database with the application in the market. The only trouble is that I have no idea of how to do that. I know that I can extract a file .db from Eclipse DDMS with the content of my database, and I suppose I need to put it in the asset folder of my application, but then how to make the application use it to regenerate the application database? If you have any link to some code or help, that would be great. Thanks

    Read the article

  • How to make Edittext size stay put? Android

    - by Sephy
    Hi everybody, I know the attribute which makes the text "disapear" on the left part of the Edittext to maintain a single line, (singleLine="true"). Btu my issue is when I fill the edittext before the view is displayed... in this case, my edittexts are all going out of the screen... any ideas? thx

    Read the article

  • which view/widget can support zooming in android?

    - by Sephy
    Hi everybody, I think my question is fairly clear, I would like to know if every kind of view can support zoom. I know that some have built in zoom controls like the MapView and the WebView, but how about a LinearLayout with some TextViews and ImageViews? I will edit this post to have a list of the answers.

    Read the article

  • Add a view/activity on top of a ListView [Android]

    - by Sephy
    Hi everybody, I want to have a view with several choices when I click an element of my ListView. I was thinking of implementing an AlertDialog but as I need more than 3 options it is not possible... I also thought of putting my ListView in a FrameLayout and have an view with a gone visibility that I would turn visible at the click and update the content but I don't know If it's a good idea. I could do with some advice, Thanks for any idea.

    Read the article

  • fire an intent from the onCreate method in android

    - by Sephy
    Maybe my question might seem a bit weird, but I have an activity in which, in one case , I have to move to another activity before it finishes loading the screen. My condition is in the onCreate method, which means when I encounter it, i get a "startActivity called from outside an activity context" error and the app just crashes... But then, is there an easy way like a flag for the intent to make it work without having the activity context resolved? thanks for any answer

    Read the article

  • navigation between screens Iphone programming

    - by Sephy
    Hi, I don't know if my question will be clear or not, but i'm starting basic stuff with iphone programming, and i'm trying to understand how to go from a screen to another. lets say i have a screen with a "next page" button and another page with a "return" button. I have a general idea of how to do this, but I don't know how to put it together. I think I need an IBAction method for each button, and in each method a navigation controller with pushViewController. So far, i've tried the following code, but even if it compiles properly and runs when i push the button, there is no change of screen... -(IBAction) toNext(id)sender{ NSLog(@"before code"); NextViewController *nvc = [[NextViewController alloc] initWithNibName:@"NextView" bundle:nil]; [self.navigationController pushViewController:nvc animated:YES]; [nvc release]; NSLog(@"after code"); } If someone had a nice tuto for me, it could be of some help... thx

    Read the article

  • Is it possible to write vertically in a textview in android?

    - by Sephy
    LEts say you have a normal textview, with "Stackoverflow" written in it, I would like to know if it it possible to rotate the textview about -90°, to have the S at the bottom and the W at the top of the screen? of course, i could write my text in an image, rotate it and use it that way, but im interested in text right now. thank you

    Read the article

  • byte[] to image android

    - by Sephy
    Hi everybody, My issue is as follows : I have stored a few pictures into the sqlite database, using the blob format, which seems to work ok. now i want to get my pictures out of the DB and put then back into images... to complicate the matter, their format is variable (png, jpg, maybe something else, im not sure) Is there a way of doing so in android? thank you

    Read the article

1 2  | Next Page >