Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator
Iranian Programming Support

Csharp TeaM

Top posting users this month

Latest topics

» html to c# source code convert help
by launchar Tue Dec 06, 2016 7:22 am

» User input
by nesraz Sun Dec 20, 2015 8:39 am

» darkhaste source mediaplayer baraye b4a
by parham01 Tue Dec 15, 2015 10:31 am

» Tolide esme file gheire tekrari
by sajjad3011 Fri Jul 31, 2015 5:00 pm

» 368 library basic 4 android
by alimusavi71 Fri Jul 17, 2015 6:45 pm

» نرم افزار دریافت لایسنس آنتی ویروس نود 32
by programmer-x Wed Jul 15, 2015 3:19 pm

» help for java applications
by launchar Wed Jul 01, 2015 12:25 am

» Nimbuzz id Maker auto Captcha & Auto add FlooD & id BloCker
by briant Sat Jun 20, 2015 12:46 pm

» best mobile server v.1.0.0 persian edition
by programmer-x Fri Jun 19, 2015 12:41 am

» plz help me i neez xml code for spy bot
by alone Sun Mar 22, 2015 9:30 pm

» Dialogs Lib {Basic 4 Android}
by abdo0o Mon Mar 09, 2015 4:02 pm

» Room + PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:06 am

» PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:03 am

» سی شارپ سورس
by tr0 Wed Dec 24, 2014 12:15 pm

» help plz auto maker ids
by launchar Wed Dec 17, 2014 5:57 pm

» Join Multi Id To Room + Captcha [ Badbuzz Team ] In Seri Ba AgsXMPP !!
by abdo0o Fri Dec 12, 2014 4:47 am

» Amoozesh Ersale Sms Dar B4a
by abdo0o Fri Dec 12, 2014 4:43 am

» help me pls mehran brother
by launchar Wed Dec 03, 2014 6:36 pm

» plz help code Refresh captcha join Room
by ayad53 Wed Dec 03, 2014 12:24 pm

» please Help Me For AutoCaptchaa kardan IdMaker
by abdo0o Tue Dec 02, 2014 12:12 pm

» source C# bot addlist sender by ==> Alone_051@n.c
by walahazrat Mon Dec 01, 2014 2:34 am

» s2a sender tro help me pls
by walahazrat Mon Dec 01, 2014 2:28 am

» Help For {Data id } C# asixmpp.dll
by abdo0o Sun Nov 30, 2014 11:17 pm

» Help C# {Join & Left With Remoter}
by $iahi Tue Nov 25, 2014 10:31 am

» Source Nimbuzz User Searcher By Mehr,an [ Badbuzz TeaM ]
by waseemmalik Wed Nov 19, 2014 11:35 am


    help Replace dar b4a

    Share
    avatar
    $huvalie
    New Member
    New Member

    Posts : 40
    Points : 69
    Thanks : 1
    Join date : 2014-02-09

    Open help Replace dar b4a

    Post by $huvalie on Thu Jul 10, 2014 3:27 pm

    salam SMOKE 
    2ta soal dar rabete ba basic 4 android dashtam
    yaki inke chejori mishe vase back safhe aks gozasht CRAZY 
    va code replace ke dar c sharp Replace(".", "") hastesh to b4a chie BOAST 
    tnx HUNTER 
    avatar
    Emad Arta
    Csharp Admin
    Csharp Admin

    Posts : 118
    Points : 214
    Thanks : 48
    Join date : 2013-08-03
    Age : 24
    Location : Iran,Baloochestan,Iranshahr

    Open Re: help Replace dar b4a

    Post by Emad Arta on Thu Jul 10, 2014 4:15 pm

    Replace
    Code:
    page = page.Replace ("%20", " ")
    in Ye Nemonas!

    Background
    Code:
    Dim BG As Bitmap = LoadBitmapSample(File.DirAssets, "bg.jpg", Activity.Width, Activity.Height)
    Activity.SetBackgroundImage(SetTileBackground(What to put here, BG))

    Moshkeli Bud Bego Shayad Betunim Halesh Konim { Android Kar Nisam }!





    avatar
    $huvalie
    New Member
    New Member

    Posts : 40
    Points : 69
    Thanks : 1
    Join date : 2014-02-09

    Open Re: help Replace dar b4a

    Post by $huvalie on Thu Jul 10, 2014 5:18 pm

    mc,dadash code background error mide HUNTER 
    avatar
    Emad Arta
    Csharp Admin
    Csharp Admin

    Posts : 118
    Points : 214
    Thanks : 48
    Join date : 2013-08-03
    Age : 24
    Location : Iran,Baloochestan,Iranshahr

    Open Re: help Replace dar b4a

    Post by Emad Arta on Thu Jul 10, 2014 5:48 pm

    Code:
    Dim BG As Bitmap = LoadBitmapSample(File.DirAssets, "bg.jpg", Activity.Width, Activity.Height)
    SetTileBackground(Activity.SetBackgroundImage(), BG)

    Or

    Code:
    Sub GetWallpaperBackground As Object
        Dim r As Reflector
        r.Target = r.RunStaticMethod("android.app.WallpaperManager", "getInstance", _
            Array As Object(r.GetContext), Array As String("android.content.Context"))
        Dim bg As Object
        bg = r.RunMethod("getDrawable")
        Return bg
    End Sub

    Code:
     Dim Out As OutputStream
       Out = File.OpenOutput(File.DirDefaultExternal, "bg.png", False)
       If bg Is BitmapDrawable Then
          ToastMessageShow("is drawable!",True)
          Dim bd As BitmapDrawable
           bd = bg

       Dim btm As Bitmap
          btm = bd.Bitmap
          btm.WriteToStream(Out, 100, "PNG")      
          Out.Close
       Else
          ToastMessageShow("is NOT drawable!",True)
          Dim bt As Bitmap
          bt = bg
          'Create a mutable Bitmap with Bitmap.InitializeMutable.
          Dim w As Int 'width
          Dim l As Int 'length
          w = bt.Width
          l = bt.Height            
          Dim btm As Bitmap        
          btm.InitializeMutable(w,l) ' todo get layout from device layout ?? or from bg ?
          'Create a Canvas For this Bitmap.
          Dim can As Canvas
          'Draw the drawable with Canvas.DrawDrawable
          Dim DestRect As Rect
          DestRect.Initialize(0,0, w, l)
          can.DrawDrawable(bg,DestRect)
          'Save the Bitmap To a File (Bitmap.WriteToStream)
          btm.WriteToStream(Out, 100, "PNG")
          
       End If





    avatar
    mbpersian
    Android Admin
    Android Admin

    Posts : 64
    Points : 112
    Thanks : 34
    Join date : 2014-07-11
    Age : 21
    Location : iRan/FaRs/shiRaz

    Open Re: help Replace dar b4a

    Post by mbpersian on Fri Jul 11, 2014 3:24 am

    ba salaam
    code rep hamoune
    masalan mikhaay textview ro rep koni
    edittext.text.replace(" mb" ,"mbp")
    va back ham niaazi nis loqme ro bcharkhuni dore gardanet baad bokhori b raahatie harche tamaam tar tu bakhshe design mishe bg gozasht , khune nistam vagarna film migrftm mizashtm.





    Ba Tashakkor Kardan ( + ) Shakhsiat KhoD Ra Neshan Midahid !
    MBP Inc.
    mbpersian

    Sponsored content

    Open Re: help Replace dar b4a

    Post by Sponsored content


      Current date/time is Mon Dec 11, 2017 5:46 pm